Mercurial > emacs
diff src/insdel.c @ 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 | 54834381dfd9 |
children | 6c24c5598611 |
line wrap: on
line diff
--- 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)