Mercurial > emacs
changeset 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 | 19c4543f1154 |
children | 7d8921cab8aa |
files | src/alloc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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