all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs C/C++ comments
@ 2005-10-28  9:32 Drosos Kourounis
  0 siblings, 0 replies; 2+ messages in thread
From: Drosos Kourounis @ 2005-10-28  9:32 UTC (permalink / raw)


Dear Developers,
thank you very much for developing emacs for all of us.
There is a minor problems with emacs commenting out.
When for instance one uses the following symbol for comments
//
then everything is fine! Unfortunately this is not what happens
when one want's to use for convenience the C style of comments
/*
*/

Two "bad" things happen then!
1) Comments do take some time to change color
2) The commented part of the code itself may or
     may not change its color in a big part of it depending
    how big the part of the code which is commented out is!

I am sure that you have encountered this problems yourselfs!
Is there any work out?

Thanks in advance!
Drosos.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs C/C++ comments
       [not found] <mailman.13048.1130491957.20277.bug-gnu-emacs@gnu.org>
@ 2005-10-31  8:43 ` Heike C. Zimmerer
  0 siblings, 0 replies; 2+ messages in thread
From: Heike C. Zimmerer @ 2005-10-31  8:43 UTC (permalink / raw)


Drosos Kourounis <kourouni@wias-berlin.de> writes:

> When for instance one uses the following symbol for comments
> //
> then everything is fine! Unfortunately this is not what happens
> when one want's to use for convenience the C style of comments
> /*
> */
>
> Two "bad" things happen then!
> 1) Comments do take some time to change color

Emacs doesn't recalculate the coloring of the entire buffer
immediately after each key stroke for obvious reasons.

> 2) The commented part of the code itself may or
>     may not change its color in a big part of it depending
>    how big the part of the code which is commented out is!

Not sure if this is an Emacs problem.  You are aware that C comments
don't nest?  Using #if[def] ... #endif clauses if you want to deactivate
longer parts of your code is the preferred method.


-hcz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-31  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28  9:32 emacs C/C++ comments Drosos Kourounis
     [not found] <mailman.13048.1130491957.20277.bug-gnu-emacs@gnu.org>
2005-10-31  8:43 ` Heike C. Zimmerer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.