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

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Sun, 19 Jul 2020 19:31:02 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 42429 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 42429 <at> debbugs.gnu.org
Cc: Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#42429: 28.0.50; browse-url-of-dired doesn't work on
 directories
Date: Tue, 28 Jul 2020 00:13:14 +0200
Lars Ingebrigtsen <larsi <at> 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




This bug report was last modified 4 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.