X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-art.el;h=73058391e39e9db667c9b620412d5fe380823ff1;hb=00fc1a5640e0a12f79ee255378b431dc004421c7;hp=b282afd961c7f4ac7aba06b1d8a9c1504b6d6a5b;hpb=08fcacba12d8ef604a74d92ba139b8bce307a215;p=gnus diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el index b282afd96..73058391e 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) @@ -5323,9 +5327,8 @@ Compressed files like .gz and .bz2 are decompressed." (or (cdr (assq arg gnus-summary-show-article-charset-alist)) (mm-read-coding-system "Charset: ")))) - (t - (if (mm-handle-undisplayer handle) - (mm-remove-part handle)))) + ((mm-handle-undisplayer handle) + (mm-remove-part handle))) (forward-line 2) (mm-display-inline handle) (goto-char b))))) @@ -6194,12 +6197,13 @@ Provided for backwards compatibility." (not gnus-inhibit-hiding)) (gnus-article-hide-headers))) -(declare-function shr-put-image "shr" (data alt)) +(declare-function shr-put-image "shr" (data alt &optional flags)) -(defun gnus-shr-put-image (data alt) +(defun gnus-shr-put-image (data alt &optional flags) "Put image DATA with a string ALT. Enable image to be deleted." (let ((image (shr-put-image data (propertize (or alt "*") - 'gnus-image-category 'shr)))) + 'gnus-image-category 'shr) + flags))) (when image (gnus-add-image 'shr image))))