[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26778: 25.1; Docstring for DEFPARAMETER is off-colored in lisp-mode
From: |
Glenn Morris |
Subject: |
bug#26778: 25.1; Docstring for DEFPARAMETER is off-colored in lisp-mode |
Date: |
Fri, 05 May 2017 02:17:28 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Version: 26.1
commit 4af2431
Date: Thu May 4 23:15:53 2017 -0700
Fontify the doc-string in some CL forms as such
* lisp/emacs-lisp/lisp-mode.el (defconstant, defparameter):
Add the doc-string-elt property. (Bug#26778)
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 54d9168..7448864 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -164,6 +164,9 @@
(put 'defalias 'doc-string-elt 3)
(put 'defvaralias 'doc-string-elt 3)
(put 'define-category 'doc-string-elt 2)
+;; CL
+(put 'defconstant 'doc-string-elt 3)
+(put 'defparameter 'doc-string-elt 3)
(defvar lisp-doc-string-elt-property 'doc-string-elt
"The symbol property that holds the docstring position info.")