]> git.eshelyaron.com Git - emacs.git/commit
Fix value history shown for 'gc-cons-percentage'
authorEli Zaretskii <eliz@gnu.org>
Sun, 12 Mar 2023 14:19:49 +0000 (16:19 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 12 Mar 2023 14:19:49 +0000 (16:19 +0200)
commit42335c2c1f18c250719dd621a1923d0f40b82927
tree17eb4823aaa137a23ad8f757cc7f5572003f17d7
parentfffbce29349b14daa5f9b9c97ff5ba230b56c247
Fix value history shown for 'gc-cons-percentage'

When Emacs is built, temacs is run in batch mode, so if we enlarge
'gc-cons-percentage' in that case, the enlarged value will be
"remembered" by the dumped Emacs, and will show confusing
information in "C-h v", claiming that the original value was 1.0.
Keeping the value at 0.1 during dumping avoids that.

* src/emacs.c (main): Increase 'gc-cons-percentage' in batch mode
only if we are not initializing (a.k.a. "dumping") Emacs.
src/emacs.c