bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17633: 24.3.91; mouse-drag-line: Symbol's function definition is voi


From: Stefan Monnier
Subject: bug#17633: 24.3.91; mouse-drag-line: Symbol's function definition is void: mouse--remap-link-click-p
Date: Sat, 31 May 2014 08:34:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> AFAICS both issues are manifestations of the same bug because both of
> them only come up if point is on a character with a dedicated keymap.

Indeed, I installed the patch below which seems to fix them.
Can you confirm it fixes the problems you've seen?


        Stefan


=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog      2014-05-31 01:01:19 +0000
+++ lisp/ChangeLog      2014-05-31 12:32:03 +0000
@@ -1,5 +1,8 @@
 2014-05-31  Stefan Monnier  <address@hidden>
 
+       * mouse.el (mouse-posn-property): Ignore posn-point for mode-line
+       clicks (bug#17633).
+
        * leim/quail/latin-pre.el ("latin-2-prefix"): Use ",," rather than ", "
        for the single comma, since ", " is *very* common in normal French text
        (bug#17643).

=== modified file 'lisp/mouse.el'
--- lisp/mouse.el       2014-05-18 22:53:27 +0000
+++ lisp/mouse.el       2014-05-31 12:30:47 +0000
@@ -658,7 +658,10 @@
            (str (posn-string pos)))
        (or (and str
                 (get-text-property (cdr str) property (car str)))
-           (and pt
+            ;; FIXME: mouse clicks on the mode-line come with a position in
+            ;; (nth 5).  Maybe we should change the C code instead so that
+            ;; mouse-clicks don't include a position there!
+           (and pt (not (memq (posn-area pos) '(mode-line header-line)))
                 (get-char-property pt property w))))
     (get-char-property pos property)))
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]