all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [elpa] master 2a29130: Make debbugs install a handler in browse-url-default-handlers.
Date: Thu, 11 Jun 2020 09:26:22 +0200	[thread overview]
Message-ID: <87pna6vza9.fsf@gnu.org> (raw)
In-Reply-To: <jwv1rmmej2m.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 10 Jun 2020 16:58:45 -0400")

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
`browse-url-default-handlers'.

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.

Bye,
Tassilo



  reply	other threads:[~2020-06-11  7:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200507122008.22755.28768@vcs0.savannah.gnu.org>
     [not found] ` <20200507122010.213B720A15@vcs0.savannah.gnu.org>
2020-05-07 12:45   ` [elpa] master 2a29130: Make debbugs install a handler in browse-url-default-handlers Lars Ingebrigtsen
2020-05-07 12:47     ` Tassilo Horn
2020-05-19 12:14       ` Lars Ingebrigtsen
2020-05-19 13:45         ` Tassilo Horn
2020-05-19 15:02         ` Stefan Monnier
2020-06-10 15:33           ` Lars Ingebrigtsen
2020-06-10 16:51             ` Stefan Monnier
2020-06-10 18:26               ` Tassilo Horn
2020-06-10 19:07                 ` Michael Albinus
2020-06-10 20:45                   ` Tassilo Horn
2020-06-10 20:53                     ` Basil L. Contovounesios
2020-06-10 20:58                     ` Stefan Monnier
2020-06-11  7:26                       ` Tassilo Horn [this message]
2020-06-11 13:53                         ` Stefan Monnier
2020-06-11 18:50                     ` Tassilo Horn
2020-06-10 19:11                 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87pna6vza9.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.