unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] lisp-mode: add docstring recognition for more common lisp symbols
@ 2023-02-09 10:39 Nicolas Martyanoff
  2023-02-09 14:12 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Martyanoff @ 2023-02-09 10:39 UTC (permalink / raw)
  To: emacs-devel; +Cc: Nicolas Martyanoff

Add the 'doc-string-elt property to deftype, define-setf-expander and and
define-compiler-macro for proper docstring highlighting in Common Lisp.
---
 lisp/emacs-lisp/lisp-mode.el | 3 +++
 1 file changed, 3 insertions(+)

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 @@ lisp-mode-autoload-regexp
 (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.")
-- 
2.39.1




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

end of thread, other threads:[~2023-02-09 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 10:39 [PATCH] lisp-mode: add docstring recognition for more common lisp symbols Nicolas Martyanoff
2023-02-09 14:12 ` Eli Zaretskii
2023-02-09 14:47   ` Nicolas Martyanoff
2023-02-09 15:48     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).