unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Bug-reference auto-setup for Rmail (please test)
Date: Sun, 16 May 2021 17:39:47 +0200	[thread overview]
Message-ID: <87r1i64r80.fsf@gnu.org> (raw)
In-Reply-To: <87wnry4udq.fsf@gnu.org>

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.

Never mind, I've just tested it myself and it works as expected.

So I guess my remaining task is to write up some documentation.  Do you
make it would make sense to have a new Bug Reference node below
"Advanced Features"?  Or maybe better below "Maintaining Large
Programs"?

If that was in place, I'd add a short paragraph about the Rmail setup in
its own info manual and link the main Bug Reference node from there.
Makes sense?

Bye,
Tassilo



  parent reply	other threads:[~2021-05-16 15:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-16  7:23 Bug-reference auto-setup for Rmail (please test) Tassilo Horn
2021-05-16  8:52 ` Eli Zaretskii
2021-05-16  8:53   ` Tassilo Horn
2021-05-16  9:19     ` Eli Zaretskii
2021-05-16  9:58       ` Tassilo Horn
2021-05-16 11:04         ` Eli Zaretskii
2021-05-16 14:23           ` Tassilo Horn
2021-05-16 14:53             ` Tassilo Horn
2021-05-16 15:39             ` Tassilo Horn [this message]
2021-05-16 18:05               ` Eli Zaretskii
2021-05-16 18:53                 ` Tassilo Horn
2021-05-16 10:02 ` Eli Zaretskii
2021-05-16 10:28   ` Tassilo Horn
2021-05-16 10:59     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1i64r80.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).