summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emacs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 4d62018fb0a..56d4ecf1409 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -175,6 +175,9 @@ memory_warning_signal (sig)
signal (sig, memory_warning_signal);
malloc_warning ("Operating system warns that virtual memory is running low.\n");
+
+ /* It might be unsafe to call do_auto_save now. */
+ force_auto_save_soon ();
}
#endif