]> git.eshelyaron.com Git - emacs.git/commit
* lisp/cedet/semantic/wisent: Use lexical-binding
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 7 Mar 2021 06:58:16 +0000 (01:58 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 7 Mar 2021 06:58:16 +0000 (01:58 -0500)
commit468bb5ab7f949441f68c4133fcd5292dfbbfd83d
tree865d0697dc016cda1cfaf7b267fe6ddd7780e55d
parent856a0a913a1932e1bad8e44d34944ce7504b23ff
* lisp/cedet/semantic/wisent: Use lexical-binding

* lisp/cedet/semantic/wisent/comp.el: lexical-binding.
(wisent-defcontext): Make sure the vars are also dynbound in the files
that `require` us.
(wisent-state-actions, wisent-automaton-lisp-form): Use `obarray-make`.
(wisent--compile-grammar): Rename from `wisent-compile-grammar`.
(wisent-compile-grammar): Redefine as an obsolete function.
(wisent-automaton-lisp-form): Avoid variable `state`.

* lisp/cedet/semantic/grammar.el: Use lexical-binding.
(semantic-grammar-require-form): New var.
(semantic-grammar-header): Use it to provide new element `require-form`.
(semantic-grammar-header-template): Use it.

* lisp/cedet/semantic/wisent.el (wisent-compiled-grammar): New macro.

* lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-parsetable-builder):
Use it in the generated code instead of the `wisent-compile-grammar` function.
(wisent-grammar-mode): Set `semantic-grammar-require-form` so
the generated ELisp files require `semantic/wisent` rather than
`semantic/bovine`.

* lisp/cedet/semantic/wisent/wisent.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/java-tags.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/python.el: Use lexical-binding.
* lisp/cedet/semantic/wisent/javascript.el: Use lexical-binding.
(semantic-ctxt-current-symbol): Remove unused var `symlist`.

* admin/grammars/python.wy (wisent-python-EXPANDING-block):
Declare dynbound var.

* lisp/cedet/semantic/grammar-wy.el: Regenerate.
admin/grammars/grammar.wy
admin/grammars/python.wy
lisp/cedet/semantic/grammar-wy.el
lisp/cedet/semantic/grammar.el
lisp/cedet/semantic/wisent.el
lisp/cedet/semantic/wisent/comp.el
lisp/cedet/semantic/wisent/grammar.el
lisp/cedet/semantic/wisent/java-tags.el
lisp/cedet/semantic/wisent/javascript.el
lisp/cedet/semantic/wisent/python.el
lisp/cedet/semantic/wisent/wisent.el