From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Remove the magic portion of a remote file name Date: Wed, 16 Apr 2014 16:38:27 +0300 Message-ID: <66E6635733884E56A1359EAADADF5763@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="534e87d3_542da5b5_fda4" X-Trace: ger.gmane.org 1397655541 7665 80.91.229.3 (16 Apr 2014 13:39:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2014 13:39:01 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 15:38:54 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WaQ3B-0006dJ-Ov for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2014 15:38:53 +0200 Original-Received: from localhost ([::1]:54660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaQ3B-0001fy-Al for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2014 09:38:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaQ2z-0001fl-62 for emacs-devel@gnu.org; Wed, 16 Apr 2014 09:38:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaQ2q-0001gP-5H for emacs-devel@gnu.org; Wed, 16 Apr 2014 09:38:41 -0400 Original-Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:47102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WaQ2p-0001g5-Tb for emacs-devel@gnu.org; Wed, 16 Apr 2014 09:38:32 -0400 Original-Received: by mail-ee0-f53.google.com with SMTP id b57so8767999eek.26 for ; Wed, 16 Apr 2014 06:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:message-id:subject:mime-version:content-type; bh=T5oWYJn1m0B4ArvCI6CwTObDSpvxJhkMLpOj8ITfk2A=; b=VbZxDKUW6f7CojmxEZCRO+pvYLKbpPUFZ84/g6LrIQrzhejo2lMOSozWxKX7uIzuPF tgyvteBiYCAnwK1bq82toyccWmI6za1IzyagjIEf0Rw4cOeIjAEfRbeQSqg6f5M7YRTz gg5BYq7BjbcYY5yXkfg4RGpIrHwx5+WJEqoLjOcEWflhqZYGTTHKgUhxUQsgm7sicFzs x1B1r6IiXE5C96kx/LuOIlZBWBdw9ETyTF5LYo6bYRsj6jRpcApcJ/Lx8IveNwjuqhIm 4Gc2iMyFCunVwOdAMWVNS06pHlYsZb8R1G1xw/FKR21cxSp0FEV7CIR1rJp6YIPKOqYP z06w== X-Received: by 10.15.102.74 with SMTP id bq50mr5322999eeb.21.1397655510751; Wed, 16 Apr 2014 06:38:30 -0700 (PDT) Original-Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id e42sm58114027eev.32.2014.04.16.06.38.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 16 Apr 2014 06:38:29 -0700 (PDT) X-Mailer: sparrow 1.6.4 (build 1178) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171453 Archived-At: --534e87d3_542da5b5_fda4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi guys, =20 I wonder what's the authoritative way to obtain the local file name porti= on of a remote file name=3F I=E2=80=99m looking for a function that would tu= rn =22/ssh:root=40192.168.1.1:/some/path/file=22 into =22/some/path/file=22.= I know of =60tramp-dissect-file-name', but I wonder if there's a better way= , that doesn=E2=80=99t involve requiring tramp. Perhaps there=E2=80=99s no such function and we can add one. =20 -- =20 Cheers, Bozhidar --534e87d3_542da5b5_fda4 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi guys,

I wonder what's the authoritative way to obtain the local fi= le name portion
of a remote file name=3F I=E2=80=99m looking fo= r a function that would turn
=22/ssh:root=40192.168.1.1:/some/p= ath/file=22 into =22/some/path/file=22. I
know of =60tramp-diss= ect-file-name', but I wonder if there's a better way, that doesn=E2=80=99= t involve requiring tramp.

Perhaps there=E2=80=99s no such function and we can add o= ne.

-- 
Cheers,
=
Bozhidar

--534e87d3_542da5b5_fda4--