From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Olson Subject: Re: Attention XEmacs users Date: Tue, 20 Jun 2006 20:15:22 -0400 Message-ID: <87ac87mkit.fsf@tuxtanker.mwolson.org> References: <20060615132109.GA1296@ELSAMSW37164> <20060620120902.GB1132@ELSAMSW37164> <51f8d6c18c8a5c7541be9d341034dc50@science.uva.nl> <20060620150303.GD1132@ELSAMSW37164> <20060620162457.GE1132@ELSAMSW37164> <8ae4afbb9eb021c7b31fd84665f93daa@science.uva.nl> <20060620165356.GF1132@ELSAMSW37164> <0bee3a213a155b5970d3f68586cee893@science.uva.nl> <20060620172859.GG1132@ELSAMSW37164> <7c11547dc9caecd3e00b6804c40847f7@science.uva.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0779146893==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fsqbn-0003C6-EB for emacs-orgmode@gnu.org; Tue, 20 Jun 2006 20:30:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fsqbm-0003BW-2f for emacs-orgmode@gnu.org; Tue, 20 Jun 2006 20:30:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fsqbl-0003BT-TL for emacs-orgmode@gnu.org; Tue, 20 Jun 2006 20:30:13 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FsqmP-0003fr-1M for emacs-orgmode@gnu.org; Tue, 20 Jun 2006 20:41:13 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fsqbi-0006aV-VV for emacs-orgmode@gnu.org; Wed, 21 Jun 2006 02:30:11 +0200 Received: from jpi-wlafyte-213-192.dmisinetworks.net ([66.253.213.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jun 2006 02:30:10 +0200 Received: from mwolson by jpi-wlafyte-213-192.dmisinetworks.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jun 2006 02:30:10 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0779146893== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Carsten Dominik writes: > I just found file-remote-p, which may be the right solution. XEmacs and Emacs22 both have this function, but in case you need backwards compatibility with Emacs21, feel free to use something like the following. This handles both Tramp and ange-ftp file specifiers. (defun org-file-remote-p (file) "Test whether FILE specifies a location on a remote system. Return non-nil if the location is indeed remote. For example, the filename \"/user@host:/foo\" specifies a location on the system \"/user@host:\"." (cond ((fboundp 'file-remote-p) (file-remote-p file)) ((fboundp 'tramp-handle-file-remote-p) (tramp-handle-file-remote-p file)) ((and (boundp 'ange-ftp-name-format) (string-match ange-ftp-name-format file)) t) (t nil))) =2D-=20 Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/ Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.n= et /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEmI+d+1Ho2POo0xkRArL3AJ0XGA3ZF6guRcdMDTYXCr+Wd/b7lACeKlQj tjfix9TdCK4U6jBGIjGBf7w= =KrWf -----END PGP SIGNATURE----- --=-=-=-- --===============0779146893== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0779146893==--