bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17761: 24.3.91; smie-for-sexp and parentheses of-by-one bug?


From: Stefan Monnier
Subject: bug#17761: 24.3.91; smie-for-sexp and parentheses of-by-one bug?
Date: Fri, 13 Jun 2014 11:33:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> 1. Open a buffer in octave mode and insert ( ) with point between the
>    parentheses
> 2. Eval (smie-forward-sexp) which should give back something like
>    (t 2 ")")
> POS is before the token ")" instead of the end position of the token. Is
> this a bug?

Indeed, thanks.  I installed a patch into `emacs-24' which should
fix this.  As you can see, SMIE is mostly used to parse backward!

> BTW, although smie-config-guess's return value is not documented, it
> seems no harm to do something like the following:

Using its return value is an error, so I'd rather not encourage this error.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]