diff options
| author | Paul Eggert | 2018-03-04 17:53:07 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-03-04 18:01:41 -0800 |
| commit | 136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9 (patch) | |
| tree | a91c5e858aaf99d9de2985405d658f460724fbc3 /lisp | |
| parent | 0e10b6fce7568077797c5a16cd2a584a8dcba46e (diff) | |
| download | emacs-136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9.tar.gz emacs-136e1d23e936598a1c988cfa4b1d81ea7f7cb1f9.zip | |
uniqify -> uniquify
The latter spelling is more common both within Emacs and in
English-language sources in general (Bug#10048).
* lisp/eshell/esh-util.el (eshell-uniquify-list):
Rename from eshell-uniqify-list. All callers changed.
* lisp/pcomplete.el (pcomplete-uniquify-list):
Rename from pcomplete-uniqify-list. All callers changed.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/eshell/em-cmpl.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/em-dirs.el | 4 | ||||
| -rw-r--r-- | lisp/eshell/em-pred.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/esh-util.el | 5 | ||||
| -rw-r--r-- | lisp/org/org-pcomplete.el | 20 | ||||
| -rw-r--r-- | lisp/pcmpl-cvs.el | 8 | ||||
| -rw-r--r-- | lisp/pcmpl-gnu.el | 2 | ||||
| -rw-r--r-- | lisp/pcmpl-linux.el | 6 | ||||
| -rw-r--r-- | lisp/pcmpl-rpm.el | 2 | ||||
| -rw-r--r-- | lisp/pcmpl-unix.el | 2 | ||||
| -rw-r--r-- | lisp/pcomplete.el | 7 |
11 files changed, 33 insertions, 27 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index 1f440077465..667bdeb43b4 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el | |||
| @@ -434,7 +434,7 @@ to writing a completion function." | |||
| 434 | (setq comps-in-path (cdr comps-in-path))) | 434 | (setq comps-in-path (cdr comps-in-path))) |
| 435 | (setq paths (cdr paths))) | 435 | (setq paths (cdr paths))) |
| 436 | ;; Add aliases which are currently visible, and Lisp functions. | 436 | ;; Add aliases which are currently visible, and Lisp functions. |
| 437 | (pcomplete-uniqify-list | 437 | (pcomplete-uniquify-list |
| 438 | (if glob-name | 438 | (if glob-name |
| 439 | completions | 439 | completions |
| 440 | (setq completions | 440 | (setq completions |
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el index 34bf821c119..ec380e67011 100644 --- a/lisp/eshell/em-dirs.el +++ b/lisp/eshell/em-dirs.el | |||
| @@ -282,7 +282,7 @@ Thus, this does not include the current directory.") | |||
| 282 | (defvar pcomplete-stub) | 282 | (defvar pcomplete-stub) |
| 283 | (defvar pcomplete-last-completion-raw) | 283 | (defvar pcomplete-last-completion-raw) |
| 284 | (declare-function pcomplete-actual-arg "pcomplete") | 284 | (declare-function pcomplete-actual-arg "pcomplete") |
| 285 | (declare-function pcomplete-uniqify-list "pcomplete") | 285 | (declare-function pcomplete-uniquify-list "pcomplete") |
| 286 | 286 | ||
| 287 | (defun eshell-complete-user-reference () | 287 | (defun eshell-complete-user-reference () |
| 288 | "If there is a user reference, complete it." | 288 | "If there is a user reference, complete it." |
| @@ -293,7 +293,7 @@ Thus, this does not include the current directory.") | |||
| 293 | (throw 'pcomplete-completions | 293 | (throw 'pcomplete-completions |
| 294 | (progn | 294 | (progn |
| 295 | (eshell-read-user-names) | 295 | (eshell-read-user-names) |
| 296 | (pcomplete-uniqify-list | 296 | (pcomplete-uniquify-list |
| 297 | (mapcar | 297 | (mapcar |
| 298 | (function | 298 | (function |
| 299 | (lambda (user) | 299 | (lambda (user) |
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el index 61af4048d54..b3b16d909ba 100644 --- a/lisp/eshell/em-pred.el +++ b/lisp/eshell/em-pred.el | |||
| @@ -131,7 +131,7 @@ The format of each entry is | |||
| 131 | (?e . #'(lambda (lst) (mapcar 'file-name-extension lst))) | 131 | (?e . #'(lambda (lst) (mapcar 'file-name-extension lst))) |
| 132 | (?t . #'(lambda (lst) (mapcar 'file-name-nondirectory lst))) | 132 | (?t . #'(lambda (lst) (mapcar 'file-name-nondirectory lst))) |
| 133 | (?q . #'(lambda (lst) (mapcar 'eshell-escape-arg lst))) | 133 | (?q . #'(lambda (lst) (mapcar 'eshell-escape-arg lst))) |
| 134 | (?u . #'(lambda (lst) (eshell-uniqify-list lst))) | 134 | (?u . #'(lambda (lst) (eshell-uniquify-list lst))) |
| 135 | (?o . #'(lambda (lst) (sort lst 'string-lessp))) | 135 | (?o . #'(lambda (lst) (sort lst 'string-lessp))) |
| 136 | (?O . #'(lambda (lst) (nreverse (sort lst 'string-lessp)))) | 136 | (?O . #'(lambda (lst) (nreverse (sort lst 'string-lessp)))) |
| 137 | (?j . (eshell-join-members)) | 137 | (?j . (eshell-join-members)) |
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index 5d38c27eb1d..5ef1ae41297 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el | |||
| @@ -295,7 +295,7 @@ Prepend remote identification of `default-directory', if any." | |||
| 295 | (nconc new-list (list a)))) | 295 | (nconc new-list (list a)))) |
| 296 | (cdr new-list))) | 296 | (cdr new-list))) |
| 297 | 297 | ||
| 298 | (defun eshell-uniqify-list (l) | 298 | (defun eshell-uniquify-list (l) |
| 299 | "Remove occurring multiples in L. You probably want to sort first." | 299 | "Remove occurring multiples in L. You probably want to sort first." |
| 300 | (let ((m l)) | 300 | (let ((m l)) |
| 301 | (while m | 301 | (while m |
| @@ -305,6 +305,9 @@ Prepend remote identification of `default-directory', if any." | |||
| 305 | (setcdr m (cddr m))) | 305 | (setcdr m (cddr m))) |
| 306 | (setq m (cdr m)))) | 306 | (setq m (cdr m)))) |
| 307 | l) | 307 | l) |
| 308 | (define-obsolete-function-alias | ||
| 309 | 'eshell-uniqify-list | ||
| 310 | 'eshell-uniquify-list "27.1") | ||
| 308 | 311 | ||
| 309 | (defun eshell-stringify (object) | 312 | (defun eshell-stringify (object) |
| 310 | "Convert OBJECT into a string value." | 313 | "Convert OBJECT into a string value." |
diff --git a/lisp/org/org-pcomplete.el b/lisp/org/org-pcomplete.el index a7cc09def4b..1acb61590f4 100644 --- a/lisp/org/org-pcomplete.el +++ b/lisp/org/org-pcomplete.el | |||
| @@ -194,7 +194,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 194 | "Complete arguments for the #+LANGUAGE file option." | 194 | "Complete arguments for the #+LANGUAGE file option." |
| 195 | (require 'ox) | 195 | (require 'ox) |
| 196 | (pcomplete-here | 196 | (pcomplete-here |
| 197 | (pcomplete-uniqify-list | 197 | (pcomplete-uniquify-list |
| 198 | (list org-export-default-language "en")))) | 198 | (list org-export-default-language "en")))) |
| 199 | 199 | ||
| 200 | (defvar org-default-priority) | 200 | (defvar org-default-priority) |
| @@ -219,7 +219,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 219 | (defun pcomplete/org-mode/file-option/startup () | 219 | (defun pcomplete/org-mode/file-option/startup () |
| 220 | "Complete arguments for the #+STARTUP file option." | 220 | "Complete arguments for the #+STARTUP file option." |
| 221 | (while (pcomplete-here | 221 | (while (pcomplete-here |
| 222 | (let ((opts (pcomplete-uniqify-list | 222 | (let ((opts (pcomplete-uniquify-list |
| 223 | (mapcar 'car org-startup-options)))) | 223 | (mapcar 'car org-startup-options)))) |
| 224 | ;; Some options are mutually exclusive, and shouldn't be completed | 224 | ;; Some options are mutually exclusive, and shouldn't be completed |
| 225 | ;; against if certain other options have already been seen. | 225 | ;; against if certain other options have already been seen. |
| @@ -248,7 +248,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 248 | (defun pcomplete/org-mode/file-option/options () | 248 | (defun pcomplete/org-mode/file-option/options () |
| 249 | "Complete arguments for the #+OPTIONS file option." | 249 | "Complete arguments for the #+OPTIONS file option." |
| 250 | (while (pcomplete-here | 250 | (while (pcomplete-here |
| 251 | (pcomplete-uniqify-list | 251 | (pcomplete-uniquify-list |
| 252 | (append | 252 | (append |
| 253 | ;; Hard-coded OPTION items always available. | 253 | ;; Hard-coded OPTION items always available. |
| 254 | '("H:" "\\n:" "num:" "timestamp:" "arch:" "author:" "c:" | 254 | '("H:" "\\n:" "num:" "timestamp:" "arch:" "author:" "c:" |
| @@ -267,7 +267,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 267 | (defun pcomplete/org-mode/file-option/infojs_opt () | 267 | (defun pcomplete/org-mode/file-option/infojs_opt () |
| 268 | "Complete arguments for the #+INFOJS_OPT file option." | 268 | "Complete arguments for the #+INFOJS_OPT file option." |
| 269 | (while (pcomplete-here | 269 | (while (pcomplete-here |
| 270 | (pcomplete-uniqify-list | 270 | (pcomplete-uniquify-list |
| 271 | (mapcar (lambda (item) (format "%s:" (car item))) | 271 | (mapcar (lambda (item) (format "%s:" (car item))) |
| 272 | (bound-and-true-p org-html-infojs-opts-table)))))) | 272 | (bound-and-true-p org-html-infojs-opts-table)))))) |
| 273 | 273 | ||
| @@ -283,7 +283,7 @@ When completing for #+STARTUP, for example, this function returns | |||
| 283 | (defun pcomplete/org-mode/link () | 283 | (defun pcomplete/org-mode/link () |
| 284 | "Complete against defined #+LINK patterns." | 284 | "Complete against defined #+LINK patterns." |
| 285 | (pcomplete-here | 285 | (pcomplete-here |
| 286 | (pcomplete-uniqify-list | 286 | (pcomplete-uniquify-list |
| 287 | (copy-sequence | 287 | (copy-sequence |
| 288 | (append (mapcar 'car org-link-abbrev-alist-local) | 288 | (append (mapcar 'car org-link-abbrev-alist-local) |
| 289 | (mapcar 'car org-link-abbrev-alist)))))) | 289 | (mapcar 'car org-link-abbrev-alist)))))) |
| @@ -293,13 +293,13 @@ When completing for #+STARTUP, for example, this function returns | |||
| 293 | "Complete against TeX-style HTML entity names." | 293 | "Complete against TeX-style HTML entity names." |
| 294 | (require 'org-entities) | 294 | (require 'org-entities) |
| 295 | (while (pcomplete-here | 295 | (while (pcomplete-here |
| 296 | (pcomplete-uniqify-list (remove nil (mapcar 'car-safe org-entities))) | 296 | (pcomplete-uniquify-list (remove nil (mapcar 'car-safe org-entities))) |
| 297 | (substring pcomplete-stub 1)))) | 297 | (substring pcomplete-stub 1)))) |
| 298 | 298 | ||
| 299 | (defvar org-todo-keywords-1) | 299 | (defvar org-todo-keywords-1) |
| 300 | (defun pcomplete/org-mode/todo () | 300 | (defun pcomplete/org-mode/todo () |
| 301 | "Complete against known TODO keywords." | 301 | "Complete against known TODO keywords." |
| 302 | (pcomplete-here (pcomplete-uniqify-list (copy-sequence org-todo-keywords-1)))) | 302 | (pcomplete-here (pcomplete-uniquify-list (copy-sequence org-todo-keywords-1)))) |
| 303 | 303 | ||
| 304 | (defvar org-todo-line-regexp) | 304 | (defvar org-todo-line-regexp) |
| 305 | (defun pcomplete/org-mode/searchhead () | 305 | (defun pcomplete/org-mode/searchhead () |
| @@ -315,14 +315,14 @@ This needs more work, to handle headings with lots of spaces in them." | |||
| 315 | (push (org-make-org-heading-search-string | 315 | (push (org-make-org-heading-search-string |
| 316 | (match-string-no-properties 3)) | 316 | (match-string-no-properties 3)) |
| 317 | tbl))) | 317 | tbl))) |
| 318 | (pcomplete-uniqify-list tbl))) | 318 | (pcomplete-uniquify-list tbl))) |
| 319 | (substring pcomplete-stub 1)))) | 319 | (substring pcomplete-stub 1)))) |
| 320 | 320 | ||
| 321 | (defun pcomplete/org-mode/tag () | 321 | (defun pcomplete/org-mode/tag () |
| 322 | "Complete a tag name. Omit tags already set." | 322 | "Complete a tag name. Omit tags already set." |
| 323 | (while (pcomplete-here | 323 | (while (pcomplete-here |
| 324 | (mapcar (lambda (x) (concat x ":")) | 324 | (mapcar (lambda (x) (concat x ":")) |
| 325 | (let ((lst (pcomplete-uniqify-list | 325 | (let ((lst (pcomplete-uniquify-list |
| 326 | (or (remq | 326 | (or (remq |
| 327 | nil | 327 | nil |
| 328 | (mapcar (lambda (x) (org-string-nw-p (car x))) | 328 | (mapcar (lambda (x) (org-string-nw-p (car x))) |
| @@ -339,7 +339,7 @@ This needs more work, to handle headings with lots of spaces in them." | |||
| 339 | (pcomplete-here | 339 | (pcomplete-here |
| 340 | (mapcar (lambda (x) | 340 | (mapcar (lambda (x) |
| 341 | (concat x ": ")) | 341 | (concat x ": ")) |
| 342 | (let ((lst (pcomplete-uniqify-list | 342 | (let ((lst (pcomplete-uniquify-list |
| 343 | (copy-sequence | 343 | (copy-sequence |
| 344 | (org-buffer-property-keys nil t t t))))) | 344 | (org-buffer-property-keys nil t t t))))) |
| 345 | (dolist (prop (org-entry-properties)) | 345 | (dolist (prop (org-entry-properties)) |
diff --git a/lisp/pcmpl-cvs.el b/lisp/pcmpl-cvs.el index a3e2b2f5b3c..dedc0072237 100644 --- a/lisp/pcmpl-cvs.el +++ b/lisp/pcmpl-cvs.el | |||
| @@ -122,7 +122,7 @@ | |||
| 122 | (let (cmds) | 122 | (let (cmds) |
| 123 | (while (re-search-forward "^\\s-+\\([a-z]+\\)" nil t) | 123 | (while (re-search-forward "^\\s-+\\([a-z]+\\)" nil t) |
| 124 | (setq cmds (cons (match-string 1) cmds))) | 124 | (setq cmds (cons (match-string 1) cmds))) |
| 125 | (pcomplete-uniqify-list cmds)))) | 125 | (pcomplete-uniquify-list cmds)))) |
| 126 | 126 | ||
| 127 | (defun pcmpl-cvs-modules () | 127 | (defun pcmpl-cvs-modules () |
| 128 | "Return a list of available modules under CVS." | 128 | "Return a list of available modules under CVS." |
| @@ -132,7 +132,7 @@ | |||
| 132 | (let (entries) | 132 | (let (entries) |
| 133 | (while (re-search-forward "\\(\\S-+\\)$" nil t) | 133 | (while (re-search-forward "\\(\\S-+\\)$" nil t) |
| 134 | (setq entries (cons (match-string 1) entries))) | 134 | (setq entries (cons (match-string 1) entries))) |
| 135 | (pcomplete-uniqify-list entries)))) | 135 | (pcomplete-uniquify-list entries)))) |
| 136 | 136 | ||
| 137 | (defun pcmpl-cvs-tags (&optional opers) | 137 | (defun pcmpl-cvs-tags (&optional opers) |
| 138 | "Return all the tags which could apply to the files related to OPERS." | 138 | "Return all the tags which could apply to the files related to OPERS." |
| @@ -149,7 +149,7 @@ | |||
| 149 | (error "Error in output from `cvs status -v'")) | 149 | (error "Error in output from `cvs status -v'")) |
| 150 | (setq tags (cons (match-string 1) tags)) | 150 | (setq tags (cons (match-string 1) tags)) |
| 151 | (forward-line)))) | 151 | (forward-line)))) |
| 152 | (pcomplete-uniqify-list tags))) | 152 | (pcomplete-uniquify-list tags))) |
| 153 | 153 | ||
| 154 | (defun pcmpl-cvs-entries (&optional opers) | 154 | (defun pcmpl-cvs-entries (&optional opers) |
| 155 | "Return the Entries for the current directory. | 155 | "Return the Entries for the current directory. |
| @@ -187,6 +187,6 @@ operation character applies, as displayed by `cvs -n update'." | |||
| 187 | (setq entries (cons text entries)))) | 187 | (setq entries (cons text entries)))) |
| 188 | (forward-line))))) | 188 | (forward-line))))) |
| 189 | (setq pcomplete-stub nondir) | 189 | (setq pcomplete-stub nondir) |
| 190 | (pcomplete-uniqify-list entries))) | 190 | (pcomplete-uniquify-list entries))) |
| 191 | 191 | ||
| 192 | ;;; pcmpl-cvs.el ends here | 192 | ;;; pcmpl-cvs.el ends here |
diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el index 505d10c1641..16c992662dd 100644 --- a/lisp/pcmpl-gnu.el +++ b/lisp/pcmpl-gnu.el | |||
| @@ -125,7 +125,7 @@ | |||
| 125 | (while (re-search-forward | 125 | (while (re-search-forward |
| 126 | (concat "^\\s-*\\([^\n#%.$][^:=\n]*\\)\\s-*:[^=]") nil t) | 126 | (concat "^\\s-*\\([^\n#%.$][^:=\n]*\\)\\s-*:[^=]") nil t) |
| 127 | (setq rules (append (split-string (match-string 1)) rules)))) | 127 | (setq rules (append (split-string (match-string 1)) rules)))) |
| 128 | (pcomplete-uniqify-list rules)))) | 128 | (pcomplete-uniquify-list rules)))) |
| 129 | 129 | ||
| 130 | (defcustom pcmpl-gnu-tarfile-regexp | 130 | (defcustom pcmpl-gnu-tarfile-regexp |
| 131 | "\\.t\\(ar\\(\\.\\(gz\\|bz2\\|Z\\|xz\\)\\)?\\|gz\\|a[zZ]\\|z2\\)\\'" | 131 | "\\.t\\(ar\\(\\.\\(gz\\|bz2\\|Z\\|xz\\)\\)?\\|gz\\|a[zZ]\\|z2\\)\\'" |
diff --git a/lisp/pcmpl-linux.el b/lisp/pcmpl-linux.el index ce42486fda7..18cc647aac5 100644 --- a/lisp/pcmpl-linux.el +++ b/lisp/pcmpl-linux.el | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | "Completion for GNU/Linux `kill', using /proc filesystem." | 43 | "Completion for GNU/Linux `kill', using /proc filesystem." |
| 44 | (if (pcomplete-match "^-\\(.*\\)" 0) | 44 | (if (pcomplete-match "^-\\(.*\\)" 0) |
| 45 | (pcomplete-here | 45 | (pcomplete-here |
| 46 | (pcomplete-uniqify-list | 46 | (pcomplete-uniquify-list |
| 47 | (split-string | 47 | (split-string |
| 48 | (pcomplete-process-result "kill" "-l"))) | 48 | (pcomplete-process-result "kill" "-l"))) |
| 49 | (pcomplete-match-string 1 0))) | 49 | (pcomplete-match-string 1 0))) |
| @@ -82,7 +82,7 @@ | |||
| 82 | (args (split-string line " "))) | 82 | (args (split-string line " "))) |
| 83 | (setq points (cons (nth 1 args) points))) | 83 | (setq points (cons (nth 1 args) points))) |
| 84 | (forward-line))) | 84 | (forward-line))) |
| 85 | (pcomplete-uniqify-list points)))) | 85 | (pcomplete-uniquify-list points)))) |
| 86 | 86 | ||
| 87 | (defun pcomplete-pare-list (l r) | 87 | (defun pcomplete-pare-list (l r) |
| 88 | "Destructively remove from list L all elements matching any in list R. | 88 | "Destructively remove from list L all elements matching any in list R. |
| @@ -109,7 +109,7 @@ Test is done using `equal'." | |||
| 109 | (setq points (cons (nth 1 args) points))) | 109 | (setq points (cons (nth 1 args) points))) |
| 110 | (forward-line))) | 110 | (forward-line))) |
| 111 | (pcomplete-pare-list | 111 | (pcomplete-pare-list |
| 112 | (pcomplete-uniqify-list points) | 112 | (pcomplete-uniquify-list points) |
| 113 | (cons "swap" (pcmpl-linux-mounted-directories)))))) | 113 | (cons "swap" (pcmpl-linux-mounted-directories)))))) |
| 114 | 114 | ||
| 115 | ;;; pcmpl-linux.el ends here | 115 | ;;; pcmpl-linux.el ends here |
diff --git a/lisp/pcmpl-rpm.el b/lisp/pcmpl-rpm.el index d3250babe6a..624547ecd47 100644 --- a/lisp/pcmpl-rpm.el +++ b/lisp/pcmpl-rpm.el | |||
| @@ -96,7 +96,7 @@ | |||
| 96 | (pcomplete-process-result | 96 | (pcomplete-process-result |
| 97 | "rpm" "-q" (car pkgs) flag))) | 97 | "rpm" "-q" (car pkgs) flag))) |
| 98 | (setq pkgs (cdr pkgs))) | 98 | (setq pkgs (cdr pkgs))) |
| 99 | (pcomplete-uniqify-list (cdr provs)))) | 99 | (pcomplete-uniquifyxo-list (cdr provs)))) |
| 100 | 100 | ||
| 101 | (defsubst pcmpl-rpm-files () | 101 | (defsubst pcmpl-rpm-files () |
| 102 | (pcomplete-dirs-or-entries "\\.rpm\\'")) | 102 | (pcomplete-dirs-or-entries "\\.rpm\\'")) |
diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el index 90dde265999..1b11afd36bb 100644 --- a/lisp/pcmpl-unix.el +++ b/lisp/pcmpl-unix.el | |||
| @@ -111,7 +111,7 @@ documentation), this function returns nil." | |||
| 111 | (point))) ":"))) | 111 | (point))) ":"))) |
| 112 | (setq names (cons (nth 0 fields) names))) | 112 | (setq names (cons (nth 0 fields) names))) |
| 113 | (forward-line)))) | 113 | (forward-line)))) |
| 114 | (pcomplete-uniqify-list names))) | 114 | (pcomplete-uniquify-list names))) |
| 115 | 115 | ||
| 116 | (defsubst pcmpl-unix-group-names () | 116 | (defsubst pcmpl-unix-group-names () |
| 117 | "Read the contents of /etc/group for group names." | 117 | "Read the contents of /etc/group for group names." |
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 6078dfd7443..e7d12c63414 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el | |||
| @@ -950,7 +950,7 @@ Arguments NO-GANGING and ARGS-FOLLOW are currently ignored." | |||
| 950 | (function | 950 | (function |
| 951 | (lambda (opt) | 951 | (lambda (opt) |
| 952 | (concat "-" opt))) | 952 | (concat "-" opt))) |
| 953 | (pcomplete-uniqify-list choices)))) | 953 | (pcomplete-uniquify-list choices)))) |
| 954 | (let ((arg (pcomplete-arg))) | 954 | (let ((arg (pcomplete-arg))) |
| 955 | (when (and (> (length arg) 1) | 955 | (when (and (> (length arg) 1) |
| 956 | (stringp arg) | 956 | (stringp arg) |
| @@ -1269,7 +1269,7 @@ If specific documentation can't be given, be generic." | |||
| 1269 | 1269 | ||
| 1270 | ;; general utilities | 1270 | ;; general utilities |
| 1271 | 1271 | ||
| 1272 | (defun pcomplete-uniqify-list (l) | 1272 | (defun pcomplete-uniquify-list (l) |
| 1273 | "Sort and remove multiples in L." | 1273 | "Sort and remove multiples in L." |
| 1274 | (setq l (sort l 'string-lessp)) | 1274 | (setq l (sort l 'string-lessp)) |
| 1275 | (let ((m l)) | 1275 | (let ((m l)) |
| @@ -1280,6 +1280,9 @@ If specific documentation can't be given, be generic." | |||
| 1280 | (setcdr m (cddr m))) | 1280 | (setcdr m (cddr m))) |
| 1281 | (setq m (cdr m)))) | 1281 | (setq m (cdr m)))) |
| 1282 | l) | 1282 | l) |
| 1283 | (define-obsolete-function-alias | ||
| 1284 | 'pcomplete-uniqify-list | ||
| 1285 | 'pcomplete-uniquify-list "27.1") | ||
| 1283 | 1286 | ||
| 1284 | (defun pcomplete-process-result (cmd &rest args) | 1287 | (defun pcomplete-process-result (cmd &rest args) |
| 1285 | "Call CMD using `call-process' and return the simplest result." | 1288 | "Call CMD using `call-process' and return the simplest result." |