Check if group names are already strings
authorEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 7 Jul 2015 03:01:38 +0000 (11:01 +0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 8 Jul 2015 04:19:26 +0000 (12:19 +0800)
* lisp/gnus-group.el (gnus-group-group-name): The group name may
  already be a string.

Specifically, in the group list reached from the *Server* buffer, the
'gnus-group text property returns a string. Everywhere else it returns
a symbol.

lisp/gnus-group.el

index dbeada2..c6cc38f 100644 (file)
@@ -1814,7 +1814,9 @@ already.  If INFO-UNCHANGED is non-nil, dribble buffer is not updated."
   "Get the name of the newsgroup on the current line."
   (let ((group (get-text-property (point-at-bol) 'gnus-group)))
     (when group
-      (symbol-name group))))
+      (if (stringp group)
+         group
+       (symbol-name group)))))
 
 (defun gnus-group-group-level ()
   "Get the level of the newsgroup on the current line."