From: Richard M. Stallman Date: Sun, 2 Jan 2005 22:52:23 +0000 (+0000) Subject: (Fgarbage_collect): Don't truncate_undo_list on dead buffers. X-Git-Tag: ttn-vms-21-2-B4~2959 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=303b04121058f35726d088c600a9a0e006235e91;p=emacs.git (Fgarbage_collect): Don't truncate_undo_list on dead buffers. --- diff --git a/src/alloc.c b/src/alloc.c index 429cdb5246a..a1ba6dfc513 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -4683,7 +4683,7 @@ returns nil, because real GC can't be done. */) 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. */