On Wed, 02 Sep 2020 08:05:26 +0900, Katsumi Yamaoka wrote:
> Well, for instance, probably we can modify emacs-w3m so to allow
> "file:bla.txt" things if and only if a user has specified
> `w3m-default-directory' (defaults to nil).

I've done it in the emacs-w3m git master as follows:

Allow url like "file:foo.txt" (bug#969386 of debian)
emacs-w3m assumes the file to be existent in `w3m-default-directory'
(if specified), the current directory, or the home directory.

* w3m.el (w3m-url-to-file-name): Allow url like "file:foo.txt",
that doesn't specify server and/or directory.

* w3m-util.el (w3m-url-local-p): Check also if the file really exists.

Reply via email to