From: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
To: bug-gnu-emacs@gnu.org
Cc: maechler@stat.math.ethz.ch
Subject: font lock problem in C mode
Date: Fri, 15 Jun 2007 18:26:27 +0100 [thread overview]
Message-ID: <E1HzFZ5-0005gT-Ts@deldel.damtp.cam.ac.uk> (raw)
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:
<right> C-e <left> C-d C-x u C-x C-s M-x r e p o r
t SPC e m SPC b SPC <return>
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
next reply other threads:[~2007-06-15 17:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-15 17:26 Stephen Eglen [this message]
2007-06-15 20:27 ` font lock problem in C mode martin rudalics
2007-06-15 20:56 ` Jason Rumney
2007-06-16 9:37 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1HzFZ5-0005gT-Ts@deldel.damtp.cam.ac.uk \
--to=s.j.eglen@damtp.cam.ac.uk \
--cc=bug-gnu-emacs@gnu.org \
--cc=maechler@stat.math.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).