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

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

Listener for Emacs notifications.

When started by the EmacsEmbed object, the EMACS_SCRIPT is provided to Emacs to register some callbacks and create a link with Pida. EmacsServer is the server part of this link.

Line # Kind Name Docs
138 Method __init__ Constructor.
144 Method connect Install the link between Pida and Emacs.
158 Method _wait_connection Wait for connection from Emacs.
167 Method _cb_socket_event Wait for Pida events.
192 Method _cb_socket_read Analyse Emacs notifications and forward events to Pida.
def __init__(self, cb):
Constructor.
def connect(self):
Install the link between Pida and Emacs.
def _wait_connection(self):
Wait for connection from Emacs.
def _cb_socket_event(self, sock, condition):
Wait for Pida events.

Called by GTK main loop as soon as Emacs notifies an event. This method also monitors the link with Emacs.

Return True as long as Emacs is still alive.

def _cb_socket_read(self, data):
Analyse Emacs notifications and forward events to Pida.

All Emacs notifications are composed of a message name, and possibly
an argument. The EmacsServer object build the name of a related
callback in the EmacsCallback object by prefixing the message name
with 'cb_'.

Return True as long as the link with Emacs should be maintained.
API Documentation for PIDA, generated by pydoctor.