From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11736 invoked from network); 11 May 2020 16:10:31 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 11 May 2020 16:10:31 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jYAzq-0008LD-9Z; Mon, 11 May 2020 11:09:38 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jYAzl-0008IR-VE for ding@lists.math.uh.edu; Mon, 11 May 2020 11:09:33 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jYAzk-0001FO-Fr for ding@lists.math.uh.edu; Mon, 11 May 2020 11:09:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ri0+ER883VLGu1igR1mWJaE6DYdQFRLkY7DKLCZXwFE=; b=lTSbxGREsrfuzfjCM3td94xdgO dvjJRTrqt+z0piIIUYEDwuKe8Ll5OvT279zTnPLzvB7d7PDIFTgnspNdStWMCAtmDOQXD1CI8BOkA 13uVS7vwtRsgZEks1Tb6tzFVAIlQ4NzVsymFKz6Tf2Yk0Ozzk6qZNMI2Ciwo1Hx7ldyg=; Received: from eggs.gnu.org ([2001:470:142:3::10]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYAzc-0001W8-5A for ding@gnus.org; Mon, 11 May 2020 18:09:27 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39636) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYAzY-0000tk-S4; Mon, 11 May 2020 12:09:20 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:58817) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jYAzY-0007sz-Ku; Mon, 11 May 2020 12:09:20 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 2763F27C005A; Mon, 11 May 2020 12:09:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 11 May 2020 12:09:20 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrledtgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepfe evgfeugeeviedtffehueeifeettdeiveegudelheehhfdugffgfeffveeiueetnecuffho mhgrihhnpehshhgurdguvgenucfkphepleefrddvfeeirddufeekrddvtdenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghs mhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqd htshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from nbhta-and (p5dec8a14.dip0.t-ipconnect.de [93.236.138.20]) by mail.messagingengine.com (Postfix) with ESMTPA id EE59D3280060; Mon, 11 May 2020 12:09:18 -0400 (EDT) From: Tassilo Horn To: Eric Abrahamsen Cc: ding@gnus.org Subject: Re: Summary minor mode for Emacs-hacking groups? References: <87wo5v8oh3.fsf@ericabrahamsen.net> <87pnbmrfga.fsf@gnu.org> <871ro2n6sh.fsf@gnu.org> <875zd7h8jf.fsf@ericabrahamsen.net> Date: Mon, 11 May 2020 18:09:15 +0200 In-Reply-To: <875zd7h8jf.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 07 May 2020 12:03:32 -0700") Message-ID: <87wo5io3mc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Eric Abrahamsen writes: Hi Eric, >> I did so, and it works just fine. Things like bug#19199 are rendered >> as links and invoking bug-reference-push-button (C-c RET by default) >> opens the debbugs bug page in your browser. Some adjustments could >> be made: >> >> * Tabbing through the article just recognizes Gnus buttons and not >> those bug-reference links so you have to navigate to them manually. >> >> * Maybe you'd want to open debbugs bugs using the debbugs emacs >> package rather than your browser (but this is nothing Gnus-related). > > Looks like you've been busy! So number two now works correctly, but > still not number one? I wonder if there's a way to get buttons and > links to be treated the same by Gnus. This seems to work for buttonizing bug references in articles, and hitting RET on such a button opens the bug in debbugs (if you have it installed): --8<---------------cut here---------------start------------->8--- modified lisp/gnus/gnus-art.el @@ -7945,6 +7945,15 @@ gnus-article-add-buttons ;; We skip the headers. (article-goto-body) (setq beg (point)) + ;; If bug-reference-mode is active, add an entry to buttonize bug + ;; references. + (when (and (boundp 'bug-reference-mode) + bug-reference-mode) + (declare-function bug-reference-push-button "bug-reference" + (&optional pos _use-mouse-action)) + (push (list bug-reference-bug-regexp 0 t + #'bug-reference-push-button) + alist)) (while (setq entry (pop alist)) (setq regexp (eval (car entry))) (goto-char beg) --8<---------------cut here---------------end--------------->8--- I'm not sure if that's the right place to add that functionality. > It would also be useful to have the bug links be accessible to "w" in > the Summary buffer. Well, you can use C-c RET or your custom binding of `bug-reference-push-button' when you've enabled `bug-reference-mode' there. Bye, Tassilo --=20 Dr. Tassilo Horn SHD Einzelhandelssoftware GmbH Rennweg 60, 56626 Andernach, Deutschland Telefon +49 2632 295-449 Telefax +49 2632 295-100 E-Mail: hta@shd.de, Homepage: www.shd.de Rechtsform GmbH - Sitz Andernach Registergericht: Amtsgericht Koblenz HRB 20741 Gesch=C3=A4ftsf=C3=BChrer: Stefan Hahne