]> git.eshelyaron.com Git - emacs.git/commit
cus-start.el: Reliably distinguish preload from nonpreload
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 Jun 2025 02:55:04 +0000 (22:55 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:06:35 +0000 (22:06 +0200)
commitf6aa3089fe80ee289b16b66ce69e265cc74789fc
tree70577986db6bef79233743516ceaeae27e3021f6
parent887867061fdf9e9f52b99245612daaeaef77672c
cus-start.el: Reliably distinguish preload from nonpreload

`dump-mode` can be nil even if we're about to dump (this is
done in the Android build), so don't rely on it to distinguish
if `cus-start` is loaded from `loadup.el` vs loaded during
a "normal run".

* lisp/loadup.el (cus-start): Bind `cus-start--preload`.
* lisp/cus-start.el: <top-level>: Test it rather than `dump-mode`.

(cherry picked from commit cb484ead91cb20f1cad31ac878a65ea1e9354871)
lisp/cus-start.el
lisp/loadup.el