From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dino chiesa Newsgroups: gmane.emacs.devel Subject: RE: first-class support for csharp in cc-mode.el Date: Wed, 30 Dec 2009 13:03:12 -0800 Message-ID: References: , , <20091230210100.GB2247@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262207016 21121 80.91.229.12 (30 Dec 2009 21:03:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 21:03:36 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Alan MacKenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 22:03:28 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQ5hY-0005s0-8d for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 22:03:28 +0100 Original-Received: from localhost ([127.0.0.1]:37559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ5hT-0000pG-RA for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 16:03:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ5hP-0000of-0a for emacs-devel@gnu.org; Wed, 30 Dec 2009 16:03:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ5hK-0000n1-5l for emacs-devel@gnu.org; Wed, 30 Dec 2009 16:03:18 -0500 Original-Received: from [199.232.76.173] (port=60197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ5hJ-0000my-Ve for emacs-devel@gnu.org; Wed, 30 Dec 2009 16:03:14 -0500 Original-Received: from col0-omc3-s5.col0.hotmail.com ([65.55.34.143]:31750) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQ5hJ-0002Ip-Hd for emacs-devel@gnu.org; Wed, 30 Dec 2009 16:03:13 -0500 Original-Received: from COL124-W41 ([65.55.34.135]) by col0-omc3-s5.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Dec 2009 13:03:12 -0800 X-Originating-IP: [96.236.193.50] Importance: Normal In-Reply-To: <20091230210100.GB2247@muc.de> X-OriginalArrivalTime: 30 Dec 2009 21:03:12.0549 (UTC) FILETIME=[7F7BAD50:01CA8993] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119074 Archived-At: Hello again Alan=2C and thanks for having a look at this. =20 =20 > > I've had a look at this. The two hooks you want are > c-get-state-before-change-function and c-before-font-lock-function=2C bot= h > of which are c-lang-defconsts. In the function you put in the first > hook=2C you should see whether or not you're about to disrupt the status = of > one or more @"......\" constructs. There'll be some cunning special > cases to check here. The function on the second hook will actually add > the text-property to the pertinent \=2C or possibly remove it. > Ok=2C I understand all that. I started working through the special cases a= nd yes=2C they are cunning. So far they are outsmarting me.=20 I also understand the c-before-font-lock-function and adding or removing te= xt properties. That should be easy once the state is understood.=20 =20 Question - Will adding and removing text properties allow parse-partial-sexp=2C c-in-l= iteral=2C and their friends to work "correctly"? Right now c-in-literal g= ets confused by doubled double-quotes. Will these problems just go away whe= n I get the text properties right? =20 =20 I haven't fully understood how text properties affect the rest of the cc en= gine.=20 Thanks again. =20 -Dino =20 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/=