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: smie-next-sexp vs associative operators Date: Sun, 14 Oct 2012 11:54:32 -0400 Message-ID: References: <85lif9e7m8.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350230078 11657 80.91.229.3 (14 Oct 2012 15:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 15:54:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 14 17:54:45 2012 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 1TNQWa-00058G-2e for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2012 17:54:44 +0200 Original-Received: from localhost ([::1]:56376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNQWT-0005Fi-Fd for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2012 11:54:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNQWQ-0005FR-Q6 for emacs-devel@gnu.org; Sun, 14 Oct 2012 11:54:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNQWP-0004A6-Up for emacs-devel@gnu.org; Sun, 14 Oct 2012 11:54:34 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:5659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNQWP-0004A2-Qf for emacs-devel@gnu.org; Sun, 14 Oct 2012 11:54:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu0/O+LCG/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="201559184" Original-Received: from 206-248-176-134.dsl.teksavvy.com (HELO pastel.home) ([206.248.176.134]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Oct 2012 11:54:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6778359116; Sun, 14 Oct 2012 11:54:32 -0400 (EDT) In-Reply-To: <85lif9e7m8.fsf@member.fsf.org> (Stephen Leake's message of "Sun, 14 Oct 2012 05:16:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:154330 Archived-At: > I'm indenting "accept LILLY". It should be indented relative to > "select". That's odd. I'd expect it to be indented relative to "or". To put it more strongly: you should really try to indent relative to "or" and if you bump into trouble while doing that, then come back here for help ;-) > However, this stops with point on "accept SILLY", not accept. ^^^^^^ I presume you meant "select". > But this is exactly like the "elsif" case the comments are talking > about, so I think the code is broken. The comment is imprecise, it's meant for "if ... elsif ... end" where the BNF said ("if" ... "elsif" ... "end") rather than ("if" ... list-of-elseif ... "end") and then list-of-elseif defined as (list-of-elseif "elsif" list-of-elseif). I should fix it, thank you for pointing it out. I.e. this rule is to avoid stopping at "elsif" when scanning from "if" to "end" or from "end" to "if". It will still stop when scanning from an "elsif" and bumping into another "elsif". Stefan