From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Bug-reference auto-setup for Rmail (please test) Date: Sun, 16 May 2021 12:28:11 +0200 Message-ID: <87zgwv3qxo.fsf@gnu.org> References: <87eee75d8n.fsf@gnu.org> <83eee7uhbg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13373"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 16 12:38:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1liEAT-0003FF-Fm for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 12:38:41 +0200 Original-Received: from localhost ([::1]:50716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liEAS-0004TI-E1 for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 06:38:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liE9H-0001j9-HI for emacs-devel@gnu.org; Sun, 16 May 2021 06:37:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46756) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liE9H-0003fg-2Y for emacs-devel@gnu.org; Sun, 16 May 2021 06:37:27 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:48221) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liE9G-0002np-HU; Sun, 16 May 2021 06:37:26 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 455FC27C0054; Sun, 16 May 2021 06:37:26 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 16 May 2021 06:37:26 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeifedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepve evieekteekveeigfefffeivdetgeduvdffueeuudevgedttdehvdfhueevfffhnecukfhp peekjedrudeifedrfedurdduheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 May 2021 06:37:25 -0400 (EDT) In-reply-to: <83eee7uhbg.fsf@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269347 Archived-At: Eli Zaretskii writes: >> What you need to do is activate `bug-reference-mode' in Rmail, so >> probably: >> >> (add-hook 'rmail-mode-hook #'bug-reference-mode) >> >> and then it'll try to guess the right `bug-reference-bug-regexp' and >> `bug-reference-url-format' based on the List-Id, To, From, and Cc >> headers according to the customize option >> `bug-reference-setup-from-mail-alist' which should at least have a >> suitable default value for (some) emacs-related mailinglists including >> emacs-devel. > > It doesn't seem to work here, or maybe I'm doing something wrong. > > I've ran "M-x rmail RET" on some mbox file with a message from > debbugs, then turned on bug-reference-mode there. The bug references > are indeed displayed as buttons, That's because `bug-reference-bug-regexp' has a global default value which happens to match "our" bug numbers. > but pushing the button does nothing, because > > (overlay-get o 'bug-reference-url) > > returns nil. What am I doing wrong? Most probably nothing. Is there a bug address like 48439@debbugs.gnu.org in that mail's To, From, Cc? That should be matched fine by the default regexp in `bug-reference-setup-from-mail-alist'. Could you please verify that `bug-reference-try-setup-from-rmail' runs when you activate `bug-reference-mode' in your rmail buffer? And if it does but still doesn't set the `bug-reference-url-format', could you share an mbox with just that message? Bye, Tassilo