From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87364 Path: news.gmane.org!.POSTED!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Left-clicking on a link in an shr-rendered HTML article opens the link twice Date: Thu, 16 Feb 2017 13:22:32 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87o9y2wcjb.fsf@koldfront.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1487247838 8969 195.159.176.226 (16 Feb 2017 12:23:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 12:23:58 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35585@lists.math.uh.edu Thu Feb 16 13:23:49 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceL6C-0001SI-RD for ding-account@gmane.org; Thu, 16 Feb 2017 13:23:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1ceL5G-000484-Nk; Thu, 16 Feb 2017 06:22:50 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1ceL5D-00047L-Td for ding@lists.math.uh.edu; Thu, 16 Feb 2017 06:22:47 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1ceL59-00049d-TB for ding@lists.math.uh.edu; Thu, 16 Feb 2017 06:22:47 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ceL58-0002Qe-Gu for ding@gnus.org; Thu, 16 Feb 2017 13:22:42 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ceL4z-0004GU-K9 for ding@gnus.org; Thu, 16 Feb 2017 13:22:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@blaine.gmane.org OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: 24 Hours, Theme Time Radio Hour - 24 - Time (Eddie Boyd) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87364 Archived-At: Am I the only one with this problem: If I open an HTML article in Gnus, rendered by shr, and left-click a link, almost all the time, the link is opened twice in my [external] browser? What seems to happen is that first widget-button-click fires, and calls browse-url which opens the link in my browser, and then shr-browse-url fires, which also calls browse-url and opens the link in my browser a second time. Middle-clicking on the link only opens it once, but it's kind of annoying to have to remember to middle-click. I tried fixing it with: (define-key shr-map (kbd "[mouse-2]") nil) but that was too wild a guess. Now I have this instead, which works: (setq shr-map (let ((map (make-sparse-keymap))) (define-key map "a" 'shr-show-alt-text) (define-key map "i" 'shr-browse-image) (define-key map "z" 'shr-zoom-image) (define-key map [?\t] 'shr-next-link) (define-key map [?\M-\t] 'shr-previous-link) (define-key map [follow-link] 'mouse-face) ; (define-key map [mouse-2] 'shr-browse-url) (define-key map "I" 'shr-insert-image) (define-key map "w" 'shr-copy-url) (define-key map "u" 'shr-copy-url) (define-key map "v" 'shr-browse-url) (define-key map "O" 'shr-save-contents) (define-key map "\r" 'shr-browse-url) map)) ... but it seems kind of wrong? Best regards, Adam -- "I need someone to throw blue sky at me" Adam Sjøgren asjo@koldfront.dk