diff options
| author | Miles Bader | 2002-07-08 08:45:12 +0000 |
|---|---|---|
| committer | Miles Bader | 2002-07-08 08:45:12 +0000 |
| commit | 66f12dcd3c2dca02092e32298cda860b8274c7b5 (patch) | |
| tree | 455772357e0763cf42ab7f69a529dd0441ca054c | |
| parent | 4c02ca4625a9f1588817d94e93298336865d6462 (diff) | |
| download | emacs-66f12dcd3c2dca02092e32298cda860b8274c7b5.tar.gz emacs-66f12dcd3c2dca02092e32298cda860b8274c7b5.zip | |
(comint-dynamic-list-completions): Sort COMPLETIONS before first use.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index deb52acebfc..cb82b347303 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-07-08 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * comint.el (comint-dynamic-list-completions): Sort COMPLETIONS | ||
| 4 | before first use. | ||
| 5 | |||
| 1 | 2002-07-08 Kim F. Storm <storm@cua.dk> | 6 | 2002-07-08 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * files.el (after-find-file): Don't check for read-only status | 8 | * files.el (after-find-file): Don't check for read-only status |
diff --git a/lisp/comint.el b/lisp/comint.el index 3c0be25c199..e7d038e668d 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -2807,6 +2807,7 @@ See also `comint-dynamic-complete-filename'." | |||
| 2807 | "List in help buffer sorted COMPLETIONS. | 2807 | "List in help buffer sorted COMPLETIONS. |
| 2808 | Typing SPC flushes the help buffer." | 2808 | Typing SPC flushes the help buffer." |
| 2809 | (let ((window (get-buffer-window "*Completions*"))) | 2809 | (let ((window (get-buffer-window "*Completions*"))) |
| 2810 | (setq completions (sort completions 'string-lessp)) | ||
| 2810 | (if (and (eq last-command this-command) | 2811 | (if (and (eq last-command this-command) |
| 2811 | window (window-live-p window) (window-buffer window) | 2812 | window (window-live-p window) (window-buffer window) |
| 2812 | (buffer-name (window-buffer window)) | 2813 | (buffer-name (window-buffer window)) |
| @@ -2833,7 +2834,7 @@ Typing SPC flushes the help buffer." | |||
| 2833 | 2834 | ||
| 2834 | (let ((conf (current-window-configuration))) | 2835 | (let ((conf (current-window-configuration))) |
| 2835 | (with-output-to-temp-buffer "*Completions*" | 2836 | (with-output-to-temp-buffer "*Completions*" |
| 2836 | (display-completion-list (sort completions 'string-lessp))) | 2837 | (display-completion-list completions)) |
| 2837 | (message "Type space to flush; repeat completion command to scroll") | 2838 | (message "Type space to flush; repeat completion command to scroll") |
| 2838 | (let (key first) | 2839 | (let (key first) |
| 2839 | (if (save-excursion | 2840 | (if (save-excursion |