emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 88ce2a5624b 3/8: Simplify pcomplete-uniquify-list


From: Stefan Kangas
Subject: master 88ce2a5624b 3/8: Simplify pcomplete-uniquify-list
Date: Sat, 5 Aug 2023 12:00:11 -0400 (EDT)

branch: master
commit 88ce2a5624be78dfa7a420a4d255886bd3a22e24
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]