diff options
| author | Richard M. Stallman | 1996-06-29 06:21:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-29 06:21:17 +0000 |
| commit | 9f80907ace81bd1282450720fc9c996fb895ca22 (patch) | |
| tree | b72cdf93f5fdd35b75547d79a964a7679cd29cff | |
| parent | a40384bc10d34f5bb8ed439fc7e0715863f294d0 (diff) | |
| download | emacs-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.el | 10 |
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 | |||
| 105 | the item in the minibuffer, and press RET when you are done, or press the | 105 | the item in the minibuffer, and press RET when you are done, or press the |
| 106 | marked letters to pick up your choice. Type C-g or ESC ESC ESC to cancel. | 106 | marked 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. |
| 109 | If this is nil, delete even the usual help text | ||
| 110 | and 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 |