[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)
- master updated (5683c4bad3c -> 8e20da1517a), Stefan Kangas, 2023/08/05
- master 25641c3e882 2/8: Add crossref to set-default-file-modes docstring, Stefan Kangas, 2023/08/05
- master 8e20da1517a 8/8: Simplify rng-substq with cl-substitute, Stefan Kangas, 2023/08/05
- master 3b2b0b5f921 5/8: Fix eshell "ls" command for files larger than 1TiB, Stefan Kangas, 2023/08/05
- master ed395444504 7/8: Make eshell-redisplay into alias for redisplay, Stefan Kangas, 2023/08/05
- master 7df1adab1e1 6/8: Use file-size-human-readable in eshell, Stefan Kangas, 2023/08/05
- master ee788ab2f81 4/8: ; * lisp/eshell/esh-util.el: Delete redundant autoload., Stefan Kangas, 2023/08/05
- master 3f8db3bbe5e 1/8: image-dired: Fix gallery directory permissions, Stefan Kangas, 2023/08/05
- master 88ce2a5624b 3/8: Simplify pcomplete-uniquify-list,
Stefan Kangas <=