Class p.u.e.e.EmacsClient(object):

Part of pida.utils.emacs.emacscom View In Hierarchy

Tool for sending orders to emacs.

EmacsClient class relies on the emacsclient binary. Note that this utility works with a server started from inside a running emacs instance. We assume for now that the emacs instance running in pida is the only one having a running server.

Line # Kind Name Docs
49 Method __init__ Constructor.
56 Method activate Allow communication.
63 Method inactivate Prevents sending any message to Emacs.
70 Method set_directory Undocumented
73 Method open_file Undocumented
76 Method change_buffer Undocumented
79 Method save_buffer Undocumented
82 Method save_buffer_as Undocumented
85 Method close_buffer Undocumented
88 Method cut Undocumented
91 Method copy Undocumented
94 Method paste Undocumented
97 Method ping Undocumented
100 Method goto_line Undocumented
103 Method revert_buffer Undocumented
106 Method undo Undocumented
109 Method redo Undocumented
113 Method quit Undocumented
116 Method _send Invokes emacsclient to send a message to Emacs.
def __init__(self):
Constructor.
def activate(self):
Allow communication.

An EmacsClient object is activated by default.

def inactivate(self):
Prevents sending any message to Emacs.

This can be useful if Pida knows emacs has quit for example.

def set_directory(self, path):
Undocumented
def open_file(self, filename):
Undocumented
def change_buffer(self, filename):
Undocumented
def save_buffer(self):
Undocumented
def save_buffer_as(self, filename):
Undocumented
def close_buffer(self, buffer):
Undocumented
def cut(self):
Undocumented
def copy(self):
Undocumented
def paste(self):
Undocumented
def ping(self):
Undocumented
def goto_line(self, line):
Undocumented
def revert_buffer(self):
Undocumented
def undo(self):
Undocumented
def redo(self):
Undocumented
def quit(self):
Undocumented
def _send(self, command):
Invokes emacsclient to send a message to Emacs.

The message is only sent is this object is not inactivated.

API Documentation for PIDA, generated by pydoctor.