aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman2005-01-02 22:52:23 +0000
committerRichard M. Stallman2005-01-02 22:52:23 +0000
commit303b04121058f35726d088c600a9a0e006235e91 (patch)
treea7000a996e1232a3a05cdee48117466428873540 /src/alloc.c
parentc771f3d67a0e0ee67f1c65960cab3b374971fb66 (diff)
downloademacs-303b04121058f35726d088c600a9a0e006235e91.tar.gz
emacs-303b04121058f35726d088c600a9a0e006235e91.zip
(Fgarbage_collect): Don't truncate_undo_list on dead buffers.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
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. */)
4683 turned off in that buffer. Calling truncate_undo_list on 4683 turned off in that buffer. Calling truncate_undo_list on
4684 Qt tends to return NULL, which effectively turns undo back on. 4684 Qt tends to return NULL, which effectively turns undo back on.
4685 So don't call truncate_undo_list if undo_list is Qt. */ 4685 So don't call truncate_undo_list if undo_list is Qt. */
4686 if (! EQ (nextb->undo_list, Qt)) 4686 if (! NILP (nextb->name) && ! EQ (nextb->undo_list, Qt))
4687 truncate_undo_list (nextb); 4687 truncate_undo_list (nextb);
4688 4688
4689 /* Shrink buffer gaps, but skip indirect and dead buffers. */ 4689 /* Shrink buffer gaps, but skip indirect and dead buffers. */