aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorJoão Távora2023-03-14 19:07:23 +0000
committerJoão Távora2023-03-14 19:36:47 +0000
commit2d835d64ba339bb375f0d55c4679149d6da3f209 (patch)
tree108faa939f37b16b4a9b39d369cbb043f877b7d9 /java/debug.sh
parenta55aaf9eaf203a4aedb0a492de2c33ab54b0b11c (diff)
downloademacs-2d835d64ba339bb375f0d55c4679149d6da3f209.tar.gz
emacs-2d835d64ba339bb375f0d55c4679149d6da3f209.zip
Better jsonrpc.el workaround for debug-on-error check
Some extensions, notably ert.el, set `debug-on-error' to non-nil, which makes it hard to test the behaviour catching of the Elisp error when processing a request and replying to the endpoint with an JSONRPC-error. The previous workaround relied on requiring lisp/emacs-lisp/ert.el in lisp/jsonrpc.el, which really doesn't make sense. This is better. For the single test of that behaviour, set a new variable, jsonrpc-inhibit-debug-on-error. Not only is this cleaner, it allows us to use ert.el's useful debug-on-error setting. * lisp/jsonrpc.el (ert): Don't require it. (jsonrpc-inhibit-debug-on-error): New variable. (jsonrpc-connection-receive): Use it. (Package-Requires): Bump to 1.0.17 * test/lisp/jsonrpc-tests.el (signals-an--32603-JSONRPC-error): Bind jsonrpc-inhibit-debug-on-error.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions