all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: rfn-eshadow.el and remote filenames
Date: Wed, 12 Sep 2007 22:28:55 -0400	[thread overview]
Message-ID: <jwv7imvux3q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874phzsgog.fsf@gmx.de> (Michael Albinus's message of "Wed\, 12 Sep 2007 23\:43\:43 +0200")

> Tramp has an own implementation of substitute-in-file-name, which
> substitutes "//" and "/~" in the local filename part. In order to make
> it visible in the minibuffer, I'ld like to install the appended patch in
> the trunk.

> If you want to see it, type something like "/tmp//su::/etc//us <TAB>" in
> the minibuffer, when opening a file.

> Any objections?

Current rfn-eshadow.el does not assume anything about the behavior of
substitute-in-file-name and I think we should keep it that way.  Obviously,
it does have some preconceived notion about how substitute-in-file-name
*might* work, but it works safely in "all" cases.

Currently, rfn-eshadow.el only recognizes when substitute-in-file-name drops
a prefix of the current file name, so we need to extend it to recognize
cases where substitute-in-file-name drops some internal part instead.
How to do that efficiently?  I'm not sure.

I'd prefer we find a more general way to do it, but if not, maybe your code
can be kept mostly, but then it should check its result against the return
value of substitute-in-file-name.


        Stefan

  reply	other threads:[~2007-09-13  2:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12 21:43 rfn-eshadow.el and remote filenames Michael Albinus
2007-09-13  2:28 ` Stefan Monnier [this message]
2007-09-13 15:47   ` Michael Albinus
2007-09-14  6:41     ` 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=jwv7imvux3q.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.