bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42429: 28.0.50; browse-url-of-dired doesn't work on directories


From: Lars Ingebrigtsen
Subject: bug#42429: 28.0.50; browse-url-of-dired doesn't work on directories
Date: Tue, 28 Jul 2020 00:13:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>   file-truename(nil)
>   find-file-noselect-1(#<buffer tmp<4>> "file:///tmp" nil nil "/tmp" 
> (24379393 66306))
>   find-file-noselect("file:///tmp" nil nil nil)
>   find-file-other-window("file:///tmp")
>   browse-url-emacs("file:///tmp" nil)

It turns out that this is handled through the url-file-handler stuff...

(defun browse-url-emacs (url &optional same-window)

[...]

  (let ((file-name-handler-alist
         (cons (cons url-handler-regexp 'url-file-handler)
               file-name-handler-alist)))
    (if same-window (find-file url) (find-file-other-window url))))

(browse-url-emacs "file:///tmp" nil)

Michael, do you know anything about this?  :-)  I'm wholly unfamiliar
with the url-file-handler stuff or how it's supposed to work.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]