Tags: patch In the patch(es) below I suggest the addition of a new function `funcall-later` which exposes the already existing `pending_funcalls` mechanism to ELisp and fixes it so those are processed in the correct order and so they're not just thrown away when used in batch mode. `run-with-timer` does largely the same thing when passed a 0 timeout and no repetition, but it is a bit more costly and relies on the timers, which don't work as well in batch mode. Stefan In GNU Emacs 30.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-03-27 built on lechazo Repository revision: a13cfe9bb17448e104dc86b7a33761ca60297871 Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure -C --enable-checking --enable-check-lisp-object-type --with-modules --with-cairo --with-tiff=ifavailable 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' --without-native-compilation PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'