unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bozhidar Batsov <bozhidar@batsov.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Remove the magic portion of a remote file name
Date: Wed, 16 Apr 2014 17:52:57 +0300	[thread overview]
Message-ID: <CAM9Zgm06xZ9bNGh-ksDuCd+r+yD35Z9Tr6kUzJ2xS=42u6Cx4g@mail.gmail.com> (raw)
In-Reply-To: <871twxpdnx.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

Thanks, Michael! I guess I didn't expect that a function with a predicate
name would do something like that. :-)


On 16 April 2014 17:11, Michael Albinus <michael.albinus@gmx.de> wrote:

> Bozhidar Batsov <bozhidar@batsov.com> writes:
>
> > Hi guys,
>
> Hi Bozhidar,
>
> > I wonder what's the authoritative way to obtain the local file name
> > portion
> > of a remote file name? I’m looking for a function that would turn
> > "/ssh:root@192.168.1.1:/some/path/file" into "/some/path/file".
>
> (file-remote-p "/ssh:root@192.168.1.1:/some/path/file" 'localname)
>
> > I know of `tramp-dissect-file-name', but I wonder if there's a better
> > way, that doesn’t involve requiring tramp.
>
> Internally, it could use Tramp, but you don't need to require it.
>
> Best regards, Michael.
>

[-- Attachment #2: Type: text/html, Size: 1315 bytes --]

      reply	other threads:[~2014-04-16 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16 13:38 Remove the magic portion of a remote file name Bozhidar Batsov
2014-04-16 14:11 ` Michael Albinus
2014-04-16 14:52   ` Bozhidar Batsov [this message]

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='CAM9Zgm06xZ9bNGh-ksDuCd+r+yD35Z9Tr6kUzJ2xS=42u6Cx4g@mail.gmail.com' \
    --to=bozhidar@batsov.com \
    --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 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).