From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Heike C. Zimmerer" Newsgroups: gmane.emacs.bugs Subject: Re: emacs C/C++ comments Date: Mon, 31 Oct 2005 09:43:00 +0100 Organization: Mostly Harmless Message-ID: <3sm4djFp2229U1@individual.net> References: Reply-To: hcz@hczim.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130749024 14075 80.91.229.2 (31 Oct 2005 08:57:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Oct 2005 08:57:04 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 31 09:57:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWVR8-0008CU-Oh for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Oct 2005 09:54:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWVR8-000592-2E for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Oct 2005 03:54:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWVQn-00051j-IL for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2005 03:54:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWVQm-00051L-Fr for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2005 03:54:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWVQm-00051I-3G for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2005 03:54:16 -0500 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EWVQm-0007UT-94 for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2005 03:54:16 -0500 Original-Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1EWVQi-0006CZ-00 for gnu-emacs-bug@moderators.isc.org; Mon, 31 Oct 2005 09:54:12 +0100 Original-Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost1.zedat.fu-berlin.de (Exim 4.53) for gnu-emacs-bug@moderators.isc.org with esmtp id <1EWVQi-0004io-Al>; Mon, 31 Oct 2005 09:54:12 +0100 Original-Received: from curry.zedat.fu-berlin.de ([130.133.1.2]) by relay1.zedat.fu-berlin.de (Exim 4.53) for gnu-emacs-bug@moderators.isc.org with esmtp id <1EWVQh-0004UN-Qe>; Mon, 31 Oct 2005 09:54:11 +0100 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Mon, 31 Oct 2005 09:54:11 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: individual.net!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 25 X-Orig-X-Trace: individual.net KjiFaP1akBwjxSZsO3LQdgHo+uZW9nSNA1dG+soRGrL8SjkBPK X-Face: +$`o2!VD7$b$rUd7L4Jw3(o>lDq0dxl46*lq4)+V_6\o=M*q%Ao]q\h0-'B6"M7`'=j<:NrVchw/+!H'Y#b+Z; Lu8[fLKkzAP8fO|lU@0z"+8bM[ipj.3; #q/?mL>Pl5MwAq^9(,c&s]UcZE1lJ6Y@=tt2w#/{o2[UQ46/g-?>|Ur9S}[z9N#0_S&lx{v; ryNs%zhAa3v- 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:13792 Archived-At: Drosos Kourounis 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