From: Jim Porter <jporterbugs@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 65685@debbugs.gnu.org
Subject: bug#65685: 29.1; Inconsistent behavior of quoted file name "/:~" across platforms
Date: Mon, 9 Oct 2023 21:27:00 -0700 [thread overview]
Message-ID: <143e9622-960b-0841-db3f-d79b021eedb2@gmail.com> (raw)
In-Reply-To: <8734yshrx9.fsf@gmx.de>
On 10/3/2023 4:22 AM, Michael Albinus wrote:
> I've played a little bit with file-name-non-special. The result is the
> appended patch, which expands always "/:~" to the local home
> directory. Could you pls check whether it works for you?
Thanks for the patch. I tested this on GNU/Linux and MS-Windows, and it
behaves as expected for local files, but Tramp filenames from MS-Windows
to a remote GNU/Linux seem wrong (though they were wrong before this
patch too).
Before the patch (on Emacs 29.1), if I open "/ssh:remote:/:~", then
Emacs opens the file "/ssh:remote:/:/Users/Jim/AppData/Local/Temp/~".
After the patch, Emacs opens the file "/ssh:remote:/Users/Jim/Documents".
Based on the direction in your patch, I'd expect Emacs to open
"/ssh:remote:/home/jim/".
(I imagine a similar issue could occur on a local GNU/Linux system, but
going from a local MS-Windows to a remote GNU/Linux has the benefit that
the two systems have obviously-different directory layouts.)
next prev parent reply other threads:[~2023-10-10 4:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-01 19:22 bug#65685: 29.1; Inconsistent behavior of quoted file name "/:~" across platforms Jim Porter
2023-10-03 11:22 ` Michael Albinus
2023-10-10 4:27 ` Jim Porter [this message]
2023-10-13 14:26 ` Michael Albinus
2023-10-14 0:31 ` Jim Porter
2023-10-14 7:42 ` Michael Albinus
2023-10-14 7:42 ` Eli Zaretskii
2023-10-14 7:48 ` Michael Albinus
2023-10-14 10:56 ` Michael Albinus
2023-10-14 11:25 ` Eli Zaretskii
2023-10-14 14:29 ` Michael Albinus
2023-10-14 16:48 ` Michael Albinus
2023-10-14 19:07 ` Eli Zaretskii
2023-10-15 7:11 ` Michael Albinus
2023-10-15 9:36 ` Eli Zaretskii
2023-10-15 9:50 ` Michael Albinus
2023-10-15 9:58 ` Eli Zaretskii
2023-10-15 10:29 ` Michael Albinus
2023-10-15 20:12 ` Mattias Engdegård
2023-10-16 7:07 ` Michael Albinus
2023-10-16 7:30 ` Mattias Engdegård
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=143e9622-960b-0841-db3f-d79b021eedb2@gmail.com \
--to=jporterbugs@gmail.com \
--cc=65685@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.