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

Eli Zaretskii <eliz@gnu.org> 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



  reply	other threads:[~2021-05-16 10:28 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
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 [this message]
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=87zgwv3qxo.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).