]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/ange-ftp.el (ange-ftp-parse-netrc): Suppress comment lines. (Bug#10874)
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 24 Feb 2012 08:11:00 +0000 (09:11 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 24 Feb 2012 08:11:00 +0000 (09:11 +0100)
lisp/ChangeLog
lisp/net/ange-ftp.el

index 220ffd72d82f863d7fba20e6dd12e105cec97a64..46d8ca44a0ad298a384424b8f161c681a4f691a5 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/ange-ftp.el (ange-ftp-parse-netrc): Suppress comment lines.
+       (Bug#10874)
+
 2012-02-23  Alan Mackenzie  <acm@muc.de>
 
        * emacs-lisp/easy-mmode.el (define-minor-mode): Add extra
index 4338cdff3cda2ded05773ddbe320fa7ada5f59d5..2a44148e4ce4039b78f9336ef048b1196cdcf1f2 100644 (file)
@@ -1390,6 +1390,9 @@ only return the directory part of FILE."
                (run-hooks 'find-file-hook)
                (setq buffer-file-name nil)
                (goto-char (point-min))
+               (while (search-forward-regexp "^[ \t]*#.*$" nil t)
+                 (replace-match ""))
+               (goto-char (point-min))
                (skip-chars-forward " \t\r\n")
                (while (not (eobp))
                  (ange-ftp-parse-netrc-group))