Mercurial > emacs
diff doc/emacs/cmdargs.texi @ 108213:e6266e624471
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.
author | Jan D. <jan.h.d@swipnet.se> |
---|---|
date | Sun, 02 May 2010 20:44:04 +0200 |
parents | 54f3a4d055ee |
children | 417b1e4d63cd |
line wrap: on
line diff
--- a/doc/emacs/cmdargs.texi Sun May 02 01:56:30 2010 -0400 +++ b/doc/emacs/cmdargs.texi Sun May 02 20:44:04 2010 +0200 @@ -193,6 +193,15 @@ other files for them. @table @samp +@item -chdir @var{directory} +@opindex -chdir +@itemx --chdir=@var{directory} +@opindex --chdir +@cindex change Emacs directory +Change to @var{directory} before doing anything else. This is mainly used +by session management in X so that Emacs starts in the same directory as it +stopped. This makes desktop saving and restoring easier. + @item -t @var{device} @opindex -t @itemx --terminal=@var{device}