[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protocols and filenames

From: Stefan Monnier
Subject: Re: Protocols and filenames
Date: Mon, 09 Mar 2009 22:34:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

> I want to open a file prefixed with a user defined protocol through
> emacsclient. Just like 
>   emacsclient my-protocol:///home/sebastian/org/tutorials/tutorial.org

Indeed, we have a bug here.  `emacsclient' passes
`pwd`/my-protocol:///home/sebastian/org/tutorials/tutorial.org to Emacs,
which is why it doesn't work.

> * Second question:

>    How would get emacs to open a file using a user defined protocoll
>    like this:
>    emacs my-protocol:///path/to/tutorial.org
>    I tried to use `directory-abbrev-alist' for this, but to no avail.

You'd either want to use file-name-handler-alist, or even hook directly
into the URL library (see emacs/lisp/url/*.el).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]