mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-16 10:50:49 -08:00
gnus-group.el: Check if group names are already strings
* lisp/gnus/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.
This commit is contained in:
parent
adef5b0df4
commit
822d9eb1f9
1 changed files with 3 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue