[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41114: 28.0.50; default-directory & buffer-file-name set to file://
From: |
Michael Albinus |
Subject: |
bug#41114: 28.0.50; default-directory & buffer-file-name set to file:// URLs |
Date: |
Sat, 12 Mar 2022 12:50:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Tassilo Horn <tsdh@gnu.org> writes:
Hi Tassilo,
> 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.
While the problem still exists in the emacs-28 branch, it seems to be
fixed in master. Perhaps due to commit e06319b39d5, but I don't know.
So I propose to close the bug.
Best regards, Michael.
- bug#41114: 28.0.50; default-directory & buffer-file-name set to file:// URLs,
Michael Albinus <=