[Top][All Lists]

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

Re: [elpa] master 2a29130: Make debbugs install a handler in browse-url-

From: Tassilo Horn
Subject: Re: [elpa] master 2a29130: Make debbugs install a handler in browse-url-default-handlers.
Date: Thu, 11 Jun 2020 09:26:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> the default value of `bug-reference-url-format' (which has no default
>> value right now)?  Then you could simply enable `bug-reference-mode'
>> wherever you want (especially in MUAs like rmail/Gnus/mu4e) and
>> bug#17171 become clickable and opened immediately in debbugs if
> Right, but bug#345 also becomes clickable in places where it has
> nothing to do with Emacs :-(

Yes, that's true.  And essentially that's the case right now, too,
except that "clicking" it (C-c RET) is no no-op whereas it would open a
wrong (emacs) bug then.

> `debbugs.el` could configure Gnus/Rmail/mu4e to set this var when
> viewing a message sent to emacs-devel, tho.

Nah, what does that have to do with debbugs really?  The task is to set
the right `bug-reference-url-format' automatically.  How the bug report
is opened later on is handled by `browse-url-handlers' and

How about adding a defcustom `bug-reference-guess-url-format-functions'
and a defvar `bug-reference-guess-url-format-default-functions' being
lists of zero-arg functions guessing the right
`bug-reference-url-format' from things like VCS URL of the current file,
Gnus group, rmail, etc.  Again the "default" one would be for making
Emacs (packages like Gnus) hook in, the other is for the user.

I'd be willing to work on that.


reply via email to

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