diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2023-08-05 10:55:27 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2023-08-05 17:57:53 +0200 |
commit | 88ce2a5624be78dfa7a420a4d255886bd3a22e24 (patch) | |
tree | cf608f1be24a9ee3a83b6422c91045b4b1300fd2 /lisp/pcomplete.el | |
parent | 25641c3e88209eb57793ae1df71ee6de9ce3b675 (diff) | |
download | emacs-88ce2a5624be78dfa7a420a4d255886bd3a22e24.tar.gz |
Simplify pcomplete-uniquify-list
* lisp/pcomplete.el (pcomplete-uniquify-list): Improve docstring.
Simplify.
Diffstat (limited to 'lisp/pcomplete.el')
-rw-r--r-- | lisp/pcomplete.el | 8 |
1 files changed, 4 insertions, 4 deletions
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) |