Subject: [bug#55794] doc: Add debbugs-gnu-guix command for Emacs.

From: Oleg Pykhalov <[email-masked]>
Date: Sat, 04 Jun 2022 15:32:43 +0300

Hi,

Ludovic Courtès <[email-masked]> writes:

> Hi,
>
> Brian Cully <[email-masked]> skribis:
>
>> Ludovic Courtès <[email-masked]> writes:
>>
>>>     If you are using Emacs, does debbugs.el have
>>>     shortcomings that make it a problem to review patches?
>
> To be clear, the question was directed primarily at current committers.
>
>> 1) It’d be nice if ‘M-x debbug-guix’ existed. I (briefly) looked at
>> making such a command, thinking it’d be relatively straight-forward to
>> just copy ‘debbugs-gnu’ and tweak some variables, but when it looked
>> like it was going to take more than 10 minutes just to figure out how
>> it was all put together I gave up as I can’t really dedicate time to
>> it right now.
>
> Try: C-u M-x debbugs-gnu.  From there you can choose ‘guix’,
> ‘guix-patches’, or anything else (info "(guix) Debbugs User
> Interfaces").

I have a command in my Emacs config, which is handy to skip those steps.

commit a603a7eeb06afa2ebd0c3015ece6fdb5ef43e95a
Author: Oleg Pykhalov <[email-masked]>
Date:   Sat Jun 4 03:42:43 2022 +0300

    doc: Add debbugs-gnu-guix command for Emacs.
    
    * doc/contributing.texi (Debbugs User Interfaces): Add debbugs-gnu-guix
    command for Emacs.

diff --git a/doc/contributing.texi b/doc/contributing.texi
index e1902f120f..bf77b6e774 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -1459,6 +1459,17 @@ For example, to list all open issues on @code{guix-patches}, hit:
 @kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y
 @end example
 
+Additionally, @kbd{M-x debbugs-gnu-guix} command in (@pxref{Init File,,,
+emacs, The GNU Emacs Manual}) can be defined with:
+
+@lisp
+(defun debbugs-gnu-guix ()
+  "List Guix issues."
+  (interactive)
+  (debbugs-gnu '("serious" "important" "normal")
+               '("guix" "guix-patches")))
+@end lisp
+
 @xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on
 this nifty tool!