(gnus-group-delete-articles): New command.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 17 Dec 2010 18:59:54 +0000 (19:59 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 17 Dec 2010 18:59:54 +0000 (19:59 +0100)
lisp/ChangeLog
lisp/gnus-group.el

index 459c57c..85d3d64 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-group.el (gnus-group-delete-articles): New command.
+
 2010-12-17  Andrew Cohen  <cohen@andy.bu.edu>
 
        * nnir.el (nnir-mode): Make sure 'gnus-registry-install is bound.
index 73eeb71..9ce4f86 100644 (file)
@@ -2734,6 +2734,15 @@ server."
        (lambda (group)
          (gnus-group-delete-group group nil t))))))
 
+(defun gnus-group-delete-articles (group)
+  "Delete all articles in the current group."
+  (interactive (list (gnus-group-group-name)))
+  (let ((articles (gnus-uncompress-range (gnus-active group))))
+    (when (gnus-yes-or-no-p
+          (format "Do you really want to delete these %d articles forever? "
+                  (length articles)))
+      (gnus-request-expire-articles articles group 'force))))
+
 (defun gnus-group-delete-group (group &optional force no-prompt)
   "Delete the current group.  Only meaningful with editable groups.
 If FORCE (the prefix) is non-nil, all the articles in the group will