unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: 42429@debbugs.gnu.org
Cc: Michael Albinus <michael.albinus@gmx.de>
Subject: bug#42429: 28.0.50; browse-url-of-dired doesn't work on directories
Date: Tue, 28 Jul 2020 00:13:14 +0200	[thread overview]
Message-ID: <87ft9c4net.fsf@gnus.org> (raw)
In-Reply-To: <87zh7vl2ve.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 21:29:57 +0200")

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	other threads:[~2020-07-27 22:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 19:29 bug#42429: 28.0.50; browse-url-of-dired doesn't work on directories Lars Ingebrigtsen
2020-07-27 22:13 ` Lars Ingebrigtsen [this message]
2020-10-17  9:24   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft9c4net.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=42429@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).