* 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 220ffd7..46d8ca4 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 4338cdf..2a44148 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))