]> git.eshelyaron.com Git - emacs.git/commit
Use a separate syntax-ppss cache for narrowed buffers
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 25 Sep 2017 23:49:00 +0000 (02:49 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 25 Sep 2017 23:52:23 +0000 (02:52 +0300)
commit827db6b559100153fd7dcab1ecdabd9233e906ab
tree86b823dae67d4adc6ccf1e1723776bd83df72be2
parenta2244f417a7cf577172cec927b055f0aca9ef282
Use a separate syntax-ppss cache for narrowed buffers

* lisp/emacs-lisp/syntax.el (syntax-ppss-wide):
New variable, to contain the data from `syntax-ppss-last' and
`syntax-ppss-cache'.
(syntax-ppss-cache, syntax-ppss-last): Remove.
(syntax-ppss-narrow, syntax-ppss-narrow-start): New variables.
(syntax-ppss-flush-cache): Flush both caches.
(syntax-ppss--data): Return the appropriate last result and
buffer cache for the current restriction.
(syntax-ppss, syntax-ppss-debug): Use it (bug#22983).
lisp/emacs-lisp/syntax.el