]> git.eshelyaron.com Git - emacs.git/commitdiff
Make an example code introduced in the Gnus info work (bug#29008)
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Oct 2017 01:14:17 +0000 (01:14 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Oct 2017 01:14:17 +0000 (01:14 +0000)
You can find it in the bottom of (info "(gnus)Foreign Groups").
NOTE: this change is worth being merged to the trunk.

* lisp/gnus/gnus-group.el (gnus-read-ephemeral-emacs-bug-group):
Allow a string for bug# (bug#29008).

lisp/gnus/gnus-group.el

index 56d42b41a82a5c88d2325be95ccfaa2c40628754..996e8266105a526eea1112ee03b0b12518a8854b 100644 (file)
@@ -2517,6 +2517,8 @@ the bug number, and browsing the URL must return mbox output."
   (interactive (list (string-to-number
                      (read-string "Enter bug number: "
                                   (thing-at-point 'word) nil))))
+  (when (stringp ids)
+    (setq ids (string-to-number ids)))
   (unless (listp ids)
     (setq ids (list ids)))
   (gnus-read-ephemeral-bug-group