From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: asking for advice for changing the cfengine.el progmode to support CFEngine 3.x Date: Fri, 17 Jun 2011 18:02:32 -0400 Message-ID: References: <87mxhgl44t.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308348323 16068 80.91.229.12 (17 Jun 2011 22:05:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 22:05:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 00:05:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QXhAF-00041E-6O for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 00:05:19 +0200 Original-Received: from localhost ([::1]:50587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXhAE-0007jS-Cr for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2011 18:05:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXh7d-0007CK-3e for emacs-devel@gnu.org; Fri, 17 Jun 2011 18:02:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXh7a-0005US-Eq for emacs-devel@gnu.org; Fri, 17 Jun 2011 18:02:35 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:55289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXh7a-0005UH-3W for emacs-devel@gnu.org; Fri, 17 Jun 2011 18:02:34 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p5HM2WEf002882; Fri, 17 Jun 2011 18:02:32 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4ACE613004F; Fri, 17 Jun 2011 18:02:32 -0400 (EDT) In-Reply-To: <87mxhgl44t.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 17 Jun 2011 13:11:30 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3891=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3891> : streams <651634> : uri <896062> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140637 Archived-At: > 1) (body|bundle).+ sets the indentation to 0 I'd recommend you try the new SMIE thingy (me? biased?). The syntax you show doesn't seem like a perfect fit, but neither does it seem obviously difficult to accomodate. Grep for smie-setup to see some example uses (2 uses in trunk right now. There is another one in an earlier version of prolog.el, plus one in ProofGeneral's coq.el, and I have experimental ones for sh-script, SML, and Pascal, if you're interested). There is also documentation in the Elisp manual. Stefan