From 06cab6db58bbb70007257887df23097e14f2706e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 13 Aug 1998 05:05:44 +0000 Subject: [PATCH] (PC-do-completion): Exclude ./ and ../ from completion. --- lisp/complete.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/complete.el b/lisp/complete.el index 4aaffa76b0c..e51a9f33402 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -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))) -- 2.39.5