On Wed, 02 Sep 2020 01:19:30 +0800, 積丹尼さん wrote:
> Real w3m can deal fine with file:bla.txt and does not always need
> file:///full/path/to/bla.txt .

w3m visits the file `pwd`/bla.txt .  That's a good feature as a
user knows where the current directory is (in other words a user
knows the file bla.txt exists in the current directory).  But
does a Chrome/Firefox/Safari/emacs-w3m user know where one is?
In emacs-w3m the current directory (i.e., `default-directory')
defaults to ~/.w3m for years, but there may be no file of interest.

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).
Otherwise how about using `w3m-find-file' instead?

> But emacs-w3m says
> w3m--goto-url--valid-url: Wrong type argument: stringp, nil

Ending up with an error is bad in that situatuion anyway.  I think
we should improve it so to issue something other than an error.

Thanks.

Reply via email to