]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minibuffer default of ephemeral debbugs group
authorStefan Kangas <stefankangas@gmail.com>
Mon, 31 Aug 2020 09:43:52 +0000 (11:43 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 31 Aug 2020 09:43:52 +0000 (11:43 +0200)
* 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

index d613bc86ad7cae66da6dc98dbb4e6f717afb470b..2cbbe62460296d98d1169b14543acb313ae93b86 100644 (file)
@@ -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.