aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2000-01-11 22:04:24 +0000
committerGerd Moellmann <[email protected]>2000-01-11 22:04:24 +0000
commitc2a8d4a7df33dfee3e90eb95ba586c25a519fe23 (patch)
treefda79bb1422d57ec6108354834ea002c85e3b6c9 /lisp
parent7e3c74fa85f9831e9b5c0c1ae0e8ae6f35f5f39e (diff)
(tmm-shortcut): Delete region after prompt instead
of erasing buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tmm.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 7243818639..e2c72b2feb 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'."
(re-search-forward
(concat "\\(^\\|[ \t]\\)" (char-to-string c) tmm-mid-prompt))
(choose-completion))
- (erase-buffer) ; In minibuffer
+ ;; In minibuffer
+ (delete-region (minibuffer-prompt-end) (point-max))
(mapcar (lambda (elt)
(if (string=
(substring (car elt) 0