From: Stefan Kangas Date: Sat, 5 Aug 2023 08:55:27 +0000 (+0200) Subject: Simplify pcomplete-uniquify-list X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88ce2a5624be78dfa7a420a4d255886bd3a22e24;p=emacs.git Simplify pcomplete-uniquify-list * lisp/pcomplete.el (pcomplete-uniquify-list): Improve docstring. Simplify. --- diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 36f68f1af57..c7ec228c1db 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el @@ -1318,10 +1318,10 @@ If specific documentation can't be given, be generic." ;; general utilities -(defun pcomplete-uniquify-list (l) - "Sort and remove multiples in L." - (setq l (sort l #'string-lessp)) - (seq-uniq l)) +(defun pcomplete-uniquify-list (sequence) + "Sort and remove multiples in SEQUENCE. +Sequence should be a vector or list of strings." + (sort (seq-uniq sequence) #'string-lessp)) (define-obsolete-function-alias 'pcomplete-uniqify-list #'pcomplete-uniquify-list "27.1") (defun pcomplete-process-result (cmd &rest args)