diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-12-14 21:25:13 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-12-16 21:02:38 -0500 |
commit | 89cfdbf729bc731331358e0efc69547547aa3ca2 (patch) | |
tree | c70f4749d78bb754f604f100c361cb0668788793 /lisp/emacs-lisp/advice.el | |
parent | c5061d81b972d9b846359d6b9be1c5a0fc4a2402 (diff) | |
download | emacs-89cfdbf729bc731331358e0efc69547547aa3ca2.tar.gz emacs-89cfdbf729bc731331358e0efc69547547aa3ca2.tar.bz2 emacs-89cfdbf729bc731331358e0efc69547547aa3ca2.zip |
Don't mess up syntax-ppss cache in electric-pair (Bug#29710)
In Emacs 25 and above, calling `scan-sexps', `parse-partial-sexp', or
similar may update the syntax-ppss cache if
`parse-sexp-lookup-properties' is non-nil. Therefore, when calling
any of these functions with a different than normal syntax-table, the
cache must be cleaned afterwards.
* lisp/elec-pair.el (electric-pair--with-uncached-syntax): New macro.
(electric-pair--syntax-ppss, electric-pair--balance-info): Use it.
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
0 files changed, 0 insertions, 0 deletions