GNU bug report logs - #4192
23.1; special fontification for "//" in cc-mode

Previous Next

Packages: cc-mode, emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Thu, 20 Aug 2009 20:06:04 UTC

Severity: wishlist

Tags: patch

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#4192: closed (23.1; special fontification for "//" in cc-mode)
Date: Sat, 09 Nov 2019 12:21:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 9 Nov 2019 12:20:11 +0000
with message-id <20191109122011.GA5546 <at> ACM>
and subject line Re: bug#4192: 23.1; special fontification for "//" in cc-mode
has caused the debbugs.gnu.org bug report #4192,
regarding 23.1; special fontification for "//" in cc-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
4192: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4192
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tom Tromey <tromey <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; special fontification for "//" in cc-mode
Date: Tue, 18 Aug 2009 10:24:02 -0600
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


This is a feature request for cc-mode.

I work on a number of projects that use C89, not C99.  In these
projects, it is invalid to use "//"-style comment.  It would be nice if
cc-mode would optionally flag such comments in a special face, so that I
can immediately see when I've written a comment incorrectly.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)
 of 2009-08-03 on x86-5.fedora.phx.redhat.com
Windowing system distributor `The X.Org Foundation', version 11.0.10601901
configured using `configure  '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables''

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: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  highlight-changes-visible-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
e a t u r e s , SPC b u t SPC i t SPC d i d SPC b r 
e a k SPC w 3 m - e l SPC f o r SPC m e SPC : ( <return> 
n o SPC m o r e SPC h t m l SPC m a i l SPC f o r SPC 
a SPC w h i l e <return> <switch-frame> <switch-frame> 
m a y b e SPC t h a t SPC i s SPC a SPC p l u s SPC 
<return> <f10> <f10> <f10> M-v M-> <f10> C-z o C-x 
b P <return> C-x k <return> C-x b L <tab> <return> 
C-v C-v M-v M-v M-v C-z o <f10> <f10> <f10> <f10> C-h 
i d m c c <tab> SPC m <tab> <return> C-v C-l m o d 
<tab> <return> l C-v C-s c o m m e n t C-a m <return> 
C-v C-s C-s C-v M-> C-s C-s C-s C-s C-s C-s C-s C-a 
C-v M-> C-s C-s C-s C-s C-a n n n n C-s C-s C-a SPC 
n u n n p 1 u SPC SPC SPC SPC SPC SPC p SPC n SPC n 
n u n SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC 
<backspace> n SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC 
SPC n SPC SPC SPC SPC SPC SPC n n n n n n C-s / / C-a 
C-v n C-s C-s C-a n n t C-s / / C-s C-s C-s C-s C-s 
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a 
q C-z o M-x r e p r o t - e C-u C-b C-b C-f C-t C-e 
m <tab> <return>

Recent messages:
call-interactively: End of buffer
Mark set
Mark saved where search started
Mark set
Mark saved where search started
Info-extract-pointer: Node has no Next [2 times]
Searching subfile ccmode-2...
uncompressing ccmode-2.gz...done
uncompressing ccmode-1.gz...done
Mark saved where search started

Tom


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 4192-done <at> debbugs.gnu.org, tom <at> tromey.com
Subject: Re: bug#4192: 23.1; special fontification for "//" in cc-mode
Date: Sat, 9 Nov 2019 12:20:11 +0000
Hello, Lars.

On Thu, Nov 07, 2019 at 21:11:14 +0100, Lars Ingebrigtsen wrote:
> Alan Mackenzie <acm <at> muc.de> writes:

> > Would you (and anybody else) please review the following patch.  Short
> > instructions on how to enable the feature are in the NEWS alteration;
> > longer ones are in the cc-mode.texi bit:

> Looks nice.

Thanks for the review.

> The only confusing thing is that the `C-c C-k' doesn't immediately
> flush the fontifying, so there's no feedback until you start typing.
> It'd be nice if `C-c C-k' immediately fontified the "wrong" comment
> style.

Yes.  You're right.  I've amended the code so that this toggling of the
fontification of the "wrong" comments is now done instantly.

I've committed the change (including the amendments to the NEWS and
cc-mode.texi hunks requested by Eli), and I'm closing the bug with this
post.

> -- 
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no

-- 
Alan Mackenzie (Nuremberg, Germany).


This bug report was last modified 5 years and 194 days ago.

Previous Next


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