]> git.eshelyaron.com Git - emacs.git/commitdiff
* insdel.c (prepare_to_modify_buffer): Don't set
authorChong Yidong <cyd@stupidchicken.com>
Thu, 21 Oct 2010 17:27:32 +0000 (13:27 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 21 Oct 2010 17:27:32 +0000 (13:27 -0400)
saved-region-selection if modification hooks are disabled.

src/ChangeLog
src/insdel.c

index d09fab7ca8569a2939907a66a9f43bd93df20362..ecac971be195fafb51907143283fd3e8bc1e3a18 100644 (file)
@@ -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.
index abe6f3505852d7754e8bda1ca60ecceff3187aa6..ff380ada1928eb96011b36cd08884d8f832cdd9f 100644 (file)
@@ -2051,6 +2051,7 @@ prepare_to_modify_buffer (EMACS_INT start, EMACS_INT end,
 
   /* 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)