GNU bug report logs - #10549
24.0.92; eshell-read-hosts-file - does not skip comment lines

Previous Next

Package: emacs;

Reported by: Mike Lamb <mrlamb <at> gmail.com>

Date: Wed, 18 Jan 2012 21:44:02 UTC

Severity: normal

Found in version 24.0.92

Fixed in version 24.0.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10549 in the body.
You can then email your comments to 10549 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10549; Package emacs. (Wed, 18 Jan 2012 21:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mike Lamb <mrlamb <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 18 Jan 2012 21:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Lamb <mrlamb <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.92; eshell-read-hosts-file - does not skip comment lines
Date: Wed, 18 Jan 2012 16:41:56 -0500
This patch modifies the regex in eshell-read-hosts-file to skip comment lines:

*** old/lisp/eshell/esh-util.el	2012-01-05 04:46:05.000000000 -0500
--- /Users/mrl/proj/emacs_trunk/lisp/eshell/esh-util.el	2012-01-18 14:23:31.000000000 -0500
***************
*** 483,489 ****
        (insert-file-contents eshell-hosts-file)
        (goto-char (point-min))
        (while (re-search-forward
! 	      "^\\(\\S-+\\)\\s-+\\(\\S-+\\)\\(\\s-*\\(\\S-+\\)\\)?" nil t)
  	(if (match-string 1)
  	    (add-to-list 'hosts (match-string 1)))
  	(if (match-string 2)
--- 483,489 ----
        (insert-file-contents eshell-hosts-file)
        (goto-char (point-min))
        (while (re-search-forward
! 	      "^\\([^#[:space:]]+\\)\\s-+\\(\\S-+\\)\\(\\s-*\\(\\S-+\\)\\)?" nil t)
  	(if (match-string 1)
  	    (add-to-list 'hosts (match-string 1)))
  	(if (match-string 2)


In GNU Emacs 24.0.92.1 (x86_64-apple-darwin11.2.0, NS apple-appkit-1138.23)
 of 2012-01-18 on anvil.home
Windowing system distributor `Apple', version 10.3.1138
configured using `configure  '--with-ns' '--without-x''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: EShell

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> C-x k <return> M-x r e p o r t - <tab> <r
eturn>

Recent messages:
Decrypting /Users/mrl/.authinfo.gpg...done
235 2.7.0 Accepted
250 2.1.0 OK 17sm465789ang.11
250 2.1.5 OK 17sm465789ang.11
354  Go ahead 17sm465789ang.11
Sending email 
Sending email done
250 2.0.0 OK 1326921581 17sm465789ang.11
221 2.0.0 closing connection 17sm465789ang.11
Sending...done

Load-path shadows:
None found.

Features:
(epa-file epa derived epg epg-config gnutls network-stream starttls tls
mailalias multi-isearch newcomment shadow sort mail-extr message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader emacsbug help-mode view
pcmpl-unix ansi-color em-unix pcomplete comint em-term term disp-table
ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs
em-cmpl em-basic esh-opt em-banner em-alias ring esh-var esh-io esh-cmd
esh-ext esh-proc esh-arg eldoc help-fns esh-groups eshell esh-module
esh-mode esh-util server smtpmail auth-source eieio byte-opt bytecomp
byte-compile cconv macroexp assoc gnus-util password-cache sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-x
easymenu dired regexp-opt edmacro kmacro time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind ns
multi-tty emacs)




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Mon, 23 Jan 2012 08:13:02 GMT) Full text and rfc822 format available.

Notification sent to Mike Lamb <mrlamb <at> gmail.com>:
bug acknowledged by developer. (Mon, 23 Jan 2012 08:13:02 GMT) Full text and rfc822 format available.

Message #10 received at 10549-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 10549-done <at> debbugs.gnu.org
Subject: Re: bug#10549: 24.0.92;
	eshell-read-hosts-file - does not skip comment lines
Date: Mon, 23 Jan 2012 03:12:29 -0500
Version: 24.0.93

Thanks; applied.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Feb 2012 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.