Mercurial > emacs
changeset 4592:168bcc1aeea3
(mouse-choose-completion): Really go to minibuffer; no save-excursion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 12 Aug 1993 22:21:12 +0000 |
parents | 0dd1dfcb2332 |
children | efead3ca0cd4 |
files | lisp/mouse.el |
diffstat | 1 files changed, 9 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Thu Aug 12 22:17:13 1993 +0000 +++ b/lisp/mouse.el Thu Aug 12 22:21:12 1993 +0000 @@ -880,16 +880,15 @@ (let ((beg (point))) (skip-chars-forward "^ \t\n") (setq choice (buffer-substring beg (point)))))) - (save-excursion - (set-buffer (window-buffer (minibuffer-window))) - (goto-char (max (point-min) (- (point-max) (length choice)))) - (while (and (not (eobp)) - (let ((tail (buffer-substring (point) (point-max)))) - (not (string= tail (substring choice 0 (length tail)))))) - (forward-char 1)) - (insert choice) - (delete-region (point) (point-max)) - (minibuffer-complete-and-exit)))) + (set-buffer (window-buffer (minibuffer-window))) + (goto-char (max (point-min) (- (point-max) (length choice)))) + (while (and (not (eobp)) + (let ((tail (buffer-substring (point) (point-max)))) + (not (string= tail (substring choice 0 (length tail)))))) + (forward-char 1)) + (insert choice) + (delete-region (point) (point-max)) + (minibuffer-complete-and-exit))) ;; Font selection.