From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kris Jenkins Newsgroups: gmane.emacs.help Subject: Re: SMIE & transpose-sexps Date: Fri, 28 Feb 2014 04:11:44 -0800 (PST) Message-ID: <351f06ff-2925-45ab-a820-06b8855bb928@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1393589711 11491 80.91.229.3 (28 Feb 2014 12:15:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2014 12:15:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 28 13:15:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1WJMLX-000441-Fy for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 13:15:19 +0100 Original-Received: from localhost ([::1]:50672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJMLX-0001kW-0n for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 07:15:19 -0500 X-Received: by 10.68.223.202 with SMTP id qw10mr1071012pbc.6.1393589505328; Fri, 28 Feb 2014 04:11:45 -0800 (PST) X-Received: by 10.183.1.40 with SMTP id bd8mr112111obd.11.1393589504935; Fri, 28 Feb 2014 04:11:44 -0800 (PST) Original-Path: usenet.stanford.edu!uq10no3014483igb.0!news-out.google.com!gi6ni3igc.0!nntp.google.com!uq10no3014472igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.97.9.228; posting-account=3M1tPgoAAAD0Bu3sbPetWcMZf2qHID27 Original-NNTP-Posting-Host: 93.97.9.228 User-Agent: G2/1.0 Injection-Date: Fri, 28 Feb 2014 12:11:45 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203952 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96220 Archived-At: On Friday, 28 February 2014 02:30:27 UTC, Stefan Monnier wrote: > > And that this would be both jolly useful in itself, and proof that I'd > > > set up the parsing rules correctly. But it doesn't work, and I have > > > no idea why. > > > > It usually works for the "=" case but not for the AND case. > > > > The reason is that transpose-sexps doesn't actually know about SMIE > > tokens, so when it sees AND it has no idea it's an infix operator, > > instead it uses the syntax-tables and thinks AND is an identifier. > > For infix operators which are made of symbols (i.e. chars of > > "punctuation" syntax), it happens to do the right thing, which is > > neat indeed. > > > > > > Stefan Aha, I see. Thanks for explaining. :-) So...is there any other way to see SMIE's idea of the syntax tree for a given buffer, for debugging? Cheers, Kris