From: Tassilo Horn <tsdh@gnu.org>
To: 41114@debbugs.gnu.org
Subject: bug#41114: 28.0.50; default-directory & buffer-file-name set to file:// URLs
Date: Wed, 06 May 2020 23:52:59 +0200 [thread overview]
Message-ID: <87h7wswx1g.fsf@gnu.org> (raw)
In-Reply-To: <87tv0swy6k.fsf@gnu.org> (Tassilo Horn's message of "Wed, 06 May 2020 23:28:19 +0200")
Tassilo Horn <tsdh@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
next prev parent reply other threads:[~2020-05-06 21:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 21:28 bug#41114: 28.0.50; default-directory & buffer-file-name set to file:// URLs Tassilo Horn
2020-05-06 21:52 ` Tassilo Horn [this message]
2022-03-12 11:50 ` Michael Albinus
2022-03-12 17:09 ` Lars Ingebrigtsen
2022-03-12 19:25 ` Tassilo Horn
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=87h7wswx1g.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=41114@debbugs.gnu.org \
/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).