emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug-reference auto-setup for Rmail (please test)


From: Tassilo Horn
Subject: Re: Bug-reference auto-setup for Rmail (please test)
Date: Sun, 16 May 2021 16:53:52 +0200
User-agent: mu4e 1.5.13; emacs 28.0.50

Tassilo Horn <tsdh@gnu.org> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]