From 88ce2a5624be78dfa7a420a4d255886bd3a22e24 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 5 Aug 2023 10:55:27 +0200 Subject: [PATCH] Simplify pcomplete-uniquify-list * lisp/pcomplete.el (pcomplete-uniquify-list): Improve docstring. Simplify. --- lisp/pcomplete.el | 8 ++++---- 1 file 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) -- 2.39.2