[gnus git] branch no-gnus updated: m0-1-49-g6601a8e =1= Stop `url-queue' downloads on group exit.
Lars Ingebrigtsen <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 6601a8e23b9510d6e6f50a350117ddc42db9e361 (commit)
from 9f31054a05d4c7d038408fa5fc9aec9f1c2bcd88 (commit)
- Log -----------------------------------------------------------------
commit 6601a8e23b9510d6e6f50a350117ddc42db9e361
Author: Lars Ingebrigtsen <[email protected]>
Date: Sun Feb 12 20:36:51 2012 +0100
Stop `url-queue' downloads on group exit.
* gnus-art.el (gnus-stop-downloads): Stop `url-queue' downloads on
group exit.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3bf2c84..00e53e1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2012-02-12 Lars Ingebrigtsen <[email protected]>
+ * gnus-art.el (gnus-stop-downloads): Stop `url-queue' downloads on
+ group exit.
+
* nnimap.el (nnimap-parse-flags): Parse correctly when we have mixed
QRESYNC/FETCH output.
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index b282afd..8fa50df 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -45,6 +45,7 @@
(require 'mm-uu)
(require 'message)
(require 'mouse)
+(require 'url-queue)
(autoload 'gnus-msg-mail "gnus-msg" nil t)
(autoload 'gnus-button-mailto "gnus-msg")
@@ -4582,6 +4583,9 @@ commands:
(when (eq (elt timer 5) 'image-animate-timeout)
(cancel-timer timer))))
+(defun gnus-stop-downloads ()
+ (setq url-queue nil))
+
;; Set article window start at LINE, where LINE is the number of lines
;; from the head of the article.
(defun gnus-article-set-window-start (&optional line)
diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el
index 4316efa..8ae8d0b 100644
--- a/lisp/gnus-sum.el
+++ b/lisp/gnus-sum.el
@@ -7319,6 +7319,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
(when (gnus-buffer-live-p gnus-article-buffer)
(with-current-buffer gnus-article-buffer
(gnus-article-stop-animations)
+ (gnus-stop-downloads)
(mm-destroy-parts gnus-article-mime-handles)
;; Set it to nil for safety reason.
(setq gnus-article-mime-handle-alist nil)
@@ -9656,6 +9657,7 @@ C-u g', show the raw article."
(when (gnus-buffer-live-p gnus-article-buffer)
(with-current-buffer gnus-article-buffer
(gnus-article-stop-animations)
+ (gnus-stop-downloads)
(mm-destroy-parts gnus-article-mime-handles)
;; Set it to nil for safety reason.
(setq gnus-article-mime-handle-alist nil)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 3 +++
lisp/gnus-art.el | 4 ++++
lisp/gnus-sum.el | 2 ++
3 files changed, 9 insertions(+), 0 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, no-gnus has been updated
hooks/post-receive
--
Gnus Project