changeset 1043:ee6f647ac103

* emacs.c: Incude "systty.h", not "systerm.h". * emacs.c (Fkill_emacs): Doc fix. (syms_of_emacs): Doc fix for Vkill_emacs_hook.
author Jim Blandy <jimb@redhat.com>
date Sat, 29 Aug 1992 02:58:59 +0000
parents 41b77a76b885
children c5aded0d488a
files src/emacs.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Sat Aug 29 02:55:05 1992 +0000
+++ b/src/emacs.c	Sat Aug 29 02:58:59 1992 +0000
@@ -48,7 +48,7 @@
 #include "lisp.h"
 #include "commands.h"
 
-#include "systerm.h"
+#include "systty.h"
 
 #ifndef O_RDWR
 #define O_RDWR 2
@@ -558,7 +558,7 @@
 }
 
 DEFUN ("kill-emacs", Fkill_emacs, Skill_emacs, 0, 1, "P",
-  "Exit the Emacs job and kill it.  Ask for confirmation, without argument.\n\
+  "Exit the Emacs job and kill it.\n\
 If ARG is an integer, return ARG as the exit program code.\n\
 If ARG is a  string, stuff it as keyboard input.\n\n\
 The value of `kill-emacs-hook', if not void,\n\
@@ -768,8 +768,10 @@
   DEFVAR_BOOL ("noninteractive", &noninteractive1,
     "Non-nil means Emacs is running without interactive terminal.");
 
+  DEFVAR_LISP ("kill-emacs-hook", &Vkill_emacs_hook,
+    "Hook to be run whenever kill-emacs is called.\n\
+Since kill-emacs may be invoked when the terminal is disconnected (or\n\
+in other similar situations), functions placed on this hook should not\n\
+not expect to be able to interact with the user.");
   Vkill_emacs_hook = Qnil;
-
-  DEFVAR_LISP ("kill-emacs-hook", &Vkill_emacs_hook,
-    "Hook to be run whenever kill-emacs is called.");
 }