[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: show a blank page while waiting for a new page after switching back to *w3m* buffer
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 06 Apr 2015 17:29:35 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12433
- References: <87bnj4mvos.fsf@xxxxxxxxxxx> <877ftp7w7y.fsf@xxxxxxxxxxx> <b4mwq1peki0.fsf@xxxxxxx>
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.