diff options
| author | Stefan Monnier | 2014-06-05 22:35:17 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-06-05 22:35:17 -0400 |
| commit | 631de55bc19931ca2d778e8399697921228902a8 (patch) | |
| tree | 70d957dfc083c83272435459c80fb364094772f3 /lisp | |
| parent | 79b0d21638cce19216607a89b6470b1e72a028b8 (diff) | |
| download | emacs-631de55bc19931ca2d778e8399697921228902a8.tar.gz emacs-631de55bc19931ca2d778e8399697921228902a8.zip | |
* lisp/mouse.el (mouse-posn-property): Ignore buffer position info when the
even happened elsewhere.
* src/keyboard.c (make_lispy_position): Don't include a buffer position in
mode/header-line mouse events.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mouse.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 10358c91636..ca9ea5dadca 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -684,10 +684,11 @@ its value is returned." | |||
| 684 | (str (posn-string pos))) | 684 | (str (posn-string pos))) |
| 685 | (or (and str | 685 | (or (and str |
| 686 | (get-text-property (cdr str) property (car str))) | 686 | (get-text-property (cdr str) property (car str))) |
| 687 | ;; FIXME: mouse clicks on the mode-line come with a position in | 687 | ;; Mouse clicks in the fringe come with a position in |
| 688 | ;; (nth 5). Maybe we should change the C code instead so that | 688 | ;; (nth 5). This is useful but is not exactly where we clicked, so |
| 689 | ;; mouse-clicks don't include a position there! | 689 | ;; don't look up that position's properties! |
| 690 | (and pt (not (memq (posn-area pos) '(mode-line header-line))) | 690 | (and pt (not (memq (posn-area pos) '(left-fringe right-fringe |
| 691 | left-margin right-margin))) | ||
| 691 | (get-char-property pt property w)))) | 692 | (get-char-property pt property w)))) |
| 692 | (get-char-property pos property))) | 693 | (get-char-property pos property))) |
| 693 | 694 | ||