aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-29 06:21:17 +0000
committerRichard M. Stallman1996-06-29 06:21:17 +0000
commit9f80907ace81bd1282450720fc9c996fb895ca22 (patch)
treeb72cdf93f5fdd35b75547d79a964a7679cd29cff
parenta40384bc10d34f5bb8ed439fc7e0715863f294d0 (diff)
downloademacs-9f80907ace81bd1282450720fc9c996fb895ca22.tar.gz
emacs-9f80907ace81bd1282450720fc9c996fb895ca22.zip
(tmm-add-prompt): If tmm-completion-prompt is nil,
don't insert it; instead delete the usual completion helptext. (tmm-completion-prompt): Doc fix.
-rw-r--r--lisp/tmm.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el
index b648b922318..0b1b4c47663 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -105,7 +105,9 @@ Alternatively, you can use Up/Down keys (or your History keys) to change
105the item in the minibuffer, and press RET when you are done, or press the 105the item in the minibuffer, and press RET when you are done, or press the
106marked letters to pick up your choice. Type C-g or ESC ESC ESC to cancel. 106marked letters to pick up your choice. Type C-g or ESC ESC ESC to cancel.
107" 107"
108 "What insert on top of completion buffer.") 108 "String to insert at top of completion buffer.
109If this is nil, delete even the usual help text
110and show just the alternatives.")
109 111
110;;;###autoload 112;;;###autoload
111(defun tmm-prompt (menu &optional in-popup default-item) 113(defun tmm-prompt (menu &optional in-popup default-item)
@@ -277,7 +279,11 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'."
277 (display-completion-list completions))) 279 (display-completion-list completions)))
278 (set-buffer "*Completions*") 280 (set-buffer "*Completions*")
279 (goto-char 1) 281 (goto-char 1)
280 (insert tmm-completion-prompt) 282 (if tmm-completion-prompt
283 (insert tmm-completion-prompt)
284 ;; Delete even the usual help info that all completion buffers have.
285 (goto-char 1)
286 (delete-region 1 (search-forward "Possible completions are:\n")))
281 ) 287 )
282 (save-excursion 288 (save-excursion
283 (other-window 1) ; Electric-pop-up-window does 289 (other-window 1) ; Electric-pop-up-window does