diff options
| author | Jan Djärv | 2010-05-02 20:44:04 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-05-02 20:44:04 +0200 |
| commit | f63d0028c0cb44c5bf4ca7f36b66ab19595f6ecc (patch) | |
| tree | a72ebe53b4ac0a453ee7b37a37f61cfdcc264cc8 /doc | |
| parent | 8f92b8ad07a0af0d0fe7784feaa56cf1ff5b16f9 (diff) | |
| download | emacs-f63d0028c0cb44c5bf4ca7f36b66ab19595f6ecc.tar.gz emacs-f63d0028c0cb44c5bf4ca7f36b66ab19595f6ecc.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/cmdargs.texi | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index d2df84e2aae..5c144833e1d 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-05-02 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * cmdargs.texi (Initial Options): Mention --chdir. | ||
| 4 | |||
| 1 | 2010-04-21 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2010-04-21 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * frames.texi (Tool Bars): Add tool-bar-style. | 7 | * frames.texi (Tool Bars): Add tool-bar-style. |
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index a139e0eb0f4..ff8e4f84abd 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -193,6 +193,15 @@ Certain options prevent loading of some of these files or substitute | |||
| 193 | other files for them. | 193 | other files for them. |
| 194 | 194 | ||
| 195 | @table @samp | 195 | @table @samp |
| 196 | @item -chdir @var{directory} | ||
| 197 | @opindex -chdir | ||
| 198 | @itemx --chdir=@var{directory} | ||
| 199 | @opindex --chdir | ||
| 200 | @cindex change Emacs directory | ||
| 201 | Change to @var{directory} before doing anything else. This is mainly used | ||
| 202 | by session management in X so that Emacs starts in the same directory as it | ||
| 203 | stopped. This makes desktop saving and restoring easier. | ||
| 204 | |||
| 196 | @item -t @var{device} | 205 | @item -t @var{device} |
| 197 | @opindex -t | 206 | @opindex -t |
| 198 | @itemx --terminal=@var{device} | 207 | @itemx --terminal=@var{device} |