]> git.eshelyaron.com Git - emacs.git/commitdiff
(PC-do-completion): Exclude ./ and ../ from completion.
authorRichard M. Stallman <rms@gnu.org>
Thu, 13 Aug 1998 05:05:44 +0000 (05:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 13 Aug 1998 05:05:44 +0000 (05:05 +0000)
lisp/complete.el

index 4aaffa76b0ca152a84d6ce038f52c0ab406fb371..e51a9f3340211b62092f0213a6442aabe284ef8d 100644 (file)
@@ -562,10 +562,12 @@ of `minibuffer-completion-table' and the minibuffer contents.")
                                  "\\|")
                                 "\\)\\'")))
 
-              ;; Check if there are any without an ignored extension
+              ;; Check if there are any without an ignored extension.
+              ;; Also ignore `.' and `..'.
               (setq p nil)
               (while p2
                 (or (string-match PC-ignored-regexp (car p2))
+                    (string-match "\\(\\`\\|/\\)[.][.]?/?\\'" (car p2))
                     (setq p (cons (car p2) p)))
                 (setq p2 (cdr p2)))