[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: show a blank page while waiting for a new page after switching back to *w3m* buffer



In [emacs-w3m : No.12432]
	On Mon, 06 Apr 2015 17:20:07 +0900, Katsumi Yamaoka wrote:
> (defadvice w3m-retrieve-and-render (before clear-display-while-reading
> 					   activate)
[...]
Oops, please replace the one I wrote last with:

(defadvice w3m-retrieve-and-render (before clear-display-while-reading
					   activate)
  "Clear the current display while reading a new page."
  (let ((url (ad-get-arg 0))
	(inhibit-read-only t))
    (erase-buffer)
    (insert-char ?\n (/ (window-height) 2))
    (insert-char ?  (max 0 (/ (- (window-width) (length url) 11) 2)))
    (insert "Reading " url "...")
    (sit-for 0)))

> To test this, delete the advice I wrote before and restart Emacs.