summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-03-07 20:18:02 +0800
committerPo Lu <luangruo@yahoo.com>2023-03-07 20:18:02 +0800
commit84d27fe53b2888b6668ba8510f377eb0eabeeb09 (patch)
tree82d55aaecfab0576159664a575d61fa9895c9100 /src/window.c
parent83c29bd40e0c7e3975f575067a3112a0191b5590 (diff)
downloademacs-84d27fe53b2888b6668ba8510f377eb0eabeeb09.tar.gz
Save build timestamps in Android builds
* java/Makefile.in (install_temp/assets/build_info): New rule.:(emacs.apk-in): Depend on that file. * lisp/version.el (android-read-build-system) (android-read-build-time): New functions. (emacs-build-system, emacs-build-time): Use those functions on Android, as dumping is done after installation on Android. * src/fileio.c (Finsert_file_contents): * src/window.c (replace_buffer_in_windows): Don't call functions if they are not defined, which can happen during loadup.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index f4e09f49eae..9a29ecb8807 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3514,7 +3514,10 @@ window-start value is reasonable when this function is called. */)
void
replace_buffer_in_windows (Lisp_Object buffer)
{
- call1 (Qreplace_buffer_in_windows, buffer);
+ /* When kill-buffer is called early during loadup, this function is
+ undefined. */
+ if (!NILP (Fboundp (Qreplace_buffer_in_windows)))
+ call1 (Qreplace_buffer_in_windows, buffer);
}
/* If BUFFER is shown in a window, safely replace it with some other