Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
06cab6db
Commit
06cab6db
authored
Aug 13, 1998
by
Richard M. Stallman
Browse files
(PC-do-completion): Exclude ./ and ../ from completion.
parent
f868e34c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/complete.el
lisp/complete.el
+3
-1
No files found.
lisp/complete.el
View file @
06cab6db
...
...
@@ -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
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment