GNU bug report logs -
#22157
left-clicking on a link: 2 browsers or a warning
Previous Next
Reported by: Mike Kupfer <m.kupfer <at> acm.org>
Date: Sun, 13 Dec 2015 05:34:02 UTC
Severity: normal
Done: Katsumi Yamaoka <yamaoka <at> jpl.org>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 22157 <at> debbugs.gnu.org (full text, mbox):
(Last Subject: problem only seen with Gnus, not MH-E)
I don't know why it doesn't happen with MH-E, though. I think
this is why a link opens twice:
・If a link has an image, there are two keymaps `shr-map' and
`shr-image-map'. `shr-map' binds `mouse-2' to `shr-browse-url',
and `follow-link' to `mouse-face'; `shr-image-map' has a copy
of `shr-map' bindings.
・The `follow-link' binding responds to the `mouse-1' button if
`mouse-1-click-follows-link' is non-nil (the default).
A fix would be:
--- shr.el~ 2016-04-24 22:03:10.675591200 +0000
+++ shr.el 2016-05-02 07:23:19.038316700 +0000
@@ -191,7 +191,7 @@
map))
(defvar shr-image-map
- (let ((map (copy-keymap shr-map)))
+ (let ((map (make-sparse-keymap)))
(when (boundp 'image-map)
(set-keymap-parent map image-map))
map))
I realized why I wasn't troubled with such a problem is that
I've set `mouse-1-click-follows-link' to nil years ago. ;-)
This bug report was last modified 8 years and 335 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.