Part of pida.utils.emacs.emacscom View In Hierarchy
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. |
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.
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.