mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Add a GDS protocol hook, that we can use for testing
* emacs/gds.el (gds-protocol-hook): New hook. (gds-debug-protocol): Run this hook for each received protocol form.
This commit is contained in:
parent
55aae98356
commit
8b08722023
1 changed files with 6 additions and 0 deletions
|
@ -138,7 +138,13 @@ listen on to the path that it should bind to for each one.")
|
|||
|
||||
;;;; Debugger protocol
|
||||
|
||||
(defcustom gds-protocol-hook nil
|
||||
"Hook called on receipt of a protocol form from the GDS client."
|
||||
:type 'hook
|
||||
:group 'gds)
|
||||
|
||||
(defun gds-debug-protocol (client form)
|
||||
(run-hook-with-args 'gds-protocol-hook form)
|
||||
(or (eq client '*)
|
||||
(let ((proc (car form)))
|
||||
(cond ((eq proc 'name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue