From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#22157: html renderer shr - Links open twice in external browser Date: Mon, 13 Jun 2016 10:22:20 +0900 Organization: Emacsen advocacy group Message-ID: References: <19694.1449984793@allegro.localdomain> <8777.1461865387@allegro.localdomain> <87eg9fr2zm.fsf@petton.fr> <87a8itxurr.fsf@gmx.net> <575AC792.8030701@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465781007 11949 80.91.229.3 (13 Jun 2016 01:23:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2016 01:23:27 +0000 (UTC) To: 22157@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 03:23:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bCGay-0008Dl-Rw for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 03:23:16 +0200 Original-Received: from localhost ([::1]:53288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCGay-0003HN-38 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jun 2016 21:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCGap-0003H6-V0 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2016 21:23:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCGak-0001De-QW for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2016 21:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCGak-0001Da-Mq for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2016 21:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bCGak-0008D1-6w; Sun, 12 Jun 2016 21:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <19694.1449984793@allegro.localdomain> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 13 Jun 2016 01:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22157 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 22157-submit@debbugs.gnu.org id=B22157.146578094931505 (code B ref 22157); Mon, 13 Jun 2016 01:23:02 +0000 Original-Received: (at 22157) by debbugs.gnu.org; 13 Jun 2016 01:22:29 +0000 Original-Received: from localhost ([127.0.0.1]:38427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCGaD-0008C4-B9 for submit@debbugs.gnu.org; Sun, 12 Jun 2016 21:22:29 -0400 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:54086 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCGaC-0008Br-06 for 22157@debbugs.gnu.org; Sun, 12 Jun 2016 21:22:28 -0400 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:62363 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1bCGZz-002oHR-9Z; Sun, 12 Jun 2016 20:22:21 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (i686-pc-cygwin) Cancel-Lock: sha1:A1pLNCIqMQvNtHEw1N3lnYZBxC0= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119476 Archived-At: On Fri, 10 Jun 2016 15:58:42 +0200, martin rudalics wrote: >> When viewing an HTML email using shr, when I left-click on a link, Gnus >> starts 2 browsers and directs each to the URL for the link. > One for the down and one for the up event, I suppose. Left-click causes invoking `widget-button-click' by the mouse-1 event, and `shr-browse-url' by the mouse-2 event 0.6 sec after (I tested it by adding a logger code to each function). But middle-click invokes only `widget-button-click' by down-mouse-2. At the link position, there are two keymaps[1]: There is an overlay here: From 876 to 882 button url-link (widget)Top evaporate t face nil follow-link nil help-echo [Show] -> "https://www.amazon.co.jp/..." keymap [Show] -> (keymap ...(mouse-2 . shr-browse-url) (follow-link . mouse-face)... mouse-face (highlight) pointer hand There are text properties here: face (variable-pitch shr-link (:foreground "#333333")... follow-link t help-echo [Show] -> "https://www.amazon.co.jp/..." keymap [Show] -> (keymap ...(mouse-2 . shr-browse-url) (follow-link . mouse-face)... local-map nil mouse-face highlight shr-url [Show] -> (the same as the help-echo string) IIUC, the overlay is what `mm-convert-shr-links' adds, and the text properties are what `shr-urlify' adds. Though Lars wrote in 2013-06-17 as follows, is it really necessary? * mm-decode.el (mm-convert-shr-links): Override the shr local map, so that Gnus commands work. [1] I wrote "there are three keymaps" last month but it's wrong, probably.