[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix error "Wrong type argument: glyphp, nil"
- From: Michael Shields <shields@xxxxxxxx>
- Date: Mon, 03 Mar 2003 07:02:53 +0000
- X-ml-name: emacs-w3m
- X-mail-count: 04723
emacs-w3m 1.3.3 gives an error "Wrong type argument: glyphp, nil" when
displaying an article in Gnus which contains images that are not
permitted to be loaded according to `w3m-safe-url-regexp'. This patch
corrects that.
diff -u /usr/share/emacs/site-lisp/w3m/w3m-xmas.el /home/shields/w3m-xmas.el
--- /usr/share/emacs/site-lisp/w3m/w3m-xmas.el 2003-03-03 06:58:11.000000000 +0000
+++ /home/shields/w3m-xmas.el 2003-03-03 06:58:11.000000000 +0000
@@ -330,6 +330,7 @@
(type (condition-case err
(w3m-retrieve url 'raw no-cache nil referer handler)
(error (message "While retrieving %s: %s" url err) nil)))
+ (when type
(let ((data (buffer-string))
glyph)
(setq glyph
@@ -365,7 +366,7 @@
handler))
(w3m-make-glyph resized type)))
glyph))
- glyph))))))
+ glyph)))))))
(defun w3m-create-resized-image (url rate &optional referer size handler)
"Resize an cached image object.
--
Shields.