summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/advice.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2017-12-14 21:25:13 -0500
committerNoam Postavsky <npostavs@gmail.com>2017-12-16 21:02:38 -0500
commit89cfdbf729bc731331358e0efc69547547aa3ca2 (patch)
treec70f4749d78bb754f604f100c361cb0668788793 /lisp/emacs-lisp/advice.el
parentc5061d81b972d9b846359d6b9be1c5a0fc4a2402 (diff)
downloademacs-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