changeset 111080:b5615f1dafcc

* insdel.c (prepare_to_modify_buffer): Don't set saved-region-selection if modification hooks are disabled.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 21 Oct 2010 13:27:32 -0400
parents 15b14005a6f2
children 26c658c72bf6
files src/ChangeLog src/insdel.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Oct 21 10:05:23 2010 +0200
+++ b/src/ChangeLog	Thu Oct 21 13:27:32 2010 -0400
@@ -1,3 +1,8 @@
+2010-10-21  Chong Yidong  <cyd@stupidchicken.com>
+
+	* insdel.c (prepare_to_modify_buffer): Don't set
+	saved-region-selection if modification hooks are disabled.
+
 2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
 
 	* cmds.c (Fdelete_char): Doc fix.
--- a/src/insdel.c	Thu Oct 21 10:05:23 2010 +0200
+++ b/src/insdel.c	Thu Oct 21 13:27:32 2010 -0400
@@ -2051,6 +2051,7 @@
 
   /* If `select-active-regions' is non-nil, save the region text.  */
   if (!NILP (current_buffer->mark_active)
+      && !inhibit_modification_hooks
       && XMARKER (current_buffer->mark)->buffer
       && NILP (Vsaved_region_selection)
       && (EQ (Vselect_active_regions, Qonly)