From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2984: marked as done (deftype bad fontification) Date: Thu, 16 Apr 2009 04:40:03 +0000 Message-ID: References: <87d4bdxln6.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1239856803-25649-0" X-Trace: ger.gmane.org 1239857078 3694 80.91.229.12 (16 Apr 2009 04:44:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2009 04:44:38 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 16 06:45:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LuJU2-0003bx-R6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Apr 2009 06:45:55 +0200 Original-Received: from localhost ([127.0.0.1]:40790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuJSe-0006F2-79 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Apr 2009 00:44:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuJSC-00067e-4K for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2009 00:44:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuJS7-00066a-3J for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2009 00:43:59 -0400 Original-Received: from [199.232.76.173] (port=47357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuJS6-00066X-WD for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2009 00:43:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39317) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuJS6-0003iF-7s for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2009 00:43:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3G4hoHE026839; Wed, 15 Apr 2009 21:43:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3G4e4c1025758; Wed, 15 Apr 2009 21:40:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2984 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27222 Archived-At: This is a multi-part message in MIME format... ------------=_1239856803-25649-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 16 Apr 2009 00:33:49 -0400 with message-id <87d4bdxln6.fsf@cyd.mit.edu> and subject line Re: deftype bad fontification has caused the Emacs bug report #2984, regarding deftype bad fontification to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2984: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2984 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1239856803-25649-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 13 Apr 2009 16:32:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3DGWRor010418 for ; Mon, 13 Apr 2009 09:32:29 -0700 Received: from mail.gnu.org ([199.232.76.166]:55274 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LtP59-0008NB-3X for emacs-pretest-bug@gnu.org; Mon, 13 Apr 2009 12:32:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LtP57-00089T-Rc for emacs-pretest-bug@gnu.org; Mon, 13 Apr 2009 12:32:26 -0400 Received: from smtp-out.google.com ([216.239.33.17]:18675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtP57-00088V-Bv for emacs-pretest-bug@gnu.org; Mon, 13 Apr 2009 12:32:25 -0400 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id n3DGWJ81019759 for ; Mon, 13 Apr 2009 17:32:20 +0100 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1239640340; bh=8JQX1jeVdTO2aiCZIFVvHauT4MU=; h=DomainKey-Signature:Date:Message-Id:From:To:Subject:CC: X-System-Of-Record; b=bcYtzaWRsR3jvQSeJ/BcPj2mXiwJRYFe5MOt/udblzeb LfBfCWg2J5qmZ+IyiPVNY07/jGjA9rbBkkgnHUw8fw== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=date:message-id:from:to:subject:cc:x-system-of-record; b=dQK/pPF7Xuhbl68fAqFsQCrmReamMyVtGEJDo1aN95LBoKtted/KkQtdzUPtDxS++ HsgWhkmquu0Y/aD8eH4tA== Received: from paradicsom.nyc.corp.google.com.google.com (paradicsom.nyc.corp.google.com [172.26.104.255]) by zps19.corp.google.com with ESMTP id n3DGWHEd016840 for ; Mon, 13 Apr 2009 09:32:18 -0700 Date: Mon, 13 Apr 2009 12:32:17 -0400 Message-Id: From: Robert Brown To: emacs-pretest-bug@gnu.org Subject: deftype bad fontification CC: X-System-Of-Record: true X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) If you have the following Common Lisp code in a file called foo.lisp: (deftype foobar () "documentation" '(unsigned-byte 64)) font lock mode will display the documentation string using, I believe, font-lock-string-face. Instead, font-lock-doc-face should be used. To fix the problem, look for (put 'defun 'doc-string-elt 3) in lisp/emacs-lisp/lisp-mode.el and add the following line after it: (put 'deftype 'doc-string-elt 3) That is, deftype should be treated just as defun or defmacro for the purpose of fontifying the documentation string. This bug is present in recent CVS versions of Emacs. In GNU Emacs 22.0.55.1 (i686-pc-linux-gnu) of 2006-10-02 on eugene.nyc.corp.google.com configured using `configure '--prefix=/local/software/package/emacs-22.0.55.4'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: C value of $LC_NUMERIC: C value of $LC_TIME: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Lisp Minor modes in effect: eldoc-mode: t shell-dirtrack-mode: t slime-highlight-edits-mode: t slime-mode: t encoded-kbd-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: DEL DEL DEL DEL i g n e d - b y t e SPC 6 4 ) ) RET C-x C-f $ E L I S P TAB e m a c s TAB e DEL i TAB l i s p TAB - m o TAB RET C-s d e f u n SPC C-a C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x b RET ESC x e m a c s = - DEL DEL DEL s - b u TAB ESC DEL ESC DEL r e p o r t - TAB RET Recent messages: Loading easy-mmode...done Loading derived...done Loading edmacro...done Loading byte-opt...done Loading /local/software/source-trees/slime/slime.el (source)...done Loading eldoc...done Auto-saving...done Making completion list... Mark saved where search started Loading emacsbug...done ------------=_1239856803-25649-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2984-done) by emacsbugs.donarmstrong.com; 16 Apr 2009 04:32:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3G4W13J024268 for <2984-done@emacsbugs.donarmstrong.com>; Wed, 15 Apr 2009 21:32:02 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id C02FC57E245; Thu, 16 Apr 2009 00:33:49 -0400 (EDT) From: Chong Yidong To: Robert Brown Cc: 2984-done@emacsbugs.donarmstrong.com Subject: Re: deftype bad fontification Date: Thu, 16 Apr 2009 00:33:49 -0400 Message-ID: <87d4bdxln6.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > If you have the following Common Lisp code in a file called foo.lisp: > > (deftype foobar () "documentation" '(unsigned-byte 64)) > > font lock mode will display the documentation string using, I believe, > font-lock-string-face. Instead, font-lock-doc-face should be used. I've checked in the fix you suggested. Thanks. ------------=_1239856803-25649-0--