]> git.eshelyaron.com Git - emacs.git/commit
Run kill-emacs when exiting for display closed or SIGTERM/HUP.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 2 May 2010 18:44:04 +0000 (20:44 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 2 May 2010 18:44:04 +0000 (20:44 +0200)
commitf63d0028c0cb44c5bf4ca7f36b66ab19595f6ecc
treea72ebe53b4ac0a453ee7b37a37f61cfdcc264cc8
parent8f92b8ad07a0af0d0fe7784feaa56cf1ff5b16f9
Run kill-emacs when exiting for display closed or SIGTERM/HUP.

* xsmfns.c (CHDIR_OPT): New define.
(smc_save_yourself_CB): Add CHDIR_OPT to options to use when
restarting emacs.

* xterm.c (x_connection_closed): Call Fkill_emacs instead of
shut_down_emacs.

* emacs.c (USAGE1): Mention --chdir.
(main): Handle --chdir.
(standard_args): Add --chdir.
(fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
#5552).

* cmdargs.texi (Initial Options): Mention --chdir.
doc/emacs/ChangeLog
doc/emacs/cmdargs.texi
src/ChangeLog
src/emacs.c
src/xsmfns.c
src/xterm.c