diff options
| author | Gerd Moellmann | 2000-01-11 22:04:24 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-11 22:04:24 +0000 |
| commit | c2a8d4a7df33dfee3e90eb95ba586c25a519fe23 (patch) | |
| tree | fda79bb1422d57ec6108354834ea002c85e3b6c9 | |
| parent | 7e3c74fa85f9831e9b5c0c1ae0e8ae6f35f5f39e (diff) | |
| download | emacs-c2a8d4a7df33dfee3e90eb95ba586c25a519fe23.tar.gz emacs-c2a8d4a7df33dfee3e90eb95ba586c25a519fe23.zip | |
(tmm-shortcut): Delete region after prompt instead
of erasing buffer.
| -rw-r--r-- | lisp/tmm.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el index 72438186391..e2c72b2feb8 100644 --- a/lisp/tmm.el +++ b/lisp/tmm.el | |||
| @@ -372,7 +372,8 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'." | |||
| 372 | (re-search-forward | 372 | (re-search-forward |
| 373 | (concat "\\(^\\|[ \t]\\)" (char-to-string c) tmm-mid-prompt)) | 373 | (concat "\\(^\\|[ \t]\\)" (char-to-string c) tmm-mid-prompt)) |
| 374 | (choose-completion)) | 374 | (choose-completion)) |
| 375 | (erase-buffer) ; In minibuffer | 375 | ;; In minibuffer |
| 376 | (delete-region (minibuffer-prompt-end) (point-max)) | ||
| 376 | (mapcar (lambda (elt) | 377 | (mapcar (lambda (elt) |
| 377 | (if (string= | 378 | (if (string= |
| 378 | (substring (car elt) 0 | 379 | (substring (car elt) 0 |