[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: blank page not cleared on local file error
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Mon, 08 Jun 2015 08:49:35 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12472
- References: <87zj5vcu6e.fsf@xxxxxxxxx> <b4mh9s2baiq.fsf@xxxxxxx> <87bngt5v5t.fsf@xxxxxxxxx>
In [emacs-w3m : No.12471]
On Sat, 06 Jun 2015 14:15:58 +1000, Kevin Ryde wrote:
> Can the current url become the failed target file:///nosuchfile.html, so
> that then "B" goes back to where you were? That would make a
> non-existent file more like a http 404.
> It'd also be good for when starting M-x w3m-browse-url
> file:///tmp/nosuch.html. Then that would be the current url to see in
> "=", or to reload with "R" if something happens externally to bring the
> file into existence (mounting a drive, running a program, etc).
How about this trickery?
--- w3m.el~ 2015-06-02 00:27:02.000000000 +0000
+++ w3m.el 2015-06-07 23:47:46.945683000 +0000
@@ -6416,3 +6416,5 @@
(point))
- 'face 'w3m-error))))
+ 'face 'w3m-error)
+ (setq w3m-current-url url
+ w3m-current-title "Fail"))))
(w3m-arrived-add url nil (current-time) (current-time))