GNU bug report logs - #14523
Inconsistency in font-lock/lisp mode for docstrings

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Max Rottenkolber <max@HIDDEN>; Keywords: notabug moreinfo; Done: Glenn Morris <rgm@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug closed, send any further explanations to 14523 <at> debbugs.gnu.org and Max Rottenkolber <max@HIDDEN> Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14523 <at> debbugs.gnu.org:


Received: (at 14523) by debbugs.gnu.org; 1 Jun 2013 17:51:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 01 13:51:26 2013
Received: from localhost ([127.0.0.1]:46465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uipxd-0001JP-Tg
	for submit <at> debbugs.gnu.org; Sat, 01 Jun 2013 13:51:26 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:33836 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Uipxb-0001JI-Kf
	for 14523 <at> debbugs.gnu.org; Sat, 01 Jun 2013 13:51:24 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Uipvw-0007bL-HL; Sat, 01 Jun 2013 13:49:40 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <20906.13364.408741.118290@HIDDEN>
Date: Sat, 1 Jun 2013 13:49:40 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Max Rottenkolber <max@HIDDEN>, 14523 <at> debbugs.gnu.org
Subject: Re: bug#14523: Inconsistency in font-lock/lisp mode for docstrings
In-Reply-To: <20906.13034.711621.506963@HIDDEN>
References: <nqppw6r8le.fsf@HIDDEN> <1N6VR9X.NVUL8C3D4P75@HIDDEN>
	<20906.13034.711621.506963@HIDDEN>
X-Attribution: GM
X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs)
X-Hue: green
X-Ran: D0>,Is(P@"!PoTzO[?sh(v|i-9r?WNer]<\nbr/}GH"|[,Ic1X'R.J$V_ee;0cF_HE_9?*
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: 14523
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -8.0 (--------)


Glenn Morris wrote (on Sat, 1 Jun 2013 at 13:44 -0400):

> Please keep the debbugs address cc'd.

Otherwise when the person you are replying to puts the bug number in
by hand, they might get the wrong one, like I did. Sigh.

Max Rottenkolber wrote (on Sat, 1 Jun 2013 at 10:22 +0200):

> M-x customize-face RET font-lock-doc-face RET
> 
> Find file foo .lisp, enter:
> 
> (defun ()
>   "redish"
>   13)

Surely this defun is missing a name?

> (defvar *x* nil
>   "whatever you set doc-face to.")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14523; Package emacs. Full text available.

Message received at 14523 <at> debbugs.gnu.org:


Received: (at 14523) by debbugs.gnu.org; 1 Jun 2013 00:15:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 31 20:15:31 2013
Received: from localhost ([127.0.0.1]:45346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UiZTm-0007Kz-Lz
	for submit <at> debbugs.gnu.org; Fri, 31 May 2013 20:15:31 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:49326 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UiZTk-0007Kq-FV
	for 14523 <at> debbugs.gnu.org; Fri, 31 May 2013 20:15:29 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UiZS9-0002e4-Mm; Fri, 31 May 2013 20:13:49 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Max Rottenkolber <max@HIDDEN>
Subject: Re: bug#14523: Inconsistency in font-lock/lisp mode for docstrings
References: <1N6UM47.NVUL8C3D4P75@HIDDEN>
X-Spook: clandestine spy emc defense information warfare Tony
X-Ran: m"t'^Z+g@7Ne-7voP-v4rQ=G)WM8Zgj7J`WwbIc]NDSV,_v2;cf>'IXV=$V~xXV2\dQliB
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 31 May 2013 20:13:49 -0400
In-Reply-To: <1N6UM47.NVUL8C3D4P75@HIDDEN> (Max Rottenkolber's message of "Fri, 
	31 May 2013 19:33:43 +0200")
Message-ID: <nqppw6r8le.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -8.0 (--------)
X-Debbugs-Envelope-To: 14523
Cc: 14523 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -8.0 (--------)

Max Rottenkolber wrote:

> On "GNU Emacs 24.2.1 (i486-slackware-linux-gnu, GTK+ Version 2.24.10) of
> 2012-08-31 on hive" using font-lock-mode it conjunction with lisp mode
> (and Common Lisp code): If font-lock-doc-face != font-lock-string-face
> docstrings are marked up inconsistently. E.g. DEFUN's docstrings use the
> first face, but DEVAR docstrings use the latter face.

Please give a complete example starting from emacs -Q.
I cannot reproduce this with:

emacs-24.2 -Q foo.el

where foo.el has contents:

(defun func () "function doc" t)
(defvar var "blah" "var doc")

Both doc-strings are in font-lock-doc-face.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14523; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 May 2013 17:37:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 31 13:37:16 2013
Received: from localhost ([127.0.0.1]:44887 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UiTGN-0000t8-5L
	for submit <at> debbugs.gnu.org; Fri, 31 May 2013 13:37:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52291)
	by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <max@HIDDEN>)
	id 1UiTF8-0000p8-4c
	for submit <at> debbugs.gnu.org; Fri, 31 May 2013 13:35:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <max@HIDDEN>) id 1UiTDR-0001dB-KT
	for submit <at> debbugs.gnu.org; Fri, 31 May 2013 13:34:16 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
	version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50308)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <max@HIDDEN>)
	id 1UiTDR-0001d7-HF
	for submit <at> debbugs.gnu.org; Fri, 31 May 2013 13:34:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53984)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <max@HIDDEN>)
	id 1UiTDO-0000pj-PI
	for bug-gnu-emacs@HIDDEN; Fri, 31 May 2013 13:34:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <max@HIDDEN>) id 1UiTDL-0001bT-V8
	for bug-gnu-emacs@HIDDEN; Fri, 31 May 2013 13:34:10 -0400
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:57957)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <max@HIDDEN>)
	id 1UiTDL-0001Ze-Na
	for bug-gnu-emacs@HIDDEN; Fri, 31 May 2013 13:34:07 -0400
Received: from mfilter6-d.gandi.net (mfilter6-d.gandi.net [217.70.178.135])
	by relay5-d.mail.gandi.net (Postfix) with ESMTP id 0B1DD41C064
	for <bug-gnu-emacs@HIDDEN>; Fri, 31 May 2013 19:33:53 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mfilter6-d.gandi.net
Received: from relay5-d.mail.gandi.net ([217.70.183.197])
	by mfilter6-d.gandi.net (mfilter6-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id 1yT3sbvemz6b for <bug-gnu-emacs@HIDDEN>;
	Fri, 31 May 2013 19:33:51 +0200 (CEST)
X-Originating-IP: 89.0.190.226
Received: from NIL (xdsl-89-0-190-226.netcologne.de [89.0.190.226])
	(Authenticated sender: max@HIDDEN)
	by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 3202E41C062
	for <bug-gnu-emacs@HIDDEN>; Fri, 31 May 2013 19:33:50 +0200 (CEST)
Date: Fri, 31 May 2013 19:33:43 +0200
From: Max Rottenkolber <max@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Inconsistency in font-lock/lisp mode for docstrings
Message-ID: <1N6UM47.NVUL8C3D4P75@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 31 May 2013 13:37:14 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Max Rottenkolber <max@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Greetings everybody,

On "GNU Emacs 24.2.1 (i486-slackware-linux-gnu, GTK+ Version 2.24.10) of
2012-08-31 on hive" using font-lock-mode it conjunction with lisp mode
(and Common Lisp code): If font-lock-doc-face !=3D font-lock-string-face
docstrings are marked up inconsistently. E.g. DEFUN's docstrings use the
first face, but DEVAR docstrings use the latter face.

Cheers,
max




Acknowledgement sent to Max Rottenkolber <max@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14523; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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