]> git.eshelyaron.com Git - emacs.git/commit
Amend the handling of c-laomib-cache.
authorAlan Mackenzie <acm@muc.de>
Tue, 27 Jun 2023 20:11:48 +0000 (20:11 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 27 Jun 2023 20:11:48 +0000 (20:11 +0000)
commitbe437883c6d85f3ff2eddd4359bbfb9230c92910
treef86ceb719bd6a34537dcb873b22bb0e647de5df6
parentcf4ccc58284de50959ea66b1cd2655ab2fa4d15b
Amend the handling of c-laomib-cache.

There was unstable syntactic analysis of lines which were brace
lists.  This fixes bug#64133.

* lisp/progmodes/cc-engine.el (c-laomib-cache): Allow several
entries with the same LIM element corresponding to distinct
scanning regions.
(c-laomib-get-cache): Add new parameter START.  Adjust to be
able to have entries with the same LIM element and handle them
correctly.
(c-laomib-put-cache): Amend the handling of cache entries with
the same LIM element.
(c-looking-at-or-maybe-in-bracelist): Supply the needed new
argument to c-laomib-get-cache.  Add in a new call to
c-laomib-put-cache.
lisp/progmodes/cc-engine.el