diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-10-21 13:27:32 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-10-21 13:27:32 -0400 |
commit | a8eb50cf31734c0d0cf0633455fd3a1fa948ca5a (patch) | |
tree | 76be813c4bebdcada8fed0eb5a53214b6388afe5 /src/insdel.c | |
parent | 8ce6f77455f597197f5e596e59e79f919c234df9 (diff) | |
download | emacs-a8eb50cf31734c0d0cf0633455fd3a1fa948ca5a.tar.gz |
* insdel.c (prepare_to_modify_buffer): Don't set
saved-region-selection if modification hooks are disabled.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/insdel.c b/src/insdel.c index abe6f350585..ff380ada192 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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) |