# HG changeset patch # User Kenichi Handa # Date 1172210621 0 # Node ID 81fa456eb1dc7caa7ac9e74f6996563da5bc2625 # Parent 19c4543f115403f079a4401856e2b579d1e3b376 (Fgarbage_collect): If nextb->text->inhibit_shrinking is nonzero, don't shrink the buffer nextb. diff -r 19c4543f1154 -r 81fa456eb1dc src/alloc.c --- a/src/alloc.c Fri Feb 23 06:02:58 2007 +0000 +++ b/src/alloc.c Fri Feb 23 06:03:41 2007 +0000 @@ -5043,7 +5043,8 @@ truncate_undo_list (nextb); /* Shrink buffer gaps, but skip indirect and dead buffers. */ - if (nextb->base_buffer == 0 && !NILP (nextb->name)) + if (nextb->base_buffer == 0 && !NILP (nextb->name) + && ! nextb->text->inhibit_shrinking) { /* If a buffer's gap size is more than 10% of the buffer size, or larger than 2000 bytes, then shrink it