# HG changeset patch # User Romain Francoise # Date 1165669801 0 # Node ID b97c3d2878498e46c51bb1ed395d6970cef89f67 # Parent 3fccc1870d622f3665e8a2c944c7a395377810ae Revert last change. diff -r 3fccc1870d62 -r b97c3d287849 lisp/ChangeLog --- a/lisp/ChangeLog Sat Dec 09 13:09:34 2006 +0000 +++ b/lisp/ChangeLog Sat Dec 09 13:10:01 2006 +0000 @@ -16,7 +16,6 @@ 2006-12-09 Romain Francoise * comint.el (comint-insert-input): Delete obsolete comment. - Examine input field without moving point. 2006-12-08 Kevin Rodgers diff -r 3fccc1870d62 -r b97c3d287849 lisp/comint.el --- a/lisp/comint.el Sat Dec 09 13:09:34 2006 +0000 +++ b/lisp/comint.el Sat Dec 09 13:10:01 2006 +0000 @@ -805,9 +805,8 @@ (defun comint-insert-input (event) "In a Comint buffer, set the current input to the previous input at point." (interactive "e") - ;; Note: be careful not to move point in this function, it would - ;; defeat `mouse-yank-at-point' in case we fall back to a yank. - (let ((pos (posn-point (event-end event)))) + (mouse-set-point event) + (let ((pos (point))) (if (not (eq (field-at-pos pos) 'input)) ;; No input at POS, fall back to the global definition. (let* ((keys (this-command-keys))