aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAlan Mackenzie2020-01-17 21:53:13 +0000
committerAlan Mackenzie2020-01-17 21:53:13 +0000
commit8d2fecdf6c372b8ff064454558ae5843d0607f06 (patch)
tree8af86a930597807ef9163502e939128d0a566b6a /doc
parentd97a77c481ec913d8c3c24f2eecdc41a28243678 (diff)
downloademacs-8d2fecdf6c372b8ff064454558ae5843d0607f06.tar.gz
emacs-8d2fecdf6c372b8ff064454558ae5843d0607f06.zip
Introduce element &error into edebug specification lists for macros
This fixes bug #37540. * lisp/emacs-lisp/edebug.el (top level): New entry for &error in alist used to associate elements with their handling functions. (edebug-match-&error): New function. (nested-backquote-form): Use the new element &error to abort instrumentation on encountering a three deep nesting of backquotes (without intervening commas). * doc/lispref/edebug.texi (Specification List): Add an entry for &error. * etc/NEWS: Add an entry for &error.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/edebug.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi
index 8be8307c75f..cfef5c12d1e 100644
--- a/doc/lispref/edebug.texi
+++ b/doc/lispref/edebug.texi
@@ -1362,6 +1362,11 @@ while matching the remainder of the specifications at this level. This
1362is primarily used to generate more specific syntax error messages. See 1362is primarily used to generate more specific syntax error messages. See
1363@ref{Backtracking}, for more details. Also see the @code{let} example. 1363@ref{Backtracking}, for more details. Also see the @code{let} example.
1364 1364
1365@item &error
1366@code{&error} should be followed by a string, an error message, in the
1367edebug-spec; it aborts the instrumentation, displaying the message in
1368the minibuffer.
1369
1365@item @var{other-symbol} 1370@item @var{other-symbol}
1366@cindex indirect specifications 1371@cindex indirect specifications
1367Any other symbol in a specification list may be a predicate or an 1372Any other symbol in a specification list may be a predicate or an