Mercurial > emacs
diff src/alloc.c @ 59314:9c620c1aa7fa
(Fgarbage_collect): Don't truncate_undo_list on dead buffers.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sun, 02 Jan 2005 22:52:23 +0000 |
| parents | 4295cf593352 |
| children | 1678d14c4109 |
line wrap: on
line diff
--- a/src/alloc.c Sun Jan 02 22:07:52 2005 +0000 +++ b/src/alloc.c Sun Jan 02 22:52:23 2005 +0000 @@ -4683,7 +4683,7 @@ turned off in that buffer. Calling truncate_undo_list on Qt tends to return NULL, which effectively turns undo back on. So don't call truncate_undo_list if undo_list is Qt. */ - if (! EQ (nextb->undo_list, Qt)) + if (! NILP (nextb->name) && ! EQ (nextb->undo_list, Qt)) truncate_undo_list (nextb); /* Shrink buffer gaps, but skip indirect and dead buffers. */
