From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Eglen Newsgroups: gmane.emacs.bugs Subject: font lock problem in C mode Date: Fri, 15 Jun 2007 18:26:27 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1181937109 30214 80.91.229.12 (15 Jun 2007 19:51:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 19:51:49 +0000 (UTC) Cc: maechler@stat.math.ethz.ch To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 21:51:47 2007 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 1HzHpi-0006RV-RH for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 21:51:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzHpi-0003s2-ES for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jun 2007 15:51:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzFZP-0008LC-DV for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 13:26:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzFZO-0008Kz-EJ for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 13:26:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzFZO-0008Kw-9U for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 13:26:46 -0400 Original-Received: from ppsw-4.csi.cam.ac.uk ([131.111.8.134]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzFZN-0004D7-Ud for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2007 13:26:46 -0400 X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smtp.damtp.cam.ac.uk ([131.111.18.84]:35892 helo=medulla.damtp.cam.ac.uk) by ppsw-4.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.134]:25) with esmtp id 1HzFZ6-0005Wb-Dc (Exim 4.63) for bug-gnu-emacs@gnu.org (return-path ); Fri, 15 Jun 2007 18:26:28 +0100 Original-Received: from deldel.damtp.cam.ac.uk ([131.111.17.94] ident=exim) by medulla.damtp.cam.ac.uk with esmtp (Exim 4.32) id 1HzFZ6-0000j0-0t; Fri, 15 Jun 2007 18:26:28 +0100 Original-Received: from sje30 by deldel.damtp.cam.ac.uk with local (Exim 4.63) (envelope-from ) id 1HzFZ5-0005gT-Ts; Fri, 15 Jun 2007 18:26:27 +0100 X-detected-kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Fri, 15 Jun 2007 15:51:44 -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:15891 Archived-At: Put the following C comment into a file, called e.g. "s.c" /** * Simple comment. */ and then do: $emacs -q s2.c The comment is fontified as a "string", rather than a "comment". If I delete the 2nd asterisk on the first line, the font switches correctly to be fontified as a comment. Stephen In GNU Emacs 22.1.1 (i686-pc-linux-gnu, X toolkit) of 2007-06-03 on notch.damtp.cam.ac.uk Windowing system distributor `The XFree86 Project, Inc', version 11.0.40300000 configured using `configure '--prefix=/home/raid/bio/sje30/NOBACKUP/local'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Major mode: C/l Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t Recent input: C-e C-d C-x u C-x C-s M-x r e p o r t SPC e m SPC b SPC Recent messages: ("emacs" "-q" "s2.c") For information about the GNU Project and its goals, type C-h C-p. Loading cc-mode...done For information about the GNU Project and its goals, type C-h C-p. Undo! (No changes need to be saved) Loading emacsbug...done