Improve oni-gnus-delete-forward
This commit is contained in:
parent
4d022c5d86
commit
5dae2bbfcd
1 changed files with 7 additions and 5 deletions
|
@ -27,11 +27,13 @@
|
||||||
(require 'gnus-sum)
|
(require 'gnus-sum)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun oni-gnus-delete-forward ()
|
(defun oni-gnus-delete-forward (&optional n)
|
||||||
"Delete the article under point and move to the next one."
|
"Delete the article under point and move to the next one.
|
||||||
(interactive)
|
Do this N times."
|
||||||
|
(interactive "p")
|
||||||
|
(dotimes (_ (or n 1))
|
||||||
(gnus-summary-delete-article)
|
(gnus-summary-delete-article)
|
||||||
(gnus-summary-next-subject 1))
|
(gnus-summary-next-subject 1)))
|
||||||
|
|
||||||
(provide 'oni-gnus)
|
(provide 'oni-gnus)
|
||||||
;;; oni-gnus.el ends here
|
;;; oni-gnus.el ends here
|
||||||
|
|
Loading…
Reference in a new issue