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
View this message in rfc822 format
On Mon, 02 May 2016 16:31:34 +0900, Katsumi Yamaoka wrote:
> 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.
No. There are three keymaps. The other one is that of the widget
button, that `mm-convert-shr-links' creates. This might be the
reason why it doesn't happen with MH-E.
> ・The `follow-link' binding responds to the `mouse-1' button if
> `mouse-1-click-follows-link' is non-nil (the default).
But I don't know why it responds to a single `mouse-1' click twice
so far. It might otherwise not be the cause.
> 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))
This fixes the problem anyway.
I tried making a simple test program that reproduce the `twice'
problem, but haven't succeeded in it yet.
This bug report was last modified 8 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.