GNU bug report logs -
#41114
28.0.50; default-directory & buffer-file-name set to file:// URLs
Previous Next
Reported by: Tassilo Horn <tsdh <at> gnu.org>
Date: Wed, 6 May 2020 21:29:01 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tassilo Horn <tsdh <at> gnu.org> writes:
> 1. emacs -Q
> 2. (browse-url-emacs "file:///home/horn/.bashrc") ;; Adapt file name.
>
> The result of the procedure is that `buffer-file-name' is
> "file:///home/horn/.bashrc" and `default-directory' is
> "file:///home/horn/".
>
> According to the docs, both variables should be absolute file names,
> not URLs.
>
> The problems with those URLs are at least that:
>
> - C-x C-f in that buffer will offer a completely broken initial
> directory when querying for a file or directory. For me it is
> ~/Repos/el/emacs/src/file:/home/horn/file:/home/horn/.
>
> - When call-process is called from that buffer it'll error that
> file:///home/horn/ cannot be set as current directory.
In addition, the file is read-only although I have write permissions for
my own .bashrc. When I then C-x C-f ~/.bashrc, I get the message
~/.bashrc and file:///home/horn/.bashrc are the same file
so Emacs actually knows they are the same file.
Bye,
Tassilo
This bug report was last modified 3 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.