]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix docstring fontification of CL's 'defstruct'
authorEli Zaretskii <eliz@gnu.org>
Thu, 2 Feb 2023 18:12:02 +0000 (20:12 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 2 Feb 2023 18:12:02 +0000 (20:12 +0200)
* lisp/emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string'
property.  Patch by Nicolas Martyanoff <nicolas@n16f.net>.

Copyright-paperwork-exempt: yes

lisp/emacs-lisp/lisp-mode.el

index bacc105a2141e0fceb4a2e8246efa2b7e25ce9d8..367f59e878592aae82d974a62e66d297c29fae5c 100644 (file)
@@ -182,6 +182,7 @@ to a package-local <package>-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.")