all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] lisp-mode: fix defstruct docstring identification for Common Lisp
@ 2023-01-31  0:54 Nicolas Martyanoff
  2023-02-02 10:46 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Martyanoff @ 2023-01-31  0:54 UTC (permalink / raw)
  To: emacs-devel; +Cc: Nicolas Martyanoff

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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-02 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-31  0:54 [PATCH] lisp-mode: fix defstruct docstring identification for Common Lisp Nicolas Martyanoff
2023-02-02 10:46 ` Eli Zaretskii
2023-02-02 11:27   ` Nicolas Martyanoff
     [not found]   ` <87y1pgpau5.fsf@valhala.localdomain>
2023-02-02 18:13     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.