Mercurial > emacs
diff src/alloc.c @ 90774:81fa456eb1dc
(Fgarbage_collect): If nextb->text->inhibit_shrinking is
nonzero, don't shrink the buffer nextb.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Fri, 23 Feb 2007 06:03:41 +0000 |
| parents | f83d17e1ace6 |
| children | e6fdae9180d4 |
line wrap: on
line diff
--- 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
