summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mode.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-02-02 20:12:02 +0200
committerEli Zaretskii <eliz@gnu.org>2023-02-02 20:12:02 +0200
commit4d3428e95a9ea38841bc234780b8abfc6a34919e (patch)
treefb8b369e93e8a6ec7ef54452c564bbf3c8d3431d /lisp/emacs-lisp/lisp-mode.el
parent1c125baa3f0d908eaf19698bbef2e81653e4f421 (diff)
downloademacs-4d3428e95a9ea38841bc234780b8abfc6a34919e.tar.gz
Fix docstring fontification of CL's 'defstruct'
* lisp/emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string' property. Patch by Nicolas Martyanoff <nicolas@n16f.net>. Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el1
1 files changed, 1 insertions, 0 deletions
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 <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.")