From: Lars Magne Ingebrigtsen Date: Fri, 2 Aug 2013 13:34:22 +0000 (+0000) Subject: Merge changes made in Gnus trunk X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1688^2~24 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f370b43d5c1d04c825cb399683eac4aafbc07a8;p=emacs.git Merge changes made in Gnus trunk 2013-08-02 Lars Magne Ingebrigtsen * gnus-group.el (gnus-group-delete-articles): Allow deleting only "old" articles. * gnus-delay.el (gnus-delay-article): Run `message-send-hook' so that we can get spell-checking etc. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9733215b591..2164fd96b46 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,13 @@ +2013-08-02 Lars Magne Ingebrigtsen + + * gnus-delay.el (gnus-delay-article): Fix typo. + + * gnus-group.el (gnus-group-delete-articles): Allow deleting only "old" + articles. + + * gnus-delay.el (gnus-delay-article): Run `message-send-hook' so that + we can get spell-checking etc. + 2013-08-02 Katsumi Yamaoka * rfc2047.el (rfc2047-encode-message-header): Unify charsets into diff --git a/lisp/gnus/gnus-delay.el b/lisp/gnus/gnus-delay.el index 921d24109c2..2cdafe1565b 100644 --- a/lisp/gnus/gnus-delay.el +++ b/lisp/gnus/gnus-delay.el @@ -80,6 +80,8 @@ DELAY is a string, giving the length of the time. Possible values are: (list (read-string "Target date (YYYY-MM-DD), time (hh:mm), or length of delay (units in [mhdwMY]): " gnus-delay-default-delay))) + ;; Allow spell checking etc. + (run-hooks 'message-send-hook) (let (num unit days year month day hour minute deadline) (cond ((string-match "\\([0-9][0-9][0-9]?[0-9]?\\)-\\([0-9]+\\)-\\([0-9]+\\)" diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 8050f5d59d7..9533f5819a4 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -2796,14 +2796,21 @@ 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))) +(defun gnus-group-delete-articles (group &optional oldp) + "Delete all articles in the current group. +If OLDP (the prefix), only delete articles that are \"old\", +according to the expiry settings. Note that this will delete old +not-expirable articles, too." + (interactive (list (gnus-group-group-name) + current-prefix-arg)) (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)))) + (gnus-request-expire-articles articles group + (if current-prefix-arg + nil + 'force))))) (defun gnus-group-delete-group (group &optional force no-prompt) "Delete the current group. Only meaningful with editable groups.