From 49137311a432a0c3c4afef1ae7d463cd4c3613ae Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 21 Jun 2022 15:11:28 +0200 Subject: [PATCH] Fix previous -batch change for gc-cons-percentage * src/emacs.c (main): Reset the default for gc-cons-percentage in interactive Emacs. --- src/emacs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index c602157da16..37c6c76e7a3 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1947,8 +1947,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem /* Do less garbage collection in batch mode (since these tend to be more short-lived, and the memory is returned to the OS on exit anyway). */ - if (noninteractive) - Vgc_cons_percentage = make_float (1.0); + Vgc_cons_percentage = make_float (noninteractive? 1.0: 0.1); no_loadup = argmatch (argv, argc, "-nl", "--no-loadup", 6, NULL, &skip_args); -- 2.39.2