summaryrefslogtreecommitdiff
path: root/lisp/pcomplete.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-03-04 17:53:07 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-03-04 18:01:41 -0800
commit136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9 (patch)
treea91c5e858aaf99d9de2985405d658f460724fbc3 /lisp/pcomplete.el
parent0e10b6fce7568077797c5a16cd2a584a8dcba46e (diff)
downloademacs-136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9.tar.gz
emacs-136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9.tar.bz2
emacs-136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9.zip
uniqify -> uniquify
The latter spelling is more common both within Emacs and in English-language sources in general (Bug#10048). * lisp/eshell/esh-util.el (eshell-uniquify-list): Rename from eshell-uniqify-list. All callers changed. * lisp/pcomplete.el (pcomplete-uniquify-list): Rename from pcomplete-uniqify-list. All callers changed.
Diffstat (limited to 'lisp/pcomplete.el')
-rw-r--r--lisp/pcomplete.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index 6078dfd7443..e7d12c63414 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -950,7 +950,7 @@ Arguments NO-GANGING and ARGS-FOLLOW are currently ignored."
(function
(lambda (opt)
(concat "-" opt)))
- (pcomplete-uniqify-list choices))))
+ (pcomplete-uniquify-list choices))))
(let ((arg (pcomplete-arg)))
(when (and (> (length arg) 1)
(stringp arg)
@@ -1269,7 +1269,7 @@ If specific documentation can't be given, be generic."
;; general utilities
-(defun pcomplete-uniqify-list (l)
+(defun pcomplete-uniquify-list (l)
"Sort and remove multiples in L."
(setq l (sort l 'string-lessp))
(let ((m l))
@@ -1280,6 +1280,9 @@ If specific documentation can't be given, be generic."
(setcdr m (cddr m)))
(setq m (cdr m))))
l)
+(define-obsolete-function-alias
+ 'pcomplete-uniqify-list
+ 'pcomplete-uniquify-list "27.1")
(defun pcomplete-process-result (cmd &rest args)
"Call CMD using `call-process' and return the simplest result."