diff options
| author | Romain Francoise | 2006-12-09 11:14:35 +0000 |
|---|---|---|
| committer | Romain Francoise | 2006-12-09 11:14:35 +0000 |
| commit | 5641e7a93a85a73fd571f2e1f9158c3eac95ecca (patch) | |
| tree | 34e1047f100690f9fb4461c570200eed174a7d22 | |
| parent | f2e3589a330a23ec37d00700385323e2265b8a49 (diff) | |
| download | emacs-5641e7a93a85a73fd571f2e1f9158c3eac95ecca.tar.gz emacs-5641e7a93a85a73fd571f2e1f9158c3eac95ecca.zip | |
(comint-insert-input): Delete obsolete comment.
Examine input field without moving point.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1c85c23e720..09e3736df70 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-12-09 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * comint.el (comint-insert-input): Delete obsolete comment. | ||
| 4 | Examine input field without moving point. | ||
| 5 | |||
| 1 | 2006-12-08 Kevin Rodgers <ihs_4664@yahoo.com> | 6 | 2006-12-08 Kevin Rodgers <ihs_4664@yahoo.com> |
| 2 | 7 | ||
| 3 | * files.el (insert-file-1): Compare file size to | 8 | * files.el (insert-file-1): Compare file size to |
diff --git a/lisp/comint.el b/lisp/comint.el index 191807af847..948057c6bc2 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -804,11 +804,10 @@ buffer. The hook `comint-exec-hook' is run after each exec." | |||
| 804 | 804 | ||
| 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 | ;; This doesn't use "e" because it is supposed to work | ||
| 808 | ;; for events without parameters. | ||
| 809 | (interactive "e") | 807 | (interactive "e") |
| 810 | (mouse-set-point event) | 808 | ;; Note: be careful not to move point in this function, it would |
| 811 | (let ((pos (point))) | 809 | ;; defeat `mouse-yank-at-point' in case we fall back to a yank. |
| 810 | (let ((pos (posn-point (event-end event)))) | ||
| 812 | (if (not (eq (field-at-pos pos) 'input)) | 811 | (if (not (eq (field-at-pos pos) 'input)) |
| 813 | ;; No input at POS, fall back to the global definition. | 812 | ;; No input at POS, fall back to the global definition. |
| 814 | (let* ((keys (this-command-keys)) | 813 | (let* ((keys (this-command-keys)) |