From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Brown Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2984: deftype bad fontification Date: Mon, 13 Apr 2009 12:32:17 -0400 Message-ID: Reply-To: Robert Brown , 2984@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239768468 23075 80.91.229.12 (15 Apr 2009 04:07:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2009 04:07:48 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 15 06:09:07 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 1LtwQr-0000P3-SD for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2009 06:09:06 +0200 Original-Received: from localhost ([127.0.0.1]:44451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtwPT-0005IZ-7F for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Apr 2009 00:07:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtPGI-0000G6-Aj for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 12:43:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtPGD-0000Fm-BF for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 12:43:57 -0400 Original-Received: from [199.232.76.173] (port=37398 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtPGD-0000Fj-5K for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 12:43:53 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43613) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtPGC-0002fp-JW for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2009 12:43:52 -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 n3DGhoqE012967; Mon, 13 Apr 2009 09:43:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3DGe5l5011886; Mon, 13 Apr 2009 09:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Robert Brown Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 13 Apr 2009 16:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2984 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123964035110424 (code B ref -1); Mon, 13 Apr 2009 16:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 13 Apr 2009 16:32:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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== Original-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 X-System-Of-Record: true X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 13 Apr 2009 12:43:57 -0400 X-Mailman-Approved-At: Wed, 15 Apr 2009 00:07:33 -0400 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:27191 gmane.emacs.pretest.bugs:24280 Archived-At: 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