From 303b04121058f35726d088c600a9a0e006235e91 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 2 Jan 2005 22:52:23 +0000 Subject: [PATCH] (Fgarbage_collect): Don't truncate_undo_list on dead buffers. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.5