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:
parent
1af808dc42
commit
dd3038f6b2
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue