From: Lars Ingebrigtsen Date: Tue, 21 Jun 2022 13:11:28 +0000 (+0200) Subject: Fix previous -batch change for gc-cons-percentage X-Git-Tag: emacs-29.0.90~1447^2~1561 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49137311a432a0c3c4afef1ae7d463cd4c3613ae;p=emacs.git Fix previous -batch change for gc-cons-percentage * src/emacs.c (main): Reset the default for gc-cons-percentage in interactive Emacs. --- 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);