# HG changeset patch # User Jim Blandy # Date 715057139 0 # Node ID ee6f647ac10393224e11217911d9eb2158dd2bdf # Parent 41b77a76b8851a467ff78a8c317d3d279974fadb * emacs.c: Incude "systty.h", not "systerm.h". * emacs.c (Fkill_emacs): Doc fix. (syms_of_emacs): Doc fix for Vkill_emacs_hook. diff -r 41b77a76b885 -r ee6f647ac103 src/emacs.c --- 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."); }