diff options
| author | Katsumi Yamaoka | 2010-09-08 23:51:10 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-08 23:51:10 +0000 |
| commit | 724d30bea033ed39739e757651692bcf27eb3e6e (patch) | |
| tree | 841e47c0da34351c5ff71f1cdd4b31fb723412a9 | |
| parent | b073dc4b4b21ee5885c6c8d182d915115e51419b (diff) | |
| download | emacs-724d30bea033ed39739e757651692bcf27eb3e6e.tar.gz emacs-724d30bea033ed39739e757651692bcf27eb3e6e.zip | |
gnus-html.el (gnus-html-schedule-image-fetching): Decode entities before feeding URLs to curl.
gnus-async.el (gnus-async-article-callback): Call `gnus-html-prefetch-images' unconditionally.
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-async.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 4 |
3 files changed, 17 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ba3f335e381..a3e4fe99510 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-async.el (gnus-async-article-callback): Call | ||
| 4 | `gnus-html-prefetch-images' unconditionally. | ||
| 5 | |||
| 6 | * gnus-html.el (gnus-html-schedule-image-fetching): Decode entities | ||
| 7 | before feeding URLs to curl. | ||
| 8 | |||
| 1 | 2010-09-07 Katsumi Yamaoka <yamaoka@jpl.org> | 9 | 2010-09-07 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 10 | ||
| 3 | * gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and | 11 | * gnus-html.el (gnus-html-wash-tags, gnus-html-put-image): Mark cid and |
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el index 5b19adc2054..979e67120d1 100644 --- a/lisp/gnus/gnus-async.el +++ b/lisp/gnus/gnus-async.el | |||
| @@ -237,13 +237,13 @@ that was fetched." | |||
| 237 | (setq gnus-async-current-prefetch-article nil) | 237 | (setq gnus-async-current-prefetch-article nil) |
| 238 | (when arg | 238 | (when arg |
| 239 | (gnus-async-set-buffer) | 239 | (gnus-async-set-buffer) |
| 240 | (when gnus-async-post-fetch-function | 240 | (save-excursion |
| 241 | (save-excursion | 241 | (save-restriction |
| 242 | (save-restriction | 242 | (narrow-to-region mark (point-max)) |
| 243 | (narrow-to-region mark (point-max)) | 243 | ;; Prefetch images for the groups that want that. |
| 244 | ;; Prefetch images for the groups that want that. | 244 | (when (fboundp 'gnus-html-prefetch-images) |
| 245 | (when (fboundp 'gnus-html-prefetch-images) | 245 | (gnus-html-prefetch-images summary)) |
| 246 | (gnus-html-prefetch-images summary)) | 246 | (when gnus-async-post-fetch-function |
| 247 | (funcall gnus-async-post-fetch-function summary)))) | 247 | (funcall gnus-async-post-fetch-function summary)))) |
| 248 | (gnus-async-with-semaphore | 248 | (gnus-async-with-semaphore |
| 249 | (setq | 249 | (setq |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index bf9f0cd6b8d..9cd49a06598 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -247,7 +247,7 @@ fit these criteria." | |||
| 247 | "--location" | 247 | "--location" |
| 248 | "--max-time" "60" | 248 | "--max-time" "60" |
| 249 | "-o" (gnus-html-image-id url) | 249 | "-o" (gnus-html-image-id url) |
| 250 | url))) | 250 | (mm-url-decode-entities-string url)))) |
| 251 | (process-kill-without-query process) | 251 | (process-kill-without-query process) |
| 252 | (set-process-sentinel process 'gnus-html-curl-sentinel) | 252 | (set-process-sentinel process 'gnus-html-curl-sentinel) |
| 253 | (gnus-set-process-plist process (list 'images images | 253 | (gnus-set-process-plist process (list 'images images |
| @@ -395,7 +395,7 @@ This only works if the article in question is HTML." | |||
| 395 | (let ((url (match-string 1))) | 395 | (let ((url (match-string 1))) |
| 396 | (unless (gnus-html-image-url-blocked-p url blocked-images) | 396 | (unless (gnus-html-image-url-blocked-p url blocked-images) |
| 397 | (unless (file-exists-p (gnus-html-image-id url)) | 397 | (unless (file-exists-p (gnus-html-image-id url)) |
| 398 | (push url urls) | 398 | (push (mm-url-decode-entities-string url) urls) |
| 399 | (push (gnus-html-image-id url) urls) | 399 | (push (gnus-html-image-id url) urls) |
| 400 | (push "-o" urls))))) | 400 | (push "-o" urls))))) |
| 401 | (let ((process | 401 | (let ((process |