From 4929a8780a8d6a475e7b0294dc4eb32fb6a31c07 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 20 Apr 1998 17:04:16 +0000 Subject: [PATCH] (Fgarbage_collect): Don't truncate command-history here. --- src/alloc.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/alloc.c b/src/alloc.c index 6948ff1a3d8..b41af98ac4f 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -55,8 +55,6 @@ extern __malloc_size_t _bytes_used; extern int __malloc_extra_blocks; #endif /* !defined(DOUG_LEA_MALLOC) */ -extern Lisp_Object Vhistory_length; - #define max(A,B) ((A) > (B) ? (A) : (B)) #define min(A,B) ((A) < (B) ? (A) : (B)) @@ -1728,15 +1726,7 @@ Garbage collection happens automatically if you cons more than\n\ if (garbage_collection_messages) message1_nolog ("Garbage collecting..."); - /* Don't keep command history around forever. */ - if (NUMBERP (Vhistory_length) && XINT (Vhistory_length) > 0) - { - tem = Fnthcdr (Vhistory_length, Vcommand_history); - if (CONSP (tem)) - XCONS (tem)->cdr = Qnil; - } - - /* Likewise for undo information. */ + /* Don't keep undo information around forever. */ { register struct buffer *nextb = all_buffers; -- 2.39.2