[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
oneline patch to ~/.emacs.d/elpa/w3m-20190222.738/w3m-favicon.el
- From: rrandresf@xxxxxxxxx
- Date: Mon, 25 Feb 2019 15:28:35 +0000
- X-ml-name: emacs-w3m
- X-mail-count: 13266
Hi.
Recently. I have added this line to my dotemacs w3m setup.
--8<---------------cut here---------------start------------->8---
(setq
w3m-use-favicon t
)
--8<---------------cut here---------------end--------------->8---
Then on some sites I am getting an "out of range" error.
so I have added this line to the function
--8<---------------cut here---------------start------------->8---
(defun w3m-favicon-convert (data type)
"Convert the favicon DATA in TYPE to the favicon image and return it."
+ (when (> (length data) 0)
(when (or (not (eq type 'ico))
--8<---------------cut here---------------end--------------->8---
And obviously. You would need to add the closing parentheses at the end.
Perhaps someone could add that simple patch or elaborate a better
version of the patch.
BR