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:53:52 +0200 Message-ID: <87tun24thg.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> <87wnry4udq.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="23989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 16 16:58:12 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 1liIDc-00065P-PG for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 16:58:12 +0200 Original-Received: from localhost ([::1]:33818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liIDa-0000Ua-Rd for ged-emacs-devel@m.gmane-mx.org; Sun, 16 May 2021 10:58:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liICV-0008Bx-B1 for emacs-devel@gnu.org; Sun, 16 May 2021 10:57:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51052) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liICV-0003eq-3L for emacs-devel@gnu.org; Sun, 16 May 2021 10:57:03 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:44395) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liICU-0000aO-UO; Sun, 16 May 2021 10:57:02 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id A355627C0054; Sun, 16 May 2021 10:57:02 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 16 May 2021 10:57:02 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeifedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne hmihhsshhinhhgucfvqfcufhhivghlugculdeftddmnecujfgurhepfhgfhffuffgjkfgg tgesthdtredttdertdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhse hgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeelleekvefgkeevuefgtdelffeiveel lefhhedvjefhleduleejteejhfekvdehgfenucffohhmrghinhepthhsughhrdhorhhgne cukfhppeekjedrudeifedrfedurdduheegnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsoh hnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhr ghesfhgrshhtmhgrihhlrdhfmh 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:57:01 -0400 (EDT) In-reply-to: <87wnry4udq.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:269359 Archived-At: Tassilo Horn writes: > 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. Ah, and I've also passed the Rmail buffer's buffer-file-name to the mail setup function so that it is compared against the GROUP-REGEXP in the entries of `bug-reference-setup-from-mail-alist' which caters for the "one mbox per forum" mail organization approach which, I guess, is like the new alist you've suggested. Bye, Tassilo