From: Michael Albinus <michael.albinus@gmx.de>
To: Xavier Maillard <xma@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Opening a "pseudo" file ?
Date: Thu, 19 Nov 2009 05:55:38 +0100 [thread overview]
Message-ID: <878we32jw5.fsf@gmx.de> (raw)
In-Reply-To: <200911190026.nAJ0QAlE018742@fed.local> (Xavier Maillard's message of "Thu, 19 Nov 2009 01:26:10 +0100")
Xavier Maillard <xma@gnu.org> writes:
> Hi,
Hi,
> Using Tramp, one can "open" files via different protocols being ftp, ssh, su ...
>
> I want to add something else to this list, say wiki so I would do
> C-x C-f /wiki::wiki-name:page wiki-name would be provided with
> the help of my own package. Do you know how all this machinery
> would play together ?
It is described in (info "(elisp)Magic File Names")
In short: you add an entry to `file-name-handler-alist', let's say
("\\`/wiki:" . my-wiki-file-name-handler). `my-wiki-file-name-handler'
must be a function, which implements the primitive file name functions
listed in the manual, or calls another implementation of that function,
like the one from Tramp.
If it is of wider interest, we could also think about a more tight
integration into Tramp.
> To sum things up, I want to both call directly my package entry
> functions or Tramp mechanism to edit my wiki pages.
That's possible. Maybe you study the Tramp code. tramp-imap.el has been
added recently by Ted Zlatanov. tramp-smb.el has a similar history (it
was my first contribution to Tramp). Both provide handling for special
Tramp methods.
> I hope I am clear :/
>
> Xavier
Best regards, Michaell.
prev parent reply other threads:[~2009-11-19 4:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 0:26 Opening a "pseudo" file ? Xavier Maillard
2009-11-19 4:55 ` Michael Albinus [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=878we32jw5.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=xma@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.
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).