]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (self-insert-uses-region-functions): Defvar.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Aug 2014 15:20:27 +0000 (11:20 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Aug 2014 15:20:27 +0000 (11:20 -0400)
lisp/ChangeLog
lisp/simple.el

index 0e4a59b8374f7d9284ec0e84b87ed065007ce270..d2ad52e3b077a27c54272e83503e69b986761c45 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * simple.el (self-insert-uses-region-functions): Defvar.
+
 2014-08-13  Leo Liu  <sdl.web@gmail.com>
 
        * speedbar.el (speedbar-generic-list-tag-p): Allow special
index 1a42db816696f806f44c12223aea35902064ec37..7b505d116450247fedf420f7cdd99ec563c76969 100644 (file)
@@ -374,6 +374,13 @@ Other major modes are defined by comparison with this one."
 
 ;; Making and deleting lines.
 
+(defvar self-insert-uses-region-functions nil
+  "Special hook to tell if `self-insert-command' will use the region.
+It must be called via `run-hook-with-args-until-success' with no arguments.
+Any `post-self-insert-command' which consumes the region should
+register a function on this hook so that things like `delete-selection-mode'
+can refrain from consuming the region.")
+
 (defvar hard-newline (propertize "\n" 'hard t 'rear-nonsticky '(hard))
   "Propertized string representing a hard newline character.")