From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: smie-next-sexp vs associative operators Date: Sun, 21 Oct 2012 10:58:53 -0400 Message-ID: <85hapnhnwy.fsf@member.fsf.org> References: <85lif9e7m8.fsf@member.fsf.org> <851uh0x59u.fsf@stephe-leake.org> <85ehktijxl.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350831539 20521 80.91.229.3 (21 Oct 2012 14:58:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2012 14:58:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 21 16:59:07 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 1TPwzb-0008Op-20 for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2012 16:59:07 +0200 Original-Received: from localhost ([::1]:58073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPwzT-0003UR-Q2 for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2012 10:58:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPwzQ-0003UA-Of for emacs-devel@gnu.org; Sun, 21 Oct 2012 10:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPwzP-0005vv-SH for emacs-devel@gnu.org; Sun, 21 Oct 2012 10:58:56 -0400 Original-Received: from qmta05.westchester.pa.mail.comcast.net ([76.96.62.48]:50682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPwzP-0005u7-OS for emacs-devel@gnu.org; Sun, 21 Oct 2012 10:58:55 -0400 Original-Received: from omta10.westchester.pa.mail.comcast.net ([76.96.62.28]) by qmta05.westchester.pa.mail.comcast.net with comcast id Dpxm1k0050cZkys55qyzk2; Sun, 21 Oct 2012 14:58:59 +0000 Original-Received: from TAKVER ([69.140.67.196]) by omta10.westchester.pa.mail.comcast.net with comcast id Dqyr1k00Q4E4Fsd3WqyrAJ; Sun, 21 Oct 2012 14:58:52 +0000 In-Reply-To: <85ehktijxl.fsf@stephe-leake.org> (Stephen Leake's message of "Sat, 20 Oct 2012 05:15:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.62.48 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:154470 Archived-At: Stephen Leake writes: > I've verified that the patch shown below allows me to make > smie-backward-sexp behave the same for the Ada "select/or" and > "if/elsif" statements. I just encountered another case where I need smie-skip-associative t: declare begin exception end; "exception" is optional. With smie-skip-associative nil, (smie-backward-sexp "exception") stops with point after "begin". But (smie-backward-sexp "end") stops with point before "declare". That's not consistent, so it complicates my code, meaning more time spent testing. With smie-skip-associative t, (smie-backward-sexp "exception") stops with point before "declare", simplifying the code. -- -- Stephe