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: syntax-propertize-function vs indentation lexer Date: Sat, 01 Jun 2013 10:31:02 -0400 Message-ID: References: <85mwrdbypv.fsf@member.fsf.org> <85bo7sbzhh.fsf@member.fsf.org> <85k3mf8uf0.fsf@member.fsf.org> <85obbq76hv.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370097074 11616 80.91.229.3 (1 Jun 2013 14:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Jun 2013 14:31:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 01 16:31:13 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uimpr-0002BG-JF for ged-emacs-devel@m.gmane.org; Sat, 01 Jun 2013 16:31:11 +0200 Original-Received: from localhost ([::1]:46720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uimpq-0005DU-Pj for ged-emacs-devel@m.gmane.org; Sat, 01 Jun 2013 10:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uimpm-0005DP-0F for emacs-devel@gnu.org; Sat, 01 Jun 2013 10:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uimpl-0007DQ-7n for emacs-devel@gnu.org; Sat, 01 Jun 2013 10:31:05 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uimpl-0007CO-4S for emacs-devel@gnu.org; Sat, 01 Jun 2013 10:31:05 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r51EV2Sa017153; Sat, 1 Jun 2013 10:31:02 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 3DF85AE1E3; Sat, 1 Jun 2013 10:31:02 -0400 (EDT) In-Reply-To: <85obbq76hv.fsf@member.fsf.org> (Stephen Leake's message of "Sat, 01 Jun 2013 01:19:24 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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 RV4596=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4596> : streams <972256> : uri <1436001> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:159968 Archived-At: >> Although, using it for indentation makes speed a real concern: >> in many cases one does "edit+reindent", so if you put a "full reparse" >> between the two, it needs to be about as fast as instantaneous. > That's how my current SMIE-based parser works, and it's "fast enough". Very interesting. > I'm working on replacing it with an LALR parser, because the resulting > code is much cleaner. Makes sense: if you're going to parse the whole buffer forward anyway, the limitations of SMIE don't make much sense: they're there specifically so you can parse backward on-the-fly instead of keeping a full-parse around. Stefan