emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 58d9623: Fix minibuffer default of ephemeral debbugs group


From: Stefan Kangas
Subject: master 58d9623: Fix minibuffer default of ephemeral debbugs group
Date: Mon, 31 Aug 2020 05:44:07 -0400 (EDT)

branch: master
commit 58d962379546762c7eead8fc69c4c136bed8256b
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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 d613bc8..2cbbe62 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]