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

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

bug#58464: 28.1; browse-url-emacs doesn't work for local files on Window


From: Eli Zaretskii
Subject: bug#58464: 28.1; browse-url-emacs doesn't work for local files on Windows
Date: Wed, 12 Oct 2022 10:26:39 +0300

> From: Pascal Quesseveur <pquessev@gmail.com>
> Date: Wed, 12 Oct 2022 08:43:15 +0200
> 
> 
> emacs -Q
> (browse-url-emacs "file://C:/Windows/win.ini") -> Emacs hangs, nothing
> is displayed, C-g
> (browse-url-emacs "file:///C:/Windows/win.ini") -> file content is
> displayed, Message buffer contains:
> 
> File exists, but cannot be read
> #<buffer win.ini</Windows>>

With Emacs 29, I get a different message:

  Use M-x make-directory RET RET to create the directory and its parents

That's because the file's name and its default-directory are
incorrect:

  M-: buffer-file-name RET
   => X:/C:/Windows/win.ini
  M-: default-directory RET
   => X:/C:/Windows/

(where X is the driver letter of what happens to be the current drive
when I invoke Emacs).





reply via email to

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