summaryrefslogtreecommitdiff
path: root/m4/symlink.m4
diff options
context:
space:
mode:
authorAllen Li <darkfeline@felesatra.moe>2022-07-03 12:31:15 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-07-03 12:31:15 +0200
commita2f956a1d6fad6a2bc7c5d79eb3aa76cbb63cc40 (patch)
tree23c5101f29f5f4c347403126851213962c39dfd6 /m4/symlink.m4
parentf5a11369ea1480d0b99fd538c759b53c88fd6acc (diff)
downloademacs-a2f956a1d6fad6a2bc7c5d79eb3aa76cbb63cc40.tar.gz
elec-pair: Fix bug incorrectly hiding syntax-propertize-function
* lisp/elec-pair.el (electric-pair--with-text-syntax): New macro. (electric-pair-syntax-info): (electric-pair--balance-info): (electric-pair--syntax-ppss, electric-pair--balance-info): Use it. (electric-pair--with-uncached-syntax): Remove (bug#49629). The main bug that this is fixing is `syntax-propertize-function' being hidden in `electric-pair--balance-info' when the original syntax table is to be used, not `electric-pair-text-syntax-table'. Notably, this causes `electric-pair-mode' to often misbehave in HTML files when pairing angle brackets. This commit also flushes the cache before installing `electric-pair-text-syntax-table', to prevent cached syntax for the original table from affecting things.
Diffstat (limited to 'm4/symlink.m4')
0 files changed, 0 insertions, 0 deletions