]> git.eshelyaron.com Git - emacs.git/commit
* lisp/delsel.el (delete-selection-helper): New function, extracted from
authorSimon Law <sfllaw@sfllaw.ca>
Mon, 22 Oct 2012 03:15:44 +0000 (23:15 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Oct 2012 03:15:44 +0000 (23:15 -0400)
commitb1d39ccce419eeec83a4bc723f6c9daf4ffb2be4
treeab245066cbdda726e5f4b667f03d01182a761911
parent4ee8774065666426cda990f91fdec8fe343bdf30
* lisp/delsel.el (delete-selection-helper): New function, extracted from
delete-selection-pre-hook.
(delete-selection-pre-hook): Use it.
(delete-selection-self-insert-function): New function.
(delete-selection-self-insert-hooks): New hook.
(self-insert-command, self-insert-iso): Use it.
* lisp/electric.el (electric-pair-syntax): New function, extracted from
electric-pair-post-self-insert-function.
(electric-pair-post-self-insert-function): Use it.
(electric-pair-delete-selection-self-insert-function): New function.
(electric-pair-mode): Require delsel and setup
delete-selection-self-insert-hooks.

Fixes: debbugs:11520
lisp/ChangeLog
lisp/delsel.el
lisp/electric.el