diff options
| author | Dan Nicolaescu | 2008-09-21 23:31:40 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-09-21 23:31:40 +0000 |
| commit | eab2ee89441d51e885e3df6b3fbcb3c12a177232 (patch) | |
| tree | 16fff121c73fb31938ace464c17dd6650c2bcf5d /doc | |
| parent | d06f8010663c3eacd0fd873f816803a6ffceb692 (diff) | |
| download | emacs-eab2ee89441d51e885e3df6b3fbcb3c12a177232.tar.gz emacs-eab2ee89441d51e885e3df6b3fbcb3c12a177232.zip | |
* emacs.c (standard_args): Add --daemon.
(main): Disconnect from the terminal when --daemon is passed.
(is_daemon): New variable.
(Fdaemonp): New function.
(syms_of_emacs): Defsubr it.
* startup.el (command-line): Start the server when in daemon mode.
* cmdargs.texi (Initial Options): Document --daemon.
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 bae3e02d302..c3b98fc55de 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * cmdargs.texi (Initial Options): Document --daemon. | ||
| 4 | |||
| 1 | 2008-09-20 Glenn Morris <rgm@gnu.org> | 5 | 2008-09-20 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * files.texi (Numbered Backups): Mention that some modes set | 7 | * files.texi (Numbered Backups): Mention that some modes set |
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 74ebe3c9e1f..1e733755e99 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -277,6 +277,15 @@ option and @samp{-Q} are the only options that block it. | |||
| 277 | Start emacs with minimum customizations. This is like using @samp{-q} | 277 | Start emacs with minimum customizations. This is like using @samp{-q} |
| 278 | and @samp{--no-site-file}, but also disables the startup screen. | 278 | and @samp{--no-site-file}, but also disables the startup screen. |
| 279 | 279 | ||
| 280 | @item -daemon | ||
| 281 | @opindex -daemon | ||
| 282 | @itemx --daemon | ||
| 283 | @opindex --daemon | ||
| 284 | Start emacs in background as a daemon (i.e. it will disconnect from the | ||
| 285 | terminal), do not open any frames and start the server. Clients can | ||
| 286 | connect and create graphical or terminal frames using | ||
| 287 | @code{emacsclient}. | ||
| 288 | |||
| 280 | @item --no-splash | 289 | @item --no-splash |
| 281 | @opindex --no-splash | 290 | @opindex --no-splash |
| 282 | @vindex inhibit-splash-screen | 291 | @vindex inhibit-splash-screen |