GNU bug report logs - #26778
25.1; Docstring for DEFPARAMETER is off-colored in lisp-mode

Previous Next

Package: emacs;

Reported by: phoe <at> openmailbox.org

Date: Thu, 4 May 2017 15:24:02 UTC

Severity: minor

Found in version 25.1

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 26778-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 26778-done <at> debbugs.gnu.org
Subject: Re: bug#26778: 25.1;
 Docstring for DEFPARAMETER is off-colored in lisp-mode
Date: Fri, 05 May 2017 02:17:28 -0400
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.")




This bug report was last modified 8 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.