Subject: Re: bug#36160: 25.2; Emacs does not ask to save modified files when shutting down OS

From: Glenn Morris <[email-masked]>
Date: Thu, 13 Jun 2019 14:56:31 -0400

Glenn Morris wrote:

> Shutdown sends SIGTERM, so Emacs could (auto)save on receipt of that
> signal (if it doesn't already do so?).

And SIGTERM triggers kill-emacs, which runs kill-emacs-hook, so if you
want some (unprompted) saving, you could do it with that hook.