diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 84cd3ac8c8a..8ea61b71fb7 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2024,7 +2024,10 @@ all of which are called before Emacs is actually killed. */ | |||
| 2024 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is | 2024 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is |
| 2025 | set. */ | 2025 | set. */ |
| 2026 | waiting_for_input = 0; | 2026 | waiting_for_input = 0; |
| 2027 | run_hook (Qkill_emacs_hook); | 2027 | if (noninteractive) |
| 2028 | safe_run_hooks (Qkill_emacs_hook); | ||
| 2029 | else | ||
| 2030 | run_hook (Qkill_emacs_hook); | ||
| 2028 | 2031 | ||
| 2029 | #ifdef HAVE_X_WINDOWS | 2032 | #ifdef HAVE_X_WINDOWS |
| 2030 | /* Transfer any clipboards we own to the clipboard manager. */ | 2033 | /* Transfer any clipboards we own to the clipboard manager. */ |