]> git.eshelyaron.com Git - emacs.git/commit
lisp/elec-pair.el: Simplify last change
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 3 Jul 2022 15:12:45 +0000 (11:12 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 3 Jul 2022 15:12:45 +0000 (11:12 -0400)
commitbfc9e7669688b3439cfdd2d5972065b95eae812f
treeaaaa50b0f7c9b3166aa376e1e42b1a3abbcdbd0a
parente41ba8ab89a125c91dee672845679f2dec19853a
lisp/elec-pair.el: Simplify last change

* lisp/elec-pair.el (electric-pair--with-syntax):
Rename from `electric-pair--with-text-syntax`.
Make `start` mandatory.  Run `body` in the normal syntax if `start` is nil.
(electric-pair--with-syntax-1): New function, extracted from
`electric-pair--with-text-syntax`.
(electric-pair-syntax-info, electric-pair--balance-info):
Adjust calls accordingly.
lisp/elec-pair.el