From: Carsten Dominik <dominik@science.uva.nl>
To: Michael Olson <mwolson@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Attention XEmacs users
Date: Wed, 21 Jun 2006 06:55:27 +0200 [thread overview]
Message-ID: <5123c8f53ea6fb96e735824db1308930@science.uva.nl> (raw)
In-Reply-To: <87ac87mkit.fsf@tuxtanker.mwolson.org>
This is excellent, thank you very much.
- Carsten
On Jun 21, 2006, at 2:15, Michael Olson wrote:
> 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
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
prev parent reply other threads:[~2006-06-21 4:55 UTC|newest]
Thread overview: 16+ 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
2006-06-21 4:55 ` Carsten Dominik [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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5123c8f53ea6fb96e735824db1308930@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=mwolson@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).