aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeodor Zlatanov2010-09-02 01:18:45 +0000
committerKatsumi Yamaoka2010-09-02 01:18:45 +0000
commit2aafbe5a81ae9e35c9884966d98de75da92fdf35 (patch)
tree230da9df9109301e97d9f1e74e9f15abb3573b21
parent9a4b54dbe6b0b363a7cbd1d09d864ccaf208d9f3 (diff)
downloademacs-2aafbe5a81ae9e35c9884966d98de75da92fdf35.tar.gz
emacs-2aafbe5a81ae9e35c9884966d98de75da92fdf35.zip
gnus-html.el: prefix log messages with function name
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-html.el14
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 43a8195623c..1edc8247fd0 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12010-09-01 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * gnus-html.el (gnus-html-wash-tags)
4 (gnus-html-schedule-image-fetching, gnus-html-image-url-blocked-p):
5 Better logging.
6
12010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> 72010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 8
3 * gnus-html.el (gnus-html-wash-tags): Check the value of 9 * gnus-html.el (gnus-html-wash-tags): Check the value of
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index 00454665cad..9e85937577e 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -119,7 +119,7 @@ fit these criteria."
119 ((equal tag "img_alt") 119 ((equal tag "img_alt")
120 (when (string-match "src=\"\\([^\"]+\\)" parameters) 120 (when (string-match "src=\"\\([^\"]+\\)" parameters)
121 (setq url (match-string 1 parameters)) 121 (setq url (match-string 1 parameters))
122 (gnus-message 8 "Fetching image URL %s" url) 122 (gnus-message 8 "gnus-html-wash-tags: fetching image URL %s" url)
123 (if (string-match "^cid:\\(.*\\)" url) 123 (if (string-match "^cid:\\(.*\\)" url)
124 ;; URLs with cid: have their content stashed in other 124 ;; URLs with cid: have their content stashed in other
125 ;; parts of the MIME structure, so just insert them 125 ;; parts of the MIME structure, so just insert them
@@ -160,7 +160,7 @@ fit these criteria."
160 (equal tag "A")) 160 (equal tag "A"))
161 (when (string-match "href=\"\\([^\"]+\\)" parameters) 161 (when (string-match "href=\"\\([^\"]+\\)" parameters)
162 (setq url (match-string 1 parameters)) 162 (setq url (match-string 1 parameters))
163 (gnus-message 8 "Fetching link URL %s" url) 163 (gnus-message 8 "gnus-html-wash-tags: fetching link URL %s" url)
164 (gnus-article-add-button start end 164 (gnus-article-add-button start end
165 'browse-url url 165 'browse-url url
166 url) 166 url)
@@ -186,7 +186,8 @@ fit these criteria."
186 (gnus-html-schedule-image-fetching (current-buffer) (nreverse images))))) 186 (gnus-html-schedule-image-fetching (current-buffer) (nreverse images)))))
187 187
188(defun gnus-html-schedule-image-fetching (buffer images) 188(defun gnus-html-schedule-image-fetching (buffer images)
189 (gnus-message 8 "Scheduling image fetching in buffer %s, images %s" buffer images) 189 (gnus-message 8 "gnus-html-schedule-image-fetching: buffer %s, images %s"
190 buffer images)
190 (let* ((url (caar images)) 191 (let* ((url (caar images))
191 (process (start-process 192 (process (start-process
192 "images" nil "curl" 193 "images" nil "curl"
@@ -294,8 +295,11 @@ fit these criteria."
294"Find out if URL is blocked by BLOCKED-IMAGES." 295"Find out if URL is blocked by BLOCKED-IMAGES."
295 (let ((ret (and blocked-images 296 (let ((ret (and blocked-images
296 (string-match blocked-images url)))) 297 (string-match blocked-images url))))
297 (when ret 298 (if ret
298 (gnus-message 8 "Image URL %s is blocked by gnus-blocked-images regex %s" url blocked-images)) 299 (gnus-message 8 "gnus-html-image-url-blocked-p: %s blocked by regex %s"
300 url blocked-images)
301 (gnus-message 9 "gnus-html-image-url-blocked-p: %s passes regex %s"
302 url blocked-images))
299 ret)) 303 ret))
300 304
301;;;###autoload 305;;;###autoload