From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nikolai Weibull <now@disu.se>
Cc: Emacs Users <help-gnu-emacs@gnu.org>
Subject: Re: Using smie for Relax NG compact syntax
Date: Wed, 11 Feb 2015 10:54:28 -0500 [thread overview]
Message-ID: <jwvlhk4bg6g.fsf-monnier+INBOX@gnu.org> (raw)
In-Reply-To: <CADdV=MtJBbBUvKMNbb_dTX+Q3QUGzg_QHdHkw0qBFUi_nNd=HA@mail.gmail.com> (Nikolai Weibull's message of "Wed, 11 Feb 2015 08:55:04 +0100")
> Yeah, sorry. Here’s the whole rnc-mode.el. The backtrace doesn’t
> 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
prev parent reply other threads:[~2015-02-11 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 15:49 Using smie for Relax NG compact syntax Nikolai Weibull
2015-02-09 16:56 ` Stefan Monnier
2015-02-10 7:17 ` Nikolai Weibull
2015-02-10 20:13 ` Stefan Monnier
2015-02-11 7:55 ` Nikolai Weibull
2015-02-11 15:54 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlhk4bg6g.fsf-monnier+INBOX@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
--cc=now@disu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).