aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-07 03:37:55 +0000
committerRichard M. Stallman1994-03-07 03:37:55 +0000
commit73e2025fcd444bb866f083b603481428a4d5490d (patch)
tree94c256979cd6689b86f47e6a0ea692577ec1d5ec
parent0a688fd0fcca19716d44e548b280bd1decaab6ef (diff)
downloademacs-73e2025fcd444bb866f083b603481428a4d5490d.tar.gz
emacs-73e2025fcd444bb866f083b603481428a4d5490d.zip
(mouse-choose-completion): Bury the completion buffer.
-rw-r--r--lisp/mouse.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index fb49a2ced32..4ff1b9659e4 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -1214,6 +1214,10 @@ and selects that window."
1214 (let ((beg (point))) 1214 (let ((beg (point)))
1215 (skip-chars-forward "^ \t\n") 1215 (skip-chars-forward "^ \t\n")
1216 (setq choice (buffer-substring beg (point)))))) 1216 (setq choice (buffer-substring beg (point))))))
1217 (let ((owindow (selected-window)))
1218 (select-window (posn-window (event-start event)))
1219 (bury-buffer)
1220 (select-window owindow))
1217 (set-buffer buffer) 1221 (set-buffer buffer)
1218 (mouse-delete-max-match choice) 1222 (mouse-delete-max-match choice)
1219 (insert choice) 1223 (insert choice)