]> git.eshelyaron.com Git - emacs.git/commit
Rework the last delsel/electric fix.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Oct 2012 12:43:54 +0000 (08:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Oct 2012 12:43:54 +0000 (08:43 -0400)
commitc77d37e227560d8ab87b475acef74bf20b54750e
tree6f549b6b304dbd90bab331497e34358231068532
parentb1d39ccce419eeec83a4bc723f6c9daf4ffb2be4
Rework the last delsel/electric fix.
* lisp/delsel.el (delete-selection-helper): Use a function instead of a hook.
(delete-selection-pre-hook): Use use-region-p.
(delete-selection-self-insert-function): Remove.
(self-insert-command): Obey self-insert-uses-region-functions.
(self-insert-iso): Revert to previous setting, since we don't actually
know what that command does.
(delete-selection-self-insert-hooks): Remove.
* lisp/electric.el (electric-pair-delete-selection-self-insert-function):
Rename to electric-pair-will-use-region, return a boolean.
(electric-pair-mode): Adjust accordingly.  Don't require delsel.
lisp/ChangeLog
lisp/delsel.el
lisp/electric.el