1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(comint-dynamic-list-completions): No space in *Completions*.

This commit is contained in:
Richard M. Stallman 1994-06-10 23:02:04 +00:00
parent 1af808dc42
commit dd3038f6b2

View file

@ -1965,17 +1965,17 @@ See also `comint-dynamic-complete-filename'."
"List in help buffer sorted COMPLETIONS.
Typing SPC flushes the help buffer."
(let ((conf (current-window-configuration)))
(with-output-to-temp-buffer " *Completions*"
(with-output-to-temp-buffer "*Completions*"
(display-completion-list (sort completions 'string-lessp)))
(message "Hit space to flush")
(let (key first)
(if (save-excursion
(set-buffer (get-buffer " *Completions*"))
(set-buffer (get-buffer "*Completions*"))
(setq key (read-key-sequence nil)
first (aref key 0))
(and (consp first)
(eq (window-buffer (posn-window (event-start first)))
(get-buffer " *Completions*"))
(get-buffer "*Completions*"))
(eq (key-binding key) 'mouse-choose-completion)))
;; If the user does mouse-choose-completion with the mouse,
;; execute the command, then delete the completion window.