aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1993-07-31 05:31:58 +0000
committerRichard M. Stallman <[email protected]>1993-07-31 05:31:58 +0000
commit49e61c42679385a7dca711a56b67c426e95417cf (patch)
treea97eb9bdb447643e7a6737858f80e2e5aca6a9f2 /lisp/mouse.el
parent8686888e2c3ac0bb432e4d126d1e01967ac5f74b (diff)
(mouse-choose-completion): Actually choose that alternative,
don't just insert its name.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index b3ce6da668..904227727e 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -843,6 +843,7 @@ and selects that window."
;; Choose a completion with the mouse.
(defun mouse-choose-completion (event)
+ "Click on an alternative in the `*Completions*' buffer to choose it."
(interactive "e")
(let (choice)
(save-excursion
@@ -861,7 +862,8 @@ and selects that window."
(not (string= tail (substring choice 0 (length tail))))))
(forward-char 1))
(insert choice)
- (delete-region (point) (point-max)))))
+ (delete-region (point) (point-max))
+ (minibuffer-complete-and-exit))))
;; Font selection.