From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 67688@debbugs.gnu.org
Cc: grfz@gmx.de
Subject: bug#67688: 30.0.50; ffap prepends buffers default-directory to guessed file name in case of tramp's file name syntax
Date: Fri, 08 Dec 2023 15:36:24 +0100 [thread overview]
Message-ID: <87fs0cg3rr.fsf@gmx.de> (raw)
In-Reply-To: <87r0jy3z41.fsf@no.lan> (Gregor Zattler via's message of "Thu, 07 Dec 2023 14:45:34 +0100")
Gregor Zattler via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:
> Dear Emacs developers,
Hi Gregor,
> following this recipe (in
> some Gnu/Linux shell):
>
> $ cd /tmp
> tmp$ emacs -Q -nw
> # type /ssh:user@server:/home/test
> # type M-x ffap RET
>
> the proposed file name in minibuffer then is:
> /tmp/ssh:user@server:/home/test
> instead of
> /ssh:user@server:/home/test
>
> Therefore it's not possible to just hit RET in order
> to open that file. But that would be nice.
I can reproduce the behavior for all Emacsen down to Emacs 25 (the
oldest I have a running copy of), so I guess it didn't work ever. The
problem is, that `ffap-guesser' returns "ssh:user@server:/home/test",
which looks like a relative file name. Therefore, it is expanded to the
default directory "/tmp/".
I have no idea about ffap.el and thingatpt.el, so I fear I cannot do too
much. Somebody else who knows these libraries might fix it.
> Thanks for your attention, Gregor
Best regards, Michael.
next prev parent reply other threads:[~2023-12-08 14:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-07 13:45 bug#67688: 30.0.50; ffap prepends buffers default-directory to guessed file name in case of tramp's file name syntax Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-07 14:33 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-08 14:36 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-12-12 14:53 ` Visuwesh
2023-12-12 15:11 ` Visuwesh
2023-12-12 15:17 ` Eli Zaretskii
2023-12-12 15:45 ` Visuwesh
2023-12-12 22:03 ` Gregor Zattler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-16 12:55 ` Eli Zaretskii
2023-12-16 14:45 ` Visuwesh
2023-12-23 9:33 ` Eli Zaretskii
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=87fs0cg3rr.fsf@gmx.de \
--to=bug-gnu-emacs@gnu.org \
--cc=67688@debbugs.gnu.org \
--cc=grfz@gmx.de \
--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 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).