changeset 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 ad91f130fbdf
children c5ee87e89147
files src/alloc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.  */