From 58d962379546762c7eead8fc69c4c136bed8256b Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 31 Aug 2020 11:43:52 +0200 Subject: [PATCH] Fix minibuffer default of ephemeral debbugs group * lisp/gnus/gnus-group.el (gnus-group--read-bug-ids): Don't read number in "bug-123" as a negative bug ID; they are always positive. --- lisp/gnus/gnus-group.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index d613bc86ad7..2cbbe624602 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -2411,7 +2411,8 @@ the bug number, and browsing the URL must return mbox output." (require 'bug-reference) (let ((def (cond ((thing-at-point-looking-at bug-reference-bug-regexp 500) (match-string 2)) - ((number-at-point))))) + ((and (number-at-point) + (abs (number-at-point))))))) ;; Pass DEF as the value of COLLECTION instead of DEF because: ;; a) null input should not cause DEF to be returned and ;; b) TAB and M-n still work this way. -- 2.39.2