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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42429 in the body.
You can then email your comments to 42429 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42429; Package emacs. (Sun, 19 Jul 2020 19:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Ingebrigtsen <larsi <at> gnus.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Jul 2020 19:31:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; browse-url-of-dired doesn't work on directories
Date: Sun, 19 Jul 2020 21:29:57 +0200
To reproduce:

C-x C-f /tmp
Go to the "." directory
M-x browse-url-of-dired-file

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)
  apply(browse-url-emacs "file:///tmp" nil)
  browse-url("file:///tmp")
  browse-url-of-file("/tmp")
  browse-url-of-dired-file()
  funcall-interactively(browse-url-of-dired-file)
  call-interactively(browse-url-of-dired-file record nil)
  command-execute(browse-url-of-dired-file record)
  execute-extended-command(nil "browse-url-of-dired-file" nil)
  funcall-interactively(execute-extended-command nil "browse-url-of-dired-file" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

The question is...  should this work?  There's this commit from 2011,
which seems to suggest that it should?

But I have no idea what it's supposed to do.  Just pop up a dired
buffer?  It's an odd thing to support.

commit 2a86a00c4fbd998fedf778c65764f607f7da1855
Author:     Ralph Schleicher <rs <at> ralph-schleicher.de>
AuthorDate: Sun May 8 14:34:51 2011 -0400
Commit:     Chong Yidong <cyd <at> stupidchicken.com>
CommitDate: Sun May 8 14:34:51 2011 -0400

    Expand file names during browse-url-of-dired-file (Bug#8259).
    
    * lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of
    special file names `.' and `..'.




In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2020-07-19 built on xo
Repository revision: 17f646128f04e9e8590f0371026a14d516f21c63
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid


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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42429; Package emacs. (Mon, 27 Jul 2020 22:14:01 GMT) Full text and rfc822 format available.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42429; Package emacs. (Sat, 17 Oct 2020 09:25:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 42429 <at> debbugs.gnu.org
Subject: Re: bug#42429: 28.0.50; browse-url-of-dired doesn't work on
 directories
Date: Sat, 17 Oct 2020 11:24:21 +0200
This is now fixed on the trunk.

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





Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Oct 2020 09:25:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42429 <at> debbugs.gnu.org and Lars Ingebrigtsen <larsi <at> gnus.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 17 Oct 2020 09:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Nov 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 157 days ago.

Previous Next


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