aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Abrahamsen2019-03-25 13:25:12 -0700
committerEric Abrahamsen2019-03-25 13:30:01 -0700
commita8efdd4c62fbf9c275a57f71cc8a3ca845ad3b1f (patch)
treeb95a3d9ee4311c886e84e7d764cccbc8e2d14f13
parent6d0f7f708a32aeb994a86d68a5d05c399aba319a (diff)
downloademacs-a8efdd4c62fbf9c275a57f71cc8a3ca845ad3b1f.tar.gz
emacs-a8efdd4c62fbf9c275a57f71cc8a3ca845ad3b1f.zip
Handle multiple possible types for Gnus group names
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format): Numbers, symbols, and strings.
-rw-r--r--lisp/gnus/gnus-start.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 82141e02215..5a78df9fe4d 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -2145,9 +2145,12 @@ The info element is shared with the same element of
2145 (condition-case () 2145 (condition-case ()
2146 (if (and (stringp (progn 2146 (if (and (stringp (progn
2147 (setq group (read cur) 2147 (setq group (read cur)
2148 group (if (numberp group) 2148 group (cond ((numberp group)
2149 (number-to-string group) 2149 (number-to-string group))
2150 (symbol-name group))))) 2150 ((symbolp group)
2151 (symbol-name group))
2152 ((stringp group)
2153 group)))))
2151 (numberp (setq max (read cur))) 2154 (numberp (setq max (read cur)))
2152 (numberp (setq min (read cur))) 2155 (numberp (setq min (read cur)))
2153 (null (progn 2156 (null (progn