Try and remove some of SMIE's black magic by generalizing some rules.
commit8723cfa464656bd17dbae6c7ef5c11539603ce55
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Aug 2010 10:57:48 +0000 (18 12:57 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 18 Aug 2010 10:57:48 +0000 (18 12:57 +0200)
tree03caeefd8cd9793b995dcc9c8dc32981904ffd17
parent0193499fe1b0666b73bdd4a4e628e0af065ea42f
Try and remove some of SMIE's black magic by generalizing some rules.
* lisp/emacs-lisp/smie.el (smie-default-backward-token)
(smie-default-forward-token): Strip properties.
(smie-next-sexp): Be more careful with associative operators.
(smie-forward-sexp-command): Generalize.
(smie-backward-sexp-command): Simplify.
(smie-closer-alist): New var.
(smie-close-block): New command.
(smie-indent-debug-log): New var.
(smie-indent-offset-rule): Add a few more cases.
(smie-indent-column): New function.
(smie-indent-after-keyword): Use it.
(smie-indent-keyword): Use it.
Fix up the opener code's point position.
(smie-indent-comment): Only applies at BOL.
(smie-indent-debug): New command.
lisp/ChangeLog
lisp/emacs-lisp/smie.el