(comint-dynamic-list-completions): Sort COMPLETIONS before first use.
This commit is contained in:
parent
4c02ca4625
commit
66f12dcd3c
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-07-08 Miles Bader <miles@gnu.org>
|
||||
|
||||
* comint.el (comint-dynamic-list-completions): Sort COMPLETIONS
|
||||
before first use.
|
||||
|
||||
2002-07-08 Kim F. Storm <storm@cua.dk>
|
||||
|
||||
* files.el (after-find-file): Don't check for read-only status
|
||||
|
|
|
@ -2807,6 +2807,7 @@ See also `comint-dynamic-complete-filename'."
|
|||
"List in help buffer sorted COMPLETIONS.
|
||||
Typing SPC flushes the help buffer."
|
||||
(let ((window (get-buffer-window "*Completions*")))
|
||||
(setq completions (sort completions 'string-lessp))
|
||||
(if (and (eq last-command this-command)
|
||||
window (window-live-p window) (window-buffer window)
|
||||
(buffer-name (window-buffer window))
|
||||
|
@ -2833,7 +2834,7 @@ Typing SPC flushes the help buffer."
|
|||
|
||||
(let ((conf (current-window-configuration)))
|
||||
(with-output-to-temp-buffer "*Completions*"
|
||||
(display-completion-list (sort completions 'string-lessp)))
|
||||
(display-completion-list completions))
|
||||
(message "Type space to flush; repeat completion command to scroll")
|
||||
(let (key first)
|
||||
(if (save-excursion
|
||||
|
|
Loading…
Add table
Reference in a new issue