Commit 06cab6db authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(PC-do-completion): Exclude ./ and ../ from completion.

parent f868e34c
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment