From 4d3428e95a9ea38841bc234780b8abfc6a34919e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 2 Feb 2023 20:12:02 +0200 Subject: [PATCH] Fix docstring fontification of CL's 'defstruct' * lisp/emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string' property. Patch by Nicolas Martyanoff . Copyright-paperwork-exempt: yes --- lisp/emacs-lisp/lisp-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index bacc105a214..367f59e8785 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -182,6 +182,7 @@ to a package-local -loaddefs.el file.") ;; CL (put 'defconstant 'doc-string-elt 3) (put 'defparameter 'doc-string-elt 3) +(put 'defstruct 'doc-string-elt 2) (defvar lisp-doc-string-elt-property 'doc-string-elt "The symbol property that holds the docstring position info.") -- 2.39.2