diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-01-02 22:52:23 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-01-02 22:52:23 +0000 |
commit | 303b04121058f35726d088c600a9a0e006235e91 (patch) | |
tree | a7000a996e1232a3a05cdee48117466428873540 | |
parent | c771f3d67a0e0ee67f1c65960cab3b374971fb66 (diff) | |
download | emacs-303b04121058f35726d088c600a9a0e006235e91.tar.gz |
(Fgarbage_collect): Don't truncate_undo_list on dead buffers.
-rw-r--r-- | src/alloc.c | 2 |
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. */) 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. */ |