From: Michael Olson <mwolson@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Re: Attention XEmacs users
Date: Tue, 20 Jun 2006 20:15:22 -0400 [thread overview]
Message-ID: <87ac87mkit.fsf@tuxtanker.mwolson.org> (raw)
In-Reply-To: 7c11547dc9caecd3e00b6804c40847f7@science.uva.nl
[-- Attachment #1.1: Type: text/plain, Size: 1168 bytes --]
Carsten Dominik <dominik@science.uva.nl> 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)))
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS
[-- Attachment #1.2: Type: application/pgp-signature, Size: 190 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2006-06-21 0:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 16:54 Attention XEmacs users Carsten Dominik
2006-06-15 13:21 ` Tim O'Callaghan
2006-06-15 17:38 ` Carsten Dominik
2006-06-15 19:02 ` Tim O'Callaghan
2006-06-20 12:09 ` Tim O'Callaghan
2006-06-20 13:47 ` Carsten Dominik
2006-06-20 15:03 ` Tim O'Callaghan
2006-06-20 15:11 ` Carsten Dominik
2006-06-20 16:26 ` Carsten Dominik
[not found] ` <c55b018aaf03fc22cde44a33e739b86d@science.uva.nl>
[not found] ` <20060620162457.GE1132@ELSAMSW37164>
2006-06-20 16:36 ` Carsten Dominik
2006-06-20 16:53 ` Tim O'Callaghan
2006-06-20 17:13 ` Carsten Dominik
2006-06-20 17:29 ` Tim O'Callaghan
2006-06-20 17:33 ` Carsten Dominik
2006-06-21 0:15 ` Michael Olson [this message]
2006-06-21 4:55 ` Carsten Dominik
-- strict thread matches above, loose matches on Subject: below --
2006-06-22 15:35 Tim O'Callaghan
2006-06-23 6:24 ` Carsten Dominik
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ac87mkit.fsf@tuxtanker.mwolson.org \
--to=mwolson@gnu.org \
--cc=emacs-orgmode@gnu.org \
/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/org-mode.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).