summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2022-03-14 10:59:03 +0100
committerPhilipp Stephani <phst@google.com>2022-03-14 10:59:03 +0100
commitf3df7916b2b342380930082cf35bad6cb488a4dc (patch)
tree812ec9d256f8e94cf4f8ee425ab5e8f863aa4ab6 /lisp/emacs-lisp
parent637dde4aba921435f78d0de769ad74c4f3230aa6 (diff)
downloademacs-f3df7916b2b342380930082cf35bad6cb488a4dc.tar.gz
emacs-f3df7916b2b342380930082cf35bad6cb488a4dc.tar.bz2
emacs-f3df7916b2b342380930082cf35bad6cb488a4dc.zip
Make Edebug specification for 'cl-defstruct' more lenient.
For example, 'xref-item' uses the list form of ':noinline'. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Accept ':noinline' and ':named' with an argument. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct/edebug): New unit test.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/cl-macs.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 4b231d81496..9fd3350ddd7 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2911,7 +2911,8 @@ To see the documentation for a defined struct type, use
[":include" symbolp &rest sexp] ;; Not finished.
[":print-function" sexp]
[":type" symbolp]
- [":named"]
+ [":noinline" &optional sexp]
+ [":named" &optional sexp]
[":initial-offset" natnump])])]
[&optional stringp]
;; All the above is for the following def-form.