X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-html.el;h=eb35aca505aa610a43165aa30e2cff3edd1eb79d;hb=ebcbc0cbd3ae35b16589f0086113aeefc4ed76b9;hp=c8aec160647ba81b88a096a3ccf4446f06328b75;hpb=ac5ca99a4e8320f6036bd7370ad30d183b203681;p=gnus diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index c8aec1606..eb35aca50 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -105,7 +105,8 @@ (when (string-match "href=\"\\([^\"]+\\)" parameters) (setq parameters (match-string 1 parameters)) (gnus-article-add-button start end - 'browse-url parameters) + 'browse-url parameters + parameters) (let ((overlay (gnus-make-overlay start end))) (gnus-overlay-put overlay 'evaporate t) (gnus-overlay-put overlay 'gnus-button-url parameters) @@ -129,8 +130,10 @@ "images" nil "curl" "-s" "--create-dirs" "--location" + "--max-time" "60" "-o" (gnus-html-image-id url) url))) + (process-kill-without-query process) (set-process-sentinel process 'gnus-html-curl-sentinel) (set-process-plist process (list 'images images 'buffer buffer)))) @@ -165,12 +168,14 @@ ;; Kludge to avoid displaying 30x30 gif images, which ;; seems to be a signal of a broken image. (not (and (eq (getf (cdr image) :type) 'gif) - (= (car (image-size image t)) 30)))) + (= (car (image-size image t)) 30) + (= (cdr (image-size image t)) 30)))) (progn (put-image image point) t) - (put-image (find-image '((:type xpm :file "lock-broken.xpm"))) - point) + (when (fboundp 'find-image) + (put-image (find-image '((:type xpm :file "lock-broken.xpm"))) + point)) nil))) (defun gnus-html-prune-cache () @@ -191,21 +196,31 @@ (decf total-size (cadr file)) (delete-file (nth 2 file))))))) -(defun gnus-html-prefetch-images () - (save-match-data - (let (urls) - (while (re-search-forward "