diff options
| author | Romain Francoise | 2006-12-09 13:10:01 +0000 |
|---|---|---|
| committer | Romain Francoise | 2006-12-09 13:10:01 +0000 |
| commit | c169c5a33b85c491fdbd07ebe890e4cce967ef57 (patch) | |
| tree | f57cbd10d696f55c2d5f288655f766ab961d7ca4 | |
| parent | 9a5cd478ea18ebc5660104af92c5c9cb218319d6 (diff) | |
| download | emacs-c169c5a33b85c491fdbd07ebe890e4cce967ef57.tar.gz emacs-c169c5a33b85c491fdbd07ebe890e4cce967ef57.zip | |
Revert last change.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/comint.el | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99ac90754b3..2f754028e74 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | 2006-12-09 Romain Francoise <romain@orebokech.com> | 16 | 2006-12-09 Romain Francoise <romain@orebokech.com> |
| 17 | 17 | ||
| 18 | * comint.el (comint-insert-input): Delete obsolete comment. | 18 | * comint.el (comint-insert-input): Delete obsolete comment. |
| 19 | Examine input field without moving point. | ||
| 20 | 19 | ||
| 21 | 2006-12-08 Kevin Rodgers <ihs_4664@yahoo.com> | 20 | 2006-12-08 Kevin Rodgers <ihs_4664@yahoo.com> |
| 22 | 21 | ||
diff --git a/lisp/comint.el b/lisp/comint.el index 948057c6bc2..b32f129c679 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -805,9 +805,8 @@ buffer. The hook `comint-exec-hook' is run after each exec." | |||
| 805 | (defun comint-insert-input (event) | 805 | (defun comint-insert-input (event) |
| 806 | "In a Comint buffer, set the current input to the previous input at point." | 806 | "In a Comint buffer, set the current input to the previous input at point." |
| 807 | (interactive "e") | 807 | (interactive "e") |
| 808 | ;; Note: be careful not to move point in this function, it would | 808 | (mouse-set-point event) |
| 809 | ;; defeat `mouse-yank-at-point' in case we fall back to a yank. | 809 | (let ((pos (point))) |
| 810 | (let ((pos (posn-point (event-end event)))) | ||
| 811 | (if (not (eq (field-at-pos pos) 'input)) | 810 | (if (not (eq (field-at-pos pos) 'input)) |
| 812 | ;; No input at POS, fall back to the global definition. | 811 | ;; No input at POS, fall back to the global definition. |
| 813 | (let* ((keys (this-command-keys)) | 812 | (let* ((keys (this-command-keys)) |