mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/minibuffer.el (completion-file-name-table): Keep track of errors.
(completion-table-with-predicate): Handle the case where pred1 is nil. * lisp/pcomplete.el (pcomplete-completions-at-point): Simplify. Fixes: debbugs:9160
This commit is contained in:
parent
207c12ef2a
commit
78054a469d
3 changed files with 16 additions and 10 deletions
|
|
@ -515,14 +515,13 @@ Same as `pcomplete' but using the standard completion UI."
|
|||
(pred
|
||||
;; Pare it down, if applicable.
|
||||
(when (and pcomplete-use-paring pcomplete-seen)
|
||||
(setq pcomplete-seen
|
||||
(mapcar (lambda (f)
|
||||
(funcall pcomplete-norm-func
|
||||
(directory-file-name f)))
|
||||
pcomplete-seen))
|
||||
;; Capture the dynbound values for later use.
|
||||
(let ((norm-func pcomplete-norm-func)
|
||||
(seen pcomplete-seen))
|
||||
(seen
|
||||
(mapcar (lambda (f)
|
||||
(funcall pcomplete-norm-func
|
||||
(directory-file-name f)))
|
||||
pcomplete-seen)))
|
||||
(lambda (f)
|
||||
(not (member
|
||||
(funcall norm-func (directory-file-name f))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue