From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: C Mode: acceleration in brace deserts. Date: Fri, 4 Dec 2009 13:03:28 +0100 Message-ID: References: <20091203162129.GA1942@muc.de> <20091203165937.GB1942@muc.de> <20091203193918.GC1942@muc.de> <20091204115605.GB1456@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259928265 31741 80.91.229.12 (4 Dec 2009 12:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2009 12:04:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 04 13:04:03 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 1NGWtH-0003dF-5c for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2009 13:04:03 +0100 Original-Received: from localhost ([127.0.0.1]:58024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGWtG-0002hn-QD for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2009 07:04:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGWt9-0002ha-QW for emacs-devel@gnu.org; Fri, 04 Dec 2009 07:03:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGWt5-0002fF-Lp for emacs-devel@gnu.org; Fri, 04 Dec 2009 07:03:55 -0500 Original-Received: from [199.232.76.173] (port=43290 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGWt5-0002f6-G7 for emacs-devel@gnu.org; Fri, 04 Dec 2009 07:03:51 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:44485) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGWt4-000753-AO for emacs-devel@gnu.org; Fri, 04 Dec 2009 07:03:50 -0500 Original-Received: by yxe29 with SMTP id 29so5889135yxe.14 for ; Fri, 04 Dec 2009 04:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KdKRPMNccOAzTEl7sf50a0rZWQpSOKRvcjN+uv4RbIY=; b=cPI0hVVSpISfsd0kbMuX0qcOII2uNcs49E2CPBwI+qJ1iv7f54f70GD44tQJDQ6EWj /ZDlGfZ/70jj8SgvtUq/kkAaavWVpIIA5EuEedLK20Z/0vZQ9Vuinr2QLGS8HQHk3o5o cH16yKCXvWPMkLOBMTPgxBmm7QKjB24dMSVz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=S19WR9Qp9klIcd48atMNF8WPMpLBLjxJfK2pwfxHxIuarriDSzjKhqg917CG9jYURs NVsRNSS5SWpWyB1kjHrRIv2GKywuBqjzUsLUAH9QUNpmdNyyz599pMFGuQgQG1Vsqg1m zT60hLgJFMg//EyCe6yfPnG0HthyhoYLaqhsc= Original-Received: by 10.101.205.23 with SMTP id h23mr3573641anq.34.1259928228099; Fri, 04 Dec 2009 04:03:48 -0800 (PST) In-Reply-To: <20091204115605.GB1456@muc.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:118249 Archived-At: On Fri, Dec 4, 2009 at 12:56 PM, Alan Mackenzie wrote: > On Fri, Dec 04, 2009 at 12:03:27PM +0100, Lennart Borgman wrote: >> On Fri, Dec 4, 2009 at 11:34 AM, Lennart Borgman > >> Just a question I forgot: Why are you not using syntax-ppss here >> [keeping track of comments/strings in c-parse-state's supporting >> functions]? =C2=A0Are you not looking for the same thing (ie inside comm= ent >> or string). > > I think at the time I did it, it was just less work to write it from > scratch. =C2=A0syntax-ppss isn't a well encapsulated system, and it almos= t > requires its users to read its source code to see exactly what it does. > Also, c-parse-state (in effect) changes the syntax table in use by > setting category properties. =C2=A0At the time, I was considering actuall= y > changing the syntax table (for reasons I'm not entirely clear about any > more). =C2=A0Does syntax-ppss exist in XEmacs, and if so, since when? =C2= =A0Some of > syntax-ppss's supporting infrastructure only came into existence after > syntax-ppss itself. > >> If you did it that way then it would already be supported by MuMaMo. > > Ah. =C2=A0That sounds like a good reason to change my new code to use > syntax-ppss. =C2=A0:-( =C2=A0But not before the first pretest release nex= t week. Thanks. ;-) Would it be enough to change c-state-literal-at? Perhaps you could send me a new version of that so I could test it in that case. I could just defadvice c-state-literal-at.