* Use Debbugs to search for only open bugs
@ 2022-08-04 19:40 Joshua Branson
2022-08-05 1:25 ` Michael Heerdegen
2022-08-05 7:08 ` Michael Albinus
0 siblings, 2 replies; 9+ messages in thread
From: Joshua Branson @ 2022-08-04 19:40 UTC (permalink / raw)
To: help-gnu-emacs
Can anyone give my a simple debbugs function, that will prompt me for a
search string, and return a list of open bugs for "guix" and
"guix-patches"?
Here's what I've come up with so far:
#+BEGIN_SRC emacs-lisp
(defun debbugs-guix-search ()
(interactive)
(debbugs-gnu-search (read-string "Search String: ") nil nil '("guix" "guix-patches") nil))
#+END_SRC
The only problem with this function is that it shows open bug reports.
90% of the time I am not interested in those bug reports.
Thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-04 19:40 Use Debbugs to search for only open bugs Joshua Branson
@ 2022-08-05 1:25 ` Michael Heerdegen
2022-08-05 7:08 ` Michael Albinus
1 sibling, 0 replies; 9+ messages in thread
From: Michael Heerdegen @ 2022-08-05 1:25 UTC (permalink / raw)
To: help-gnu-emacs
Joshua Branson <jbranso@dismail.de> writes:
> Can anyone give my a simple debbugs function, that will prompt me for a
> search string, and return a list of open bugs for "guix" and
> "guix-patches"?
>
> Here's what I've come up with so far:
>
> #+BEGIN_SRC emacs-lisp
> (defun debbugs-guix-search ()
> (interactive)
> (debbugs-gnu-search (read-string "Search String: ") nil nil '("guix" "guix-patches") nil))
> #+END_SRC
You know that x (`debbugs-gnu-toggle-suppress') toggles display of
closed bugs?
I don't know how to filter initially.
Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-04 19:40 Use Debbugs to search for only open bugs Joshua Branson
2022-08-05 1:25 ` Michael Heerdegen
@ 2022-08-05 7:08 ` Michael Albinus
2022-08-05 8:55 ` Joshua Branson
1 sibling, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2022-08-05 7:08 UTC (permalink / raw)
To: Joshua Branson; +Cc: help-gnu-emacs
Joshua Branson <jbranso@dismail.de> writes:
Hi Joshua,
> Can anyone give my a simple debbugs function, that will prompt me for a
> search string, and return a list of open bugs for "guix" and
> "guix-patches"?
>
> Here's what I've come up with so far:
>
> #+BEGIN_SRC emacs-lisp
> (defun debbugs-guix-search ()
> (interactive)
> (debbugs-gnu-search (read-string "Search String: ") nil nil '("guix" "guix-patches") nil))
> #+END_SRC
>
> The only problem with this function is that it shows open bug reports.
> 90% of the time I am not interested in those bug reports.
From your description it isn't obvious to me, whether you want to see
just open bugs, or not. But you can play with the QUERY argument of
debbugs-gnu-search, like
--8<---------------cut here---------------start------------->8---
(debbugs-gnu-search (read-string "Search String: ") '((pending . "open")) nil '("guix" "guix-patches"))
--8<---------------cut here---------------end--------------->8---
> Thanks!
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-05 7:08 ` Michael Albinus
@ 2022-08-05 8:55 ` Joshua Branson
2022-08-05 9:46 ` Michael Albinus
0 siblings, 1 reply; 9+ messages in thread
From: Joshua Branson @ 2022-08-05 8:55 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Michael Albinus <michael.albinus@gmx.de> writes:
> Joshua Branson <jbranso@dismail.de> writes:
>
> Hi Joshua,
>
>> Can anyone give my a simple debbugs function, that will prompt me for a
>> search string, and return a list of open bugs for "guix" and
>> "guix-patches"?
>>
>> Here's what I've come up with so far:
>>
>> #+BEGIN_SRC emacs-lisp
>> (defun debbugs-guix-search ()
>> (interactive)
>> (debbugs-gnu-search (read-string "Search String: ") nil nil '("guix" "guix-patches") nil))
>> #+END_SRC
>>
>> The only problem with this function is that it shows open bug reports.
>> 90% of the time I am not interested in those bug reports.
>
> From your description it isn't obvious to me, whether you want to see
> just open bugs, or not. But you can play with the QUERY argument of
> debbugs-gnu-search, like
>
> (debbugs-gnu-search (read-string "Search String: ") '((pending . "open")) nil '("guix" "guix-patches"))
Are you sure that works?
(debbugs-gnu-search "wterm" '((status . "open")) nil '("guix" "guix-patches"))
returns nothing
(debbugs-gnu-search "wterm" '((pending . "open")) nil '("guix" "guix-patches"))
returns nothing
(debbugs-gnu-search "wterm" nil nil '("guix" "guix-patches"))
returns only closed bugs. odd.
M-x debbugs-gnu-search RET "wterm" RET RET x
correctly returns bug 56965, which is an open bug.
What am I doing wrong?
>
>> Thanks!
>
> Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-05 8:55 ` Joshua Branson
@ 2022-08-05 9:46 ` Michael Albinus
2022-08-10 13:54 ` Michael Albinus
0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2022-08-05 9:46 UTC (permalink / raw)
To: Joshua Branson; +Cc: help-gnu-emacs
Joshua Branson <jbranso@dismail.de> writes:
Hi Joshua,
>>> Can anyone give my a simple debbugs function, that will prompt me for a
>>> search string, and return a list of open bugs for "guix" and
>>> "guix-patches"?
>>>
>>> Here's what I've come up with so far:
>>>
>>> #+BEGIN_SRC emacs-lisp
>>> (defun debbugs-guix-search ()
>>> (interactive)
>>> (debbugs-gnu-search (read-string "Search String: ") nil nil '("guix" "guix-patches") nil))
>>> #+END_SRC
>>>
>>> The only problem with this function is that it shows open bug reports.
>>> 90% of the time I am not interested in those bug reports.
>>
>> From your description it isn't obvious to me, whether you want to see
>> just open bugs, or not. But you can play with the QUERY argument of
>> debbugs-gnu-search, like
>>
>> (debbugs-gnu-search (read-string "Search String: ") '((pending . "open")) nil '("guix" "guix-patches"))
> Are you sure that works?
>
> (debbugs-gnu-search "wterm" '((status . "open")) nil '("guix" "guix-patches"))
>
> returns nothing
>
> (debbugs-gnu-search "wterm" '((pending . "open")) nil '("guix" "guix-patches"))
>
> returns nothing
>
> (debbugs-gnu-search "wterm" nil nil '("guix" "guix-patches"))
>
> returns only closed bugs. odd.
>
> M-x debbugs-gnu-search RET "wterm" RET RET x
>
> correctly returns bug 56965, which is an open bug.
>
> What am I doing wrong?
Hmm, looks like there's an error in debbugs-gnu-search. I'll check, but
perhaps you might write a bug report about. I don't know whether I can
handle it just now, due to time constraints.
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-05 9:46 ` Michael Albinus
@ 2022-08-10 13:54 ` Michael Albinus
2022-08-10 15:17 ` Joshua Branson
2022-08-10 15:25 ` Joshua Branson
0 siblings, 2 replies; 9+ messages in thread
From: Michael Albinus @ 2022-08-10 13:54 UTC (permalink / raw)
To: Joshua Branson; +Cc: help-gnu-emacs
Michael Albinus <michael.albinus@gmx.de> writes:
Hi Joshua,
Well, I found the time now to check what's up.
> Hmm, looks like there's an error in debbugs-gnu-search. I'll check, but
> perhaps you might write a bug report about. I don't know whether I can
> handle it just now, due to time constraints.
There's indeed an error. The "status" attribute, when there is non-empty
query string, must be "pending" instead of "open". And it is mapped
internally to the attribute "pending".
All this shouldn't worry you. I've just pushed debbugs 0.33, which will appear
in a couple of hours on GNU ELPA. For the time being, you can apply
(debbugs-gnu-search "wterm" '((pending . "pending")) nil '("guix" "guix-patches"))
If you want to see only closed bugs, then call
(debbugs-gnu-search "wterm" '((pending . "done")) nil '("guix" "guix-patches"))
And if you want to see all bugs with this search string, there is
(debbugs-gnu-search "wterm" nil nil '("guix" "guix-patches"))
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-10 13:54 ` Michael Albinus
@ 2022-08-10 15:17 ` Joshua Branson
2022-08-10 15:25 ` Joshua Branson
1 sibling, 0 replies; 9+ messages in thread
From: Joshua Branson @ 2022-08-10 15:17 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Michael Albinus <michael.albinus@gmx.de> writes:
> Michael Albinus <michael.albinus@gmx.de> writes:
>
> Hi Joshua,
>
> Well, I found the time now to check what's up.
>
>> Hmm, looks like there's an error in debbugs-gnu-search. I'll check, but
>> perhaps you might write a bug report about. I don't know whether I can
>> handle it just now, due to time constraints.
>
> There's indeed an error. The "status" attribute, when there is non-empty
> query string, must be "pending" instead of "open". And it is mapped
> internally to the attribute "pending".
>
> All this shouldn't worry you. I've just pushed debbugs 0.33, which will appear
> in a couple of hours on GNU ELPA. For the time being, you can apply
>
> (debbugs-gnu-search "wterm" '((pending . "pending")) nil '("guix" "guix-patches"))
>
> If you want to see only closed bugs, then call
>
> (debbugs-gnu-search "wterm" '((pending . "done")) nil '("guix" "guix-patches"))
>
> And if you want to see all bugs with this search string, there is
>
> (debbugs-gnu-search "wterm" nil nil '("guix" "guix-patches"))
>
> Best regards, Michael.
>
Thanks for getting back to me so quickly and for so quickly applying a
fix!
Joshua
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-10 13:54 ` Michael Albinus
2022-08-10 15:17 ` Joshua Branson
@ 2022-08-10 15:25 ` Joshua Branson
2022-08-10 16:23 ` Michael Albinus
1 sibling, 1 reply; 9+ messages in thread
From: Joshua Branson @ 2022-08-10 15:25 UTC (permalink / raw)
To: Michael Albinus; +Cc: help-gnu-emacs
Also, the reason I was asking the help-gnu-emacs list, was that I have a
pending guix patch see bug 56987, that provides the following functions
in guix's etc/ directory.
debbugs-guix-search (by default searching for open open bugs)
debbugs-my-open-bugs (by default search for only open bugs that the
user has submitted)
debbugs-get-bug-by-id (fairly obvious)
It might actually make more sense for these patches to be merged into
upstream debbugs. Perhaps by changing the names:
debbugs-gnu-guix-search
debbugs-gnu-my-open-bugs
debbugs-gnu-get-buy-by-id
What do you think?
Joshua
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Use Debbugs to search for only open bugs
2022-08-10 15:25 ` Joshua Branson
@ 2022-08-10 16:23 ` Michael Albinus
0 siblings, 0 replies; 9+ messages in thread
From: Michael Albinus @ 2022-08-10 16:23 UTC (permalink / raw)
To: Joshua Branson; +Cc: help-gnu-emacs, Lars Ingebrigtsen
Joshua Branson <jbranso@dismail.de> writes:
[Adding Lars to Cc, the coauthor of the debbugs package]
> Also, the reason I was asking the help-gnu-emacs list, was that I have a
> pending guix patch see bug 56987, that provides the following functions
> in guix's etc/ directory.
>
> debbugs-guix-search (by default searching for open open bugs)
>
> debbugs-my-open-bugs (by default search for only open bugs that the
> user has submitted)
>
> debbugs-get-bug-by-id (fairly obvious)
>
> It might actually make more sense for these patches to be merged into
> upstream debbugs. Perhaps by changing the names:
>
> debbugs-gnu-guix-search
>
> debbugs-gnu-my-open-bugs
>
> debbugs-gnu-get-buy-by-id
>
> What do you think?
Yea, would be possible. The first function could live in a file
debbugs-guix.el, the other two function might enter
debbugs-gnu.el. There's one formal restriction: debbugs is part of the
GNU ELPA repository, which requires the authors to give the copyright to
FSF, and to sign the legal papers. Would you be willing to do so?
I guess further discussion could happen on bug#56987.
> Joshua
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-08-10 16:23 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04 19:40 Use Debbugs to search for only open bugs Joshua Branson
2022-08-05 1:25 ` Michael Heerdegen
2022-08-05 7:08 ` Michael Albinus
2022-08-05 8:55 ` Joshua Branson
2022-08-05 9:46 ` Michael Albinus
2022-08-10 13:54 ` Michael Albinus
2022-08-10 15:17 ` Joshua Branson
2022-08-10 15:25 ` Joshua Branson
2022-08-10 16:23 ` Michael Albinus
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).