X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fgnus-topic.el;h=f0e7e33064ecd234ad3b252bc43e59f4d83446d5;hp=fa1136a05f5bb1202fdc02300d75281427a192d6;hb=a73649ecfed63fe42db8e1edd3d1aeeca34c1257;hpb=34e6ef9901f0a79f6f723eb942731e154c0933b4 diff --git a/lisp/gnus-topic.el b/lisp/gnus-topic.el index fa1136a05..f0e7e3306 100644 --- a/lisp/gnus-topic.el +++ b/lisp/gnus-topic.el @@ -1012,17 +1012,18 @@ If COPYP, copy the groups instead." (gnus-topic-goto-topic start-topic)) (gnus-group-list-groups))) -(defun gnus-topic-remove-group () +(defun gnus-topic-remove-group (&optional arg) "Remove the current group from the topic." - (interactive) - (let ((topicl (assoc (gnus-current-topic) gnus-topic-alist)) - (group (gnus-group-group-name)) - (buffer-read-only nil)) - (when (and topicl group) - (gnus-delete-line) - (gnus-delete-first group topicl)) - (gnus-topic-update-topic) - (gnus-group-position-point))) + (interactive "P") + (gnus-group-iterate arg + (lambda (group) + (let ((topicl (assoc (gnus-current-topic) gnus-topic-alist)) + (buffer-read-only nil)) + (when (and topicl group) + (gnus-delete-line) + (gnus-delete-first group topicl)) + (gnus-topic-update-topic) + (gnus-group-position-point))))) (defun gnus-topic-copy-group (n topic) "Copy the current group to a topic."