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 16:23:54 +0200 Message-ID: <87wnry4udq.fsf@gnu.org> References: <87eee75d8n.fsf@gnu.org> <83o8dbukk9.fsf@gnu.org> <878s4f59u9.fsf@gnu.org> <83h7j3ujcc.fsf@gnu.org> <8735un560o.fsf@gnu.org> <83bl9buehq.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="13103"; 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 16:39:09 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 1liHvB-0003ET-1i for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 16:39:09 +0200 Original-Received: from localhost ([::1]:53320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHvA-0002Gm-3p for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 10:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHtt-0001Jx-6Q for emacs-devel@gnu.org; Sun, 16 May 2021 10:37:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50788) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liHts-0007oO-Vo for emacs-devel@gnu.org; Sun, 16 May 2021 10:37:48 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:55993) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liHtr-0005YN-1R; Sun, 16 May 2021 10:37:47 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 1D49927C0054; Sun, 16 May 2021 10:37:40 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 16 May 2021 10:37:40 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeifedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepfe fgueegjeeitdeggfffudfhgeffvdejtdelueejgfefuddttdeugefhhfevgeevnecuffho mhgrihhnpehgnhhurdhorhhgpdhtshguhhdrohhrghenucfkphepkeejrdduieefrdefud drudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekje ekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm 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 10:37:39 -0400 (EDT) In-reply-to: <83bl9buehq.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:269356 Archived-At: Eli Zaretskii writes: >> > OK, but what is this supposed to do for other forums, like >> > emacs-devel? what is the relevant URL there? >> >> The default value sets >> >> bug-reference-bug-regexp = "\\([Bb]ug ?#?\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" >> bug-reference-url-format = "https://debbugs.gnu.org/%s" >> >> if some considered mail header (To, From, Cc, List-ID) matches something >> emacs-related including emacs-devel@gnu.org (or some auctex, org-mode, >> tramp) mailing list address or list-id. > > At least for Emacs, when we mention bug#NNNNN on emacs-devel, we > always mean debbugs, so the URL seems independent of the forum. There are possible many forums mapping to the same URL, i.e., emacs-devel, tramp-devel, and auctex-devel all map to debbugs. > We could add an Rmail-specific defcustom in bug-reference.el, which, > if non-nil, will tell Rmail to run bug-reference-rmail-setup when > showing a message. Well, I've guessed that Rmail is probably not the single one exception so I went ahead and added a new function which you could (add-hook 'rmail-show-message-hook #'bug-reference-mode-force-auto-setup) which should hopefully do what its name and docstring suggest. It would be awesome if you could test, e.g., by doing the above and (add-to-list 'bug-reference-setup-from-mail-alist '(nil "tsdh@gnu.org" "the" ;; just because its surely in every mail "http://tsdh.org/%s")) Then, mails from/to/cc me should have "the" highlighted as bug references (bug-reference-bug-regexp) and the bug-reference-url-format should be http://tsdh.org/%s. When switching to another mail on emacs-devel/debbugs without me, the url should again be the debbugs one. Bye, Tassilo