aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-03-07 12:50:23 +0000
committerMichaël Cadilhac2007-03-07 12:50:23 +0000
commit85066604f006821a45bf2cfec3df9bcddf380aa1 (patch)
treec9147f6b39a1a9863804070a8fe3da08efcd2e3c
parente27dad25bb1ff5e94c245dd615b3adbfbf43c196 (diff)
downloademacs-85066604f006821a45bf2cfec3df9bcddf380aa1.tar.gz
emacs-85066604f006821a45bf2cfec3df9bcddf380aa1.zip
(PC-do-completion): Delete duplicates in the list of possible completions.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/complete.el3
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d64589405df..807151bc250 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-03-07 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
2
3 * complete.el (PC-do-completion): Delete duplicates in the list of
4 possible completions.
5
12007-03-07 Glenn Morris <rgm@gnu.org> 62007-03-07 Glenn Morris <rgm@gnu.org>
2 7
3 * ses.el (ses-mode): Doc fix. 8 * ses.el (ses-mode): Doc fix.
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.")
560 (setq poss (cons (car p) poss)))) 560 (setq poss (cons (car p) poss))))
561 (setq p (cdr p))))) 561 (setq p (cdr p)))))
562 562
563 ;; If table had duplicates, they can be here.
564 (delete-dups poss)
565
563 ;; Handle completion-ignored-extensions 566 ;; Handle completion-ignored-extensions
564 (and filename 567 (and filename
565 (not (eq mode 'help)) 568 (not (eq mode 'help))