GNU bug report logs - #17633
24.3.91; mouse-drag-line: Symbol's function definition is void: mouse--remap-link-click-p

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <ch <at> ristopher.com>

Date: Thu, 29 May 2014 17:46:02 UTC

Severity: important

Found in version 24.3.91

Done: Christopher Schmidt <ch <at> ristopher.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 17633 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 17633 <at> debbugs.gnu.org
Subject: Re: 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
> 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  <monnier <at> iro.umontreal.ca>
 
+	* 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)))
 





This bug report was last modified 11 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.