Class p.e.e.e.EmacsCallback(object):

Part of pida.editors.emacs.emacs View In Hierarchy

Emacs editor callback behaviours.

Communication with Emacs process is handled by EmacsClient in the pIDA->Emacs
way, and EmacsServer the other way. On occurence of a message, EmacsServer
extracts a request name and arguments, and then tries to invoke the matching
method on the EmacsCallback object.

Callbacks' names are built with the Emacs message names, prefixed with 'cb_'.
Each callback accepts exactly one argument.
Line # Kind Name Docs
193 Method __init__ Constructor.
199 Method connect Establish the link with Emacs.
203 Method cb_pida_pong Emacs response to a ping.
212 Method cb_window_configuration_change_hook Buffer changed event.
230 Method cb_kill_buffer_hook Buffer closed event.
238 Method cb_find_file_hooks File opened event.
246 Method cb_after_save_hook Buffer saved event.
252 Method cb_kill_emacs_hook Emacs killed event.
def __init__(self, svc):
Constructor.
def connect(self):
Establish the link with Emacs.
def cb_pida_pong(self, foo):
Emacs response to a ping.

This message is used to test connection at startup.

def cb_window_configuration_change_hook(self, filename):
Buffer changed event.

Actually, this hook is called whenever the window containing the buffer changes. So notification can occur only when window is resized or split for example.

def cb_kill_buffer_hook(self, filename):
Buffer closed event.
def cb_find_file_hooks(self, filename):
File opened event.
def cb_after_save_hook(self, filename):
Buffer saved event.
def cb_kill_emacs_hook(self, foo):
Emacs killed event.
API Documentation for PIDA, generated by pydoctor.