comparison lisp/ChangeLog @ 108797:d674108e8753

Provide hooks to use a different tokenizer in SMIE. * lisp/emacs-lisp/smie.el (smie-forward-token-function) (smie-backward-token-function): New vars. (smie-backward-sexp, smie-forward-sexp) (smie-indent-hanging-p, smie-indent-calculate): Use them. (smie-default-backward-token): Rename from smie-backward-token and skip comments. (smie-default-forward-token): Rename from smie-forward-token and skip comments. (smie-next-sexp): Handle nil results from next-token. (smie-indent-calculate): Add a new case for special `fixindent' comments.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 27 May 2010 00:41:36 -0400
parents 7a3558eb670e
children f1cd90ef7663
comparison
equal deleted inserted replaced
108796:7a3558eb670e 108797:d674108e8753
1 2010-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * emacs-lisp/smie.el (smie-forward-token-function)
4 (smie-backward-token-function): New vars.
5 (smie-backward-sexp, smie-forward-sexp)
6 (smie-indent-hanging-p, smie-indent-calculate): Use them.
7 (smie-default-backward-token): Rename from smie-backward-token and
8 skip comments.
9 (smie-default-forward-token): Rename from smie-forward-token and
10 skip comments.
11 (smie-next-sexp): Handle nil results from next-token.
12 (smie-indent-calculate): Add a new case for special `fixindent' comments.
13
1 2010-05-26 Stefan Monnier <monnier@iro.umontreal.ca> 14 2010-05-26 Stefan Monnier <monnier@iro.umontreal.ca>
2 15
3 * progmodes/ada-xref.el (ada-gnat-parse-gpr): 16 * progmodes/ada-xref.el (ada-gnat-parse-gpr):
4 * emulation/edt.el (edt-load-keys): Avoid (expand-file-name "."). 17 * emulation/edt.el (edt-load-keys): Avoid (expand-file-name ".").
5 18