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: Thu, 30 Jun 2011 12:11:16 -0400 Message-ID: References: <87mxhgl44t.fsf@lifelogs.com> <87r56oz146.fsf@lifelogs.com> <87fwn3oujj.fsf@lifelogs.com> <874o3hftlb.fsf@lifelogs.com> <87sjr0z145.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309455445 27200 80.91.229.12 (30 Jun 2011 17:37:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 17:37:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 19:37:21 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 1QcLB3-00024I-AF for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 19:37:21 +0200 Original-Received: from localhost ([::1]:46787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcLB2-0002xH-Bi for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 13:37:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcJpr-0004MT-SL for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:11:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcJpp-0002YS-Bi for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:11:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:58389 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcJpp-0002YH-3R for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:11:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMHAMyeDE5MCqDH/2dsb2JhbABJCZhmjm94iHi/dIMqgwcEnk6EKw X-IronPort-AV: E=Sophos;i="4.65,450,1304308800"; d="scan'208";a="117740434" Original-Received: from 76-10-160-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.199]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2011 12:11:19 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8E1235912D; Thu, 30 Jun 2011 12:11:16 -0400 (EDT) In-Reply-To: <87sjr0z145.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 23 Jun 2011 16:31:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 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:141252 Archived-At: > As it is, except for highlighting string interpolation, it's great for > everyday work. So I want to know if there's any reason to pursue > SMIE--what more can it do for this mode--and if there are any other > comments on the code. If not, I'll remove the unnecessary parts, commit > it, and make a note in cfengine.el about the newer version. I don't have time to look further into it. The strength of SMIE is that it structures the indentation code in a way that makes it fairly robust (in terms of indentation when the style is unusual, such as newlines placed at unexpected places) once it works and also that the most difficult part is the parsing, but that this then can be used for more than indentation (e.g. for structural navigation, for blink-matching, hopefully in the future it will also be used for alignment (in the sense of M-x align)). But SMIE is far from perfect and is not meant to be "the one and only way to do it", so if it doesn't work for you, don't use it. Stefan