]> git.eshelyaron.com Git - emacs.git/commit
* lisp/cedet/semantic/bovine.el: Fix recent regression
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Mar 2021 00:03:36 +0000 (19:03 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Mar 2021 00:03:36 +0000 (19:03 -0500)
commit26bfd0cdcf8bdf4569608227c527bebd755ef2e6
treeb1ff4c4de4733de3f1d7c43212bc868c931c87c9
parent251dea693a4e5d1c33257ab3402734a8067049ec
* lisp/cedet/semantic/bovine.el: Fix recent regression

The conversion to `lexical-binding` introduced a regression because
`bovine/c.el` relied on inspecting the local variable `lse` in one of
its callers.

(semantic-bovinate-stream): Bind `lse` dynamically, because of
`semantic-parse-region-c-mode`.
(semantic-bovinate-nonterminal-check-map): Rename from
`semantic-bovinate-nonterminal-check-obarray` to hold some other kind
of table.
(semantic-bovinate-nonterminal-check): Use a hash-table instead of an obarray.

* lisp/cedet/semantic/bovine/c.el (semantic-parse-region-c-mode):
Declare use of `lse` via dynamic scoping.

* test/lisp/cedet/semantic-utest-c.el
(semantic-test-c-preprocessor-simulation): Re-enable test.
lisp/cedet/semantic/bovine.el
lisp/cedet/semantic/bovine/c.el
test/lisp/cedet/semantic-utest-c.el