comparison lisp/ChangeLog @ 108649:c9e786f54683

Fix handling of non-associative equal levels. * emacs-lisp/smie.el (smie-prec2-levels): Choose distinct levels even when it's not needed. (smie-op-left, smie-op-right): New functions. (smie-next-sexp): New function, extracted from smie-backward-sexp. Better handle equal levels to distinguish the associative case from the "multi-keyword construct" case. (smie-backward-sexp, smie-forward-sexp): Use it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 May 2010 12:03:51 -0400
parents f5b2fcb51f42
children 79ce86edba9f
comparison
equal deleted inserted replaced
108648:6d142dd06f97 108649:c9e786f54683
1 2010-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 Fix handling of non-associative equal levels.
4 * emacs-lisp/smie.el (smie-prec2-levels): Choose distinct levels even
5 when it's not needed.
6 (smie-op-left, smie-op-right): New functions.
7 (smie-next-sexp): New function, extracted from smie-backward-sexp.
8 Better handle equal levels to distinguish the associative case from
9 the "multi-keyword construct" case.
10 (smie-backward-sexp, smie-forward-sexp): Use it.
11
1 2010-05-18 Juanma Barranquero <lekktu@gmail.com> 12 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
2 13
3 * progmodes/prolog.el (smie-indent-basic): Declare for byte-compiler. 14 * progmodes/prolog.el (smie-indent-basic): Declare for byte-compiler.
4 15
5 * emacs-lisp/smie.el (smie-precs-precedence-table, smie-backward-sexp) 16 * emacs-lisp/smie.el (smie-precs-precedence-table, smie-backward-sexp)