From: zimoun <zimon.toutoune@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: jbranso@dismail.de, guix-devel@gnu.org
Subject: Re: debbugs-guix.el helper function
Date: Tue, 15 Nov 2022 16:09:48 +0100 [thread overview]
Message-ID: <874jv05k5f.fsf@gmail.com> (raw)
In-Reply-To: <87ilkwc6dh.fsf@gnu.org>
Hi,
On Fri, 07 Oct 2022 at 11:47, Ludovic Courtès <ludo@gnu.org> wrote:
> I have something similar that I find extremely useful: hitting C-w on a
> bug adds the mumi and debbugs URLs to the kill ring.
In addition, another helper that I plan to use more… But it is not that
handy with Debbugs because of Gnus. Well, via Notmuch (or Mu4e), it is
handy,
--8<---------------cut here---------------start------------->8---
(defun my/notmuch-issues (msgid)
"Add URL of MSGID pointing to bug number to `kill-ring'.
Yankable result:
`http://issues.guix.gnu.org/issue/msgid/<Message-ID>'
then resolved by the server.
Work only `notmuch-tree-mode', `notmuch-search-mode' or
`notmuch-show-mode'."
(interactive
(list
(let ((yanked
(if (or (eq major-mode 'notmuch-tree-mode)
(eq major-mode 'notmuch-search-mode)
(eq major-mode 'notmuch-show-mode))
(progn
(notmuch-show-stash-message-id-stripped)
(car kill-ring))
"?")))
(read-string
(format "Message-ID (%s): " yanked)
nil nil yanked))))
(let* ((url
(format "%s%s"
"http://issues.guix.gnu.org/msgid/"
msgid)))
(kill-new url)
(when current-prefix-arg
(browse-url url))
(message (format "%s killed." url))))
--8<---------------cut here---------------end--------------->8---
When reading from Emacs-Notmuch, I just run ’M-x my/notmuch-issues’ and
then I can yank elsewhere the URL. Last, Mumi resolves from the
Message-ID to the Debbugs number (even the specific message instead of
#2 or else).
Cheers,
simon
next prev parent reply other threads:[~2022-11-15 15:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 10:11 Progress with automating testing of patches Christopher Baines
2022-09-19 7:46 ` Christopher Baines
2022-10-01 16:34 ` Ludovic Courtès
2022-10-01 21:58 ` Christopher Baines
2022-10-05 10:01 ` Ludovic Courtès
2022-10-05 10:22 ` Christopher Baines
2022-10-06 13:31 ` Ludovic Courtès
2022-10-05 22:49 ` jbranso
2022-10-06 9:11 ` debbugs-guix.el helper function zimoun
2022-10-07 9:47 ` Ludovic Courtès
2022-11-15 15:09 ` zimoun [this message]
2022-10-06 13:32 ` Progress with automating testing of patches Ludovic Courtès
2022-10-06 15:22 ` Joshua Branson
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jv05k5f.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=jbranso@dismail.de \
--cc=ludo@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/guix.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).