summaryrefslogtreecommitdiff
path: root/lisp/complete.el
diff options
context:
space:
mode:
authorMichaël Cadilhac <michael.cadilhac@lrde.org>2007-03-07 12:50:23 +0000
committerMichaël Cadilhac <michael.cadilhac@lrde.org>2007-03-07 12:50:23 +0000
commit85066604f006821a45bf2cfec3df9bcddf380aa1 (patch)
treec9147f6b39a1a9863804070a8fe3da08efcd2e3c /lisp/complete.el
parente27dad25bb1ff5e94c245dd615b3adbfbf43c196 (diff)
downloademacs-85066604f006821a45bf2cfec3df9bcddf380aa1.tar.gz
(PC-do-completion): Delete duplicates in the list of possible completions.
Diffstat (limited to 'lisp/complete.el')
-rw-r--r--lisp/complete.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/complete.el b/lisp/complete.el
index b56dc268c04..5b77f49ebdf 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -560,6 +560,9 @@ of `minibuffer-completion-table' and the minibuffer contents.")
(setq poss (cons (car p) poss))))
(setq p (cdr p)))))
+ ;; If table had duplicates, they can be here.
+ (delete-dups poss)
+
;; Handle completion-ignored-extensions
(and filename
(not (eq mode 'help))