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.
This commit is contained in:
Philipp Stephani 2022-03-14 10:59:03 +01:00
parent 637dde4aba
commit f3df7916b2
2 changed files with 20 additions and 1 deletions

View file

@ -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.