From: Nicolas Martyanoff Date: Thu, 9 Feb 2023 10:39:14 +0000 (+0100) Subject: lisp-mode: add docstring recognition for more common lisp symbols X-Git-Tag: emacs-29.0.90~463 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=67c6ec25590;p=emacs.git lisp-mode: add docstring recognition for more common lisp symbols * lisp/emacs-lisp/lisp-mode.el (define-compiler-macro) (define-setf-expander, deftype): Add the 'doc-string-elt' property for proper docstring highlighting in Common Lisp. --- diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 367f59e8785..d44c9d6e23d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -181,8 +181,11 @@ to a package-local -loaddefs.el file.") (put 'define-category 'doc-string-elt 2) ;; CL (put 'defconstant 'doc-string-elt 3) +(put 'define-compiler-macro 'doc-string-elt 3) +(put 'define-setf-expander 'doc-string-elt 3) (put 'defparameter 'doc-string-elt 3) (put 'defstruct 'doc-string-elt 2) +(put 'deftype 'doc-string-elt 3) (defvar lisp-doc-string-elt-property 'doc-string-elt "The symbol property that holds the docstring position info.")