diff options
| author | Stefan Monnier | 2009-12-01 20:31:57 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-12-01 20:31:57 +0000 |
| commit | e7440df4ecdb7b908996c144fca445f59d96b82b (patch) | |
| tree | 0ae247a8beb14d41f30d54422ec2ce75749f57a4 | |
| parent | c767b6650c52356e08893f0c61ee2094281e422f (diff) | |
| download | emacs-e7440df4ecdb7b908996c144fca445f59d96b82b.tar.gz emacs-e7440df4ecdb7b908996c144fca445f59d96b82b.zip | |
(comint-insert-input): Ignore clicks to the right of
the field. Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/comint.el | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b59cfde463b..93634ce6451 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-12-01 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-12-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * comint.el (comint-insert-input): Ignore clicks to the right of | ||
| 4 | the field. Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>. | ||
| 5 | |||
| 3 | * vc.el (vc-print-log-internal): Don't wait for the prcess to | 6 | * vc.el (vc-print-log-internal): Don't wait for the prcess to |
| 4 | terminate before setting up the major mode. | 7 | terminate before setting up the major mode. |
| 5 | 8 | ||
diff --git a/lisp/comint.el b/lisp/comint.el index 4dbd58144ea..92bfe24373f 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -828,7 +828,10 @@ by the global keymap (usually `mouse-yank-at-click')." | |||
| 828 | (let ((pos (posn-point (event-end event))) | 828 | (let ((pos (posn-point (event-end event))) |
| 829 | field input) | 829 | field input) |
| 830 | (with-selected-window (posn-window (event-end event)) | 830 | (with-selected-window (posn-window (event-end event)) |
| 831 | (and (setq field (field-at-pos pos)) | 831 | ;; If pos is at the very end of a field, the mouse-click was |
| 832 | ;; probably outside (to the right) of the field. | ||
| 833 | (and (< pos (field-end pos)) | ||
| 834 | (setq field (field-at-pos pos)) | ||
| 832 | (setq input (field-string-no-properties pos)))) | 835 | (setq input (field-string-no-properties pos)))) |
| 833 | (if (or (null comint-accum-marker) | 836 | (if (or (null comint-accum-marker) |
| 834 | (not (eq field 'input))) | 837 | (not (eq field 'input))) |