Subject: bug#54324: closed (Re: bug#54324: 29.0.50; Don't error during debbugs-gnu-rescan)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 10 Mar 2022 08:03:02 +0000

Your bug report

#54324: 29.0.50; Don't error during debbugs-gnu-rescan

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54324: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54324
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#54324: 29.0.50; Don't error during debbugs-gnu-rescan
From: Michael Albinus <[email-masked]>
To: Eric Abrahamsen <[email-masked]>
Cc: [email-masked]
Date: Thu, 10 Mar 2022 09:02:02 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Eric Abrahamsen <[email-masked]> writes:

Hi Eric,

> `debbugs-gnu-rescan' will error if point isn't on a current bug id,
> which isn't necessary. This patch avoids that by passing the NOERROR arg
> to `debbugs-gnu-current-id'.

Thanks for the patch, I've applied it to the git repo. There will be a
new debbugs 0.31. Closing the bug.

> Eric

Best regards, Michael.

Subject: 29.0.50; Don't error during debbugs-gnu-rescan
From: Eric Abrahamsen <[email-masked]>
To: [email-masked]
Date: Wed, 09 Mar 2022 16:19:15 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

`debbugs-gnu-rescan' will error if point isn't on a current bug id,
which isn't necessary. This patch avoids that by passing the NOERROR arg
to `debbugs-gnu-current-id'.

Eric

>From 81ba1905bcb6c8a8fc927df92e9fc525ab71ce74 Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen <[email-masked]>
Date: Wed, 9 Mar 2022 16:14:59 -0800
Subject: [PATCH] Pass NOERROR arg to debbugs-gnu-current-id when rescanning

* debbugs-gnu.el (debbugs-gnu-rescan): There's no need for the rescan
process to require point to be on a bug id.
---
 debbugs-gnu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index 770a832cb3..ef946fc90f 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -1201,7 +1201,7 @@ If NOCACHE is non-nil, bug information is retrieved from the debbugs server.
 Interactively, it is non-nil with the prefix argument."
   (interactive
    (list current-prefix-arg))
-  (let ((id (debbugs-gnu-current-id))
+  (let ((id (debbugs-gnu-current-id t))
 	(debbugs-gnu-current-query debbugs-gnu-local-query)
 	(debbugs-gnu-current-filter debbugs-gnu-local-filter)
 	(debbugs-gnu-current-suppress debbugs-gnu-local-suppress)
-- 
2.35.1