[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: browse-url-of-dired-file wrong-type-argument stringp nil
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Tue, 14 Apr 2009 14:15:28 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 10825
- References: <87ocuzsym2.fsf@xxxxxxxxxxx>
>>>>> In [emacs-w3m : No.10824] jidanni@xxxxxxxxxxx wrote:
> b runs the command browse-url-of-dired-file
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> file-directory-p(nil)
> w3m-goto-url("file:/usr/share/doc/php-doc/html/intro.simplexml.html")
> w3m-browse-url("file:/usr/share/doc/php-doc/html/intro.simplexml.html" nil)
> apply(w3m-browse-url "file:/usr/share/doc/php-doc/html/intro.simplexml.html" nil)
> browse-url("file:/usr/share/doc/php-doc/html/intro.simplexml.html")
> browse-url-of-file("/usr/share/doc/php-doc/html/intro.simplexml.html")
> browse-url-of-dired-file()
> call-interactively(browse-url-of-dired-file)
> I think it needs file:///...
> My configuration is in http://jidanni.org/comp/configuration/.emacs
> w3m-version "w3m/0.5.2"
> emacs-w3m-version "1.4.344"
> emacs-version "22.3.1"
The last item of the `browse-url-filename-alist' variable defined
in browse-url.el seems to be wrong.
--8<---------------cut here---------------start------------->8---
browse-url-filename-alist is a variable defined in `browse-url.el'.
Its value is
(("^/\\(ftp@\\|anonymous@\\)?\\([^:]+\\):/*" . "ftp://\\2/")
("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/")
("^/+" . "file:/"))
--8<---------------cut here---------------end--------------->8---
I think it should be ("^/+" . "file:///"). How about this
workaround?
(eval-after-load "browse-url"
'(let ((file (rassoc "file:/" browse-url-filename-alist)))
(if file (setcdr file "file:///"))))
The value has never been changed since it was provided in Emacs
20.3. You may be the first person who used it.
Regards,