emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117448: * lisp/simple.el (self-insert-uses-regio


From: Stefan Monnier
Subject: [Emacs-diffs] emacs-24 r117448: * lisp/simple.el (self-insert-uses-region-functions): Defvar.
Date: Mon, 18 Aug 2014 15:21:07 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117448
revision-id: address@hidden
parent: address@hidden
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Mon 2014-08-18 11:20:27 -0400
message:
  * lisp/simple.el (self-insert-uses-region-functions): Defvar.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/simple.el                 simple.el-20091113204419-o5vbwnq5f7feedwu-403
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-08-13 03:21:43 +0000
+++ b/lisp/ChangeLog    2014-08-18 15:20:27 +0000
@@ -1,3 +1,7 @@
+2014-08-18  Stefan Monnier  <address@hidden>
+
+       * simple.el (self-insert-uses-region-functions): Defvar.
+
 2014-08-13  Leo Liu  <address@hidden>
 
        * speedbar.el (speedbar-generic-list-tag-p): Allow special

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2014-08-05 13:34:06 +0000
+++ b/lisp/simple.el    2014-08-18 15:20:27 +0000
@@ -374,6 +374,13 @@
 
 ;; 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.")
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]