mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 15:11:30 -08:00
(gnus-group-unsubscribe-current-group):
Fail nicely if no current group name.
This commit is contained in:
parent
0e5671606f
commit
acf3b6865a
1 changed files with 6 additions and 2 deletions
|
|
@ -1532,8 +1532,12 @@ Cross references (Xref: field) of articles are ignored."
|
|||
(defun gnus-group-unsubscribe-current-group ()
|
||||
"Toggle subscribe from/to unsubscribe current group."
|
||||
(interactive)
|
||||
(gnus-group-unsubscribe-group (gnus-group-group-name))
|
||||
(gnus-group-next-group 1))
|
||||
(let ((group (gnus-group-group-name)))
|
||||
(if group
|
||||
(progn
|
||||
(gnus-group-unsubscribe-group group)
|
||||
(gnus-group-next-group 1))
|
||||
(message "No Newsgroup found to \(un\)subscribe"))))
|
||||
|
||||
(defun gnus-group-unsubscribe-group (group)
|
||||
"Toggle subscribe from/to unsubscribe GROUP.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue