Subject: bug#78864: Support for bookmarks in debbugs.el

From: Michael Albinus <[email-masked]>
Date: Tue, 24 Jun 2025 12:18:12 +0200

Matthias Meulien <[email-masked]> writes:

Hi Matthias,

> Spent some time testing this evening and in fact it already sort of
> work. 
>
> See:
>
> M-x debbugs-gnu-search
> bookmark RET
> subject RET
> bookmark RET
> date RET
> 2025-01-01 RET
> 2025-12-31 RET
> status RET
> pending RET
> RET
>
> Then M-x debbugs-gnu-show-last-result and C-x r m (bookmark-set) Emacs
> bugs (pending) about "bookmark" (2025) RET. And a bookmark is saved
> with the parameters: 
>
>  (debbugs-gnu-current-filter
>   (pending . "pending"))
>  (debbugs-gnu-current-query
>   (subject . "bookmark")
>   (@cdate 1735686000 . 1767135600)
>   (phrase . "bookmark"))
>
>  No bug id saved.

This is fine. What might be problematic is an entry like this:

--8<---------------cut here---------------start------------->8---
  (front-context-string . "78730 normal    ")
--8<---------------cut here---------------end--------------->8---

This might not be valid next time the bookmark is used. Better to avoid it.

> Works also with submitter key but had to edit the bookmark by hand
> since I didn't find a way to generate the correct search using debbugs
> commands.

debbugs-gnu-search offers you two different set of attributes, depending
whether you have a phrase, or not. This is because not all attributes
could be used together with a phrase search.

If you just want to see all bugs you have submitted, apply with an empty phrase

--8<---------------cut here---------------start------------->8---
M-x debbugs-gnu-search RET
RET
submitter RET
me RET
RET
--8<---------------cut here---------------end--------------->8---

> Open to any improvement you have in mind.

Nothing ATM. Pls send the patch, we will see then how it works. Perhaps
there's also feedback from other users.

> Regards,

Best regards, Michael.