From: Nicolas Martyanoff <nicolas@n16f.net>
To: emacs-devel@gnu.org
Cc: Nicolas Martyanoff <nicolas@n16f.net>
Subject: [PATCH] lisp-mode: fix defstruct docstring identification for Common Lisp
Date: Tue, 31 Jan 2023 01:54:57 +0100 [thread overview]
Message-ID: <20230131005457.162562-1-nicolas@n16f.net> (raw)
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
next reply other threads:[~2023-01-31 0:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 0:54 Nicolas Martyanoff [this message]
2023-02-02 10:46 ` [PATCH] lisp-mode: fix defstruct docstring identification for Common Lisp Eli Zaretskii
2023-02-02 11:27 ` Nicolas Martyanoff
[not found] ` <87y1pgpau5.fsf@valhala.localdomain>
2023-02-02 18:13 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230131005457.162562-1-nicolas@n16f.net \
--to=nicolas@n16f.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).