Go to the first, previous, next, last section, table of contents.


Client Editing

Normally you will only have one instance of Jade executing at a single time. Often though, another program will want you to edit a file, for example when you are composing a mail message. There is normally a way to specify which editor you want to use, for example the EDITOR environment variable.

If you were to ask to edit the file in jade an additional process executing Jade would be started, totally separate from the original. It is possible to use the original instance.

Firstly Jade must be set up to listen for clients wanting files edited, this is done with the server-open command. You can either put this in your `.jaderc' file (with a line like `(server-open)') or call it manually with the command Meta-x server-open.

Only one instance of Jade may be a server at once. If you know that there is no other Jade running but it still won't let you open a server, and you are running on Unix, look for a dead socket called `~/.Jade_rendezvous' and delete it if necessary.

Once the editor is listening for client messages the separate program jadeclient may be used to load files into the server from an external source. The format of jadeclient invocation is,

jadeclient [+line-number] file-name ...

When invoked, it will ask the server to edit each file-name (initially positioned at line line-number) in turn, exiting only after each file has finished being edited.

If when the jadeclient program is invoked their is no server open (i.e. either Jade is not running or you haven't used the server-open function) a message `Jade not running, waiting...' will be printed and jadeclient will sit waiting for you to open a Jade server.

So, simply get the program you want to use Jade to use the jadeclient program as its editor. For example, I use mh to handle my electronic mail; in my `~/.mh_profile' file I have the line,

Editor: jadeclient

to tell it that I want to edit my mail in Jade.

The one special command for client/server editing is,

Ctrl-x #
If the file being edited in the current buffer is a client file, tell the client program which loaded it that it has finished being edited. The actual buffer is not deleted.

It is also possible to finish editing a client file by simple deleting its buffer in the normal way (Ctrl-x k), section Deleting Buffers.


Go to the first, previous, next, last section, table of contents.