emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] lisp-mode: fix defstruct docstring identification for Common Lis


From: Nicolas Martyanoff
Subject: [PATCH] lisp-mode: fix defstruct docstring identification for Common Lisp
Date: Tue, 31 Jan 2023 01:54:57 +0100

In Common Lisp, defstruct accepts a docstring in second position. Having the
docstring identified as such allows correct highlighting.
---
 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 @@ lisp-mode-autoload-regexp
 ;; 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.38.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]