From: Michael Albinus <michael.albinus@gmx.de>
To: Daniel Mendler <mail@daniel-mendler.de>
Cc: 53053@debbugs.gnu.org
Subject: bug#53053: 28.0.90; Tramp completion bug of path /sudo::~/
Date: Fri, 07 Jan 2022 15:05:38 +0100 [thread overview]
Message-ID: <87sftz8wul.fsf@gmx.de> (raw)
In-Reply-To: <58e88707-e8e1-604d-945a-4a1e234b86a5@daniel-mendler.de> (Daniel Mendler's message of "Thu, 6 Jan 2022 13:52:49 +0100")
Daniel Mendler <mail@daniel-mendler.de> writes:
Hi Daniel,
> 1. emacs -Q
> 2. C-x f /sudo::~/ (alternatively use an ssh path of a similar form)
> 3. Open the completion buffer by pressing ?
> 4. Click/select a directory in the completions buffer
>
> The resulting path looks like this:
>
> /sudo::~dir/
>
> The underlying issue is that somewhere a wrong completion boundary is
> reported by the Emacs completion table for non-normalized file paths
> which contain ~. This issue also affects other completion UIs. The issue
> is present on both 27 and 28.
I can confirm this. Tested with recent Emacs 29.0.50. As far as Tramp is
concerned, I see
--8<---------------cut here---------------start------------->8---
1 -> (file-name-all-completions "" #("/sudo:root@gandalf:/root/" 6 10 (tramp-default t) 11 18 (tramp-default t)))
1 <- file-name-all-completions: (".tcshrc" ".bash_profile" ".viminfo" ".cshrc" "tmp/" "../" ".cache/" ".local/" ".tramp_history" ".bash_history" "anaconda-ks.cfg" "./" ".bashrc" ".history" ".emacs.d/" ".config/" ".bash_logout" ".dbus/" ".ssh/")
--8<---------------cut here---------------end--------------->8---
This looks proper. However, when clicking on "tmp/" (as said in your
recipe), I get "/sudo::~tmp/".
I'm not an expert in the completion machinery, so I cannot contribute
much more to this problem.
Best regards, Michael.
next prev parent reply other threads:[~2022-01-07 14:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-06 12:52 bug#53053: 28.0.90; Tramp completion bug of path /sudo::~/ Daniel Mendler
2022-01-07 14:05 ` Michael Albinus [this message]
2022-02-04 0:11 ` Daniel Mendler
2022-02-05 14:42 ` Michael Albinus
2022-02-05 18:10 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-07 16:11 ` Daniel Mendler
2022-02-07 21:51 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-17 9:43 ` Michael Albinus
2022-02-17 13:08 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-17 15:04 ` Michael Albinus
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=87sftz8wul.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=53053@debbugs.gnu.org \
--cc=mail@daniel-mendler.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.