From f3df7916b2b342380930082cf35bad6cb488a4dc Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 14 Mar 2022 10:59:03 +0100 Subject: 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. --- lisp/emacs-lisp/cl-macs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') 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. -- cgit v1.2.3