[emacs-w3m:13266] oneline patch to ~/.emacs.d/elpa/w3m-20190222.738/w3m-favicon.el

[email protected]
Newsgroups gmane.emacs.w3m
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.