From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov 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 13:28:20 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwmrtbqz.fsf@lifelogs.com> References: <87mxhgl44t.fsf@lifelogs.com> <87r56oz146.fsf@lifelogs.com> <87fwn3oujj.fsf@lifelogs.com> <874o3hftlb.fsf@lifelogs.com> <87sjr0z145.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309464242 19609 80.91.229.12 (30 Jun 2011 20:04:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 20:04:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 22:03:58 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 1QcNSu-00057n-Hw for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 22:03:56 +0200 Original-Received: from localhost ([::1]:35922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcNSt-00017L-N8 for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 16:03:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcLye-0000av-Th for emacs-devel@gnu.org; Thu, 30 Jun 2011 14:28:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcLyd-0007Jf-5h for emacs-devel@gnu.org; Thu, 30 Jun 2011 14:28:36 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:59290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcLyc-0007JT-MS for emacs-devel@gnu.org; Thu, 30 Jun 2011 14:28:35 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QcLya-0000nP-8R for emacs-devel@gnu.org; Thu, 30 Jun 2011 20:28:32 +0200 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 20:28:32 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 20:28:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:VFgPA655Q7WEyLhi/kWn0MZQd3I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:141273 Archived-At: On Thu, 30 Jun 2011 12:11:16 -0400 Stefan Monnier wrote: >> 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. SM> I don't have time to look further into it. The strength of SMIE is that SM> it structures the indentation code in a way that makes it fairly robust SM> (in terms of indentation when the style is unusual, such as newlines SM> placed at unexpected places) once it works and also that the most SM> difficult part is the parsing, but that this then can be used for more SM> than indentation (e.g. for structural navigation, for blink-matching, SM> hopefully in the future it will also be used for alignment (in the SM> sense of M-x align)). Well, that's why I did the work of extracting the full cfengine 3.x grammar, so you could see if SMIE made sense or a standard parser was better. But it really seems like modifying the standard syntax tables plus a little bit of indentation logic works OK without SMIE, so I was asking what else would I get if I put the extra work into writing a SMIE grammar. SM> But SMIE is far from perfect and is not meant to be "the one and SM> only way to do it", so if it doesn't work for you, don't use it. I want to learn it and use it. It's just not easy, so please have patience. I'm learning OPGs from scratch. Ted