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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lars Ingebrigtsen <larsi@HIDDEN>; dated Sun, 19 Jul 2020 19:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 42429 <at> debbugs.gnu.org:


Received: (at 42429) by debbugs.gnu.org; 27 Jul 2020 22:13:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 18:13:26 2020
Received: from localhost ([127.0.0.1]:55953 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0BN8-0000Q9-E3
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2020 18:13:26 -0400
Received: from quimby.gnus.org ([95.216.78.240]:55504)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1k0BN6-0000Pu-Vi
 for 42429 <at> debbugs.gnu.org; Mon, 27 Jul 2020 18:13:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=R/mgNZ+zu97i0/TxKLwzpRaY9/Gnz138PogKk+XdErs=; b=BBwHMtL535EKNCCg/s9Iu1u/C5
 ey8z9BI+kruqSxFMzgKtqNHFEC8EAkqBpSlxQkrXX0xu0sJnb1YRIPy0CGbd8JSyaO26pP46t8NRy
 uKaGCETlRtDtcrwbUnemN2/aFhN3/mjsRr9/bgR5xQ653y+Rmqlf/D6E+UEDQmd4j8Cg=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1k0BMx-0005Q1-Va; Tue, 28 Jul 2020 00:13:18 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: 42429 <at> debbugs.gnu.org
Subject: Re: bug#42429: 28.0.50; browse-url-of-dired doesn't work on
 directories
References: <87zh7vl2ve.fsf@HIDDEN>
Date: Tue, 28 Jul 2020 00:13:14 +0200
In-Reply-To: <87zh7vl2ve.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sun,
 19 Jul 2020 21:29:57 +0200")
Message-ID: <87ft9c4net.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Lars Ingebrigtsen <larsi@HIDDEN> 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: [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42429
Cc: Michael Albinus <michael.albinus@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> 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@HIDDEN:
bug#42429; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Jul 2020 19:30:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 19 15:30:15 2020
Received: from localhost ([127.0.0.1]:33051 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jxF0k-00016M-VK
	for submit <at> debbugs.gnu.org; Sun, 19 Jul 2020 15:30:15 -0400
Received: from lists.gnu.org ([209.51.188.17]:42382)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1jxF0h-00012z-Ta
 for submit <at> debbugs.gnu.org; Sun, 19 Jul 2020 15:30:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60902)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1jxF0h-0003nq-NW
 for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2020 15:30:07 -0400
Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:54538)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larsi@HIDDEN>) id 1jxF0g-0006Mk-1C
 for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2020 15:30:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:
 Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=zHCILdWVSkCRBNTt5TLJupubGVymd6iKhQH3bVs9xnw=; b=YT5fHzZpp0rYpqCjYF8peGEzt5
 uN9NykdCa1yj0FjNBTmgiMtUMkisJ9j0V+z13k2Tu1M4/WsMZuVmGTgqkncyr9/i/zdf4COCBNd5w
 X3Y/eQwPgqqguyZckfTw+fF/IvD/rr1dCXsHZH+7z9dSNL3PK0VM9dS4pwbKlqMh/Qt0=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1jxF0Y-00041x-1u
 for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2020 21:30:03 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; browse-url-of-dired doesn't work on directories
Date: Sun, 19 Jul 2020 21:29:57 +0200
Message-ID: <87zh7vl2ve.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: 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" [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@HIDDEN;
 helo=quimby.gnus.org
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


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@HIDDEN>
AuthorDate: Sun May 8 14:34:51 2011 -0400
Commit:     Chong Yidong <cyd@HIDDEN>
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





Acknowledgement sent to Lars Ingebrigtsen <larsi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#42429; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 27 Jul 2020 22:15:02 UTC

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