Wrap keyboard-quit instead of completely replacing keyboard-quit

master
Matthew 6 years ago
parent c10ab03646
commit 2df85b2b5e
  1. 5
      eaf.el
  2. 1
      eaf.py

@ -644,9 +644,10 @@ to edit EAF keybindings!" fun fun)))
(message (format "export %s to html" (buffer-file-name))))))
(defun eaf-keyboard-quit ()
"Similar to `keyboard-quit' but signals a ‘quit’ condition to EAF applications."
"Layers on top of `keyboard-quit' but signals a ‘quit’ condition to EAF applications."
(interactive)
(eaf-call "action_quit" eaf--buffer-id))
(eaf-call "action_quit" eaf--buffer-id)
(call-interactively 'keyboard-quit))
(defun eaf-send-key ()
"Directly send key to EAF Python side."

@ -259,7 +259,6 @@ class EAF(dbus.service.Object):
def action_quit(self, buffer_id):
if buffer_id in self.buffer_dict:
self.buffer_dict[buffer_id].action_quit()
self.message_to_emacs("Quit")
@dbus.service.method(EAF_DBUS_NAME, in_signature="ss", out_signature="")
def send_key(self, buffer_id, event_string):

Loading…
Cancel
Save