GNU bug report logs - #17761
24.3.91; smie-for-sexp and parentheses of-by-one bug?

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Thu, 12 Jun 2014 12:00:03 UTC

Severity: normal

Found in version 24.3.91

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 17761 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 17761 <at> debbugs.gnu.org
Subject: Re: bug#17761: 24.3.91; smie-for-sexp and parentheses of-by-one bug?
Date: Fri, 13 Jun 2014 11:33:44 -0400
> 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




This bug report was last modified 10 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.