From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Using smie for Relax NG compact syntax Date: Wed, 11 Feb 2015 10:54:28 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423670131 14170 80.91.229.3 (11 Feb 2015 15:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 15:55:31 +0000 (UTC) Cc: Emacs Users To: Nikolai Weibull Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 16:55:18 2015 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 1YLZdF-0002mk-Dl for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2015 16:55:17 +0100 Original-Received: from localhost ([::1]:45671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZdF-0003dN-1D for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2015 10:55:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZcx-0003Vy-RH for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 10:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLZcu-0000aZ-EL for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 10:54:59 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:42692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLZcu-0000a5-2u for help-gnu-emacs@gnu.org; Wed, 11 Feb 2015 10:54:56 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id B4A2185E98; Wed, 11 Feb 2015 10:54:54 -0500 (EST) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id BC1511E5B8B; Wed, 11 Feb 2015 10:54:28 -0500 (EST) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 9B91BB4102; Wed, 11 Feb 2015 10:54:28 -0500 (EST) In-Reply-To: (Nikolai Weibull's message of "Wed, 11 Feb 2015 08:55:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:102640 Archived-At: > Yeah, sorry. Here=E2=80=99s the whole rnc-mode.el. The backtrace doesn= =E2=80=99t > seem to tell us much (parts of the backtrace that only involve > invoking eval-buffer have been elided): Looks like a bug in smie.el, which should disappear when you grow your grammar. You can remove the (cl-assert (numberp (car cons))) in smie.el to work around the problem, or more simply add some dummy thing in `id', such as: (defconst rnc-mode-smie-grammar (smie-prec2->grammar (smie-bnf->prec2 '((id ("(" id ")")) (pattern ("element" id) ("empty")))))) -- Stefan