diff options
| author | Chong Yidong | 2012-04-15 15:21:23 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-15 15:21:23 +0800 |
| commit | 467a33d09f0e6d445fb020013ac65b12adffc35e (patch) | |
| tree | 5ccc9d3b164c61e9ac1b7d6b101caf60b7cf3752 | |
| parent | 12acf78334a9a2ea17a083c7aac93d3e5246ace1 (diff) | |
| download | emacs-467a33d09f0e6d445fb020013ac65b12adffc35e.tar.gz emacs-467a33d09f0e6d445fb020013ac65b12adffc35e.zip | |
* doc/emacs/misc.texi (emacsclient Options): More clarifications.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 63 |
2 files changed, 44 insertions, 23 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 762f164290b..18428c0ba48 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-04-15 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * misc.texi (emacsclient Options): More clarifications. | ||
| 4 | |||
| 1 | 2012-04-14 Glenn Morris <rgm@gnu.org> | 5 | 2012-04-14 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * msdog.texi (Windows Printing): It doesn't set printer-name. | 7 | * msdog.texi (Windows Printing): It doesn't set printer-name. |
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index e0c736652dd..50b68767991 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1510,14 +1510,16 @@ the @samp{-c} option, the new frame displays the @file{*scratch*} | |||
| 1510 | buffer (@pxref{Buffers}). See below for the special behavior of | 1510 | buffer (@pxref{Buffers}). See below for the special behavior of |
| 1511 | @kbd{C-x C-c} in a client frame. | 1511 | @kbd{C-x C-c} in a client frame. |
| 1512 | 1512 | ||
| 1513 | On GNU and Unix systems, Emacs can create a graphical frame even if it | 1513 | If Emacs is unable to create a new graphical frame (e.g.@: if it is |
| 1514 | was started in a text terminal, provided it is able to connect to a | 1514 | unable to connect to the X server), it tries to create a text terminal |
| 1515 | graphical display. On systems such as MS-Windows, it cannot create | 1515 | client frame, as though you had supplied the @samp{-t} option instead |
| 1516 | graphical frames if it was started from a text terminal | 1516 | (see below). |
| 1517 | (@pxref{Windows Startup, emacsclient}). If Emacs cannot connect to a | 1517 | |
| 1518 | graphical display for any reason, it instead creates a new client | 1518 | On MS-Windows, a single Emacs session cannot display frames on both |
| 1519 | frame on the text terminal from which you invoked | 1519 | graphical and text terminals, nor on multiple text terminals. Thus, |
| 1520 | @command{emacsclient} (@pxref{Non-Window Terminals}). | 1520 | if the Emacs server is running on a text terminal, the @samp{-c} |
| 1521 | option, like the @samp{-t} option, creates a new frame in the server's | ||
| 1522 | current text terminal. @xref{Windows Startup}. | ||
| 1521 | 1523 | ||
| 1522 | @item -F @var{alist} | 1524 | @item -F @var{alist} |
| 1523 | @itemx --frame-parameters=@var{alist} | 1525 | @itemx --frame-parameters=@var{alist} |
| @@ -1607,23 +1609,38 @@ supplying this option, the new frame displays the @file{*scratch*} | |||
| 1607 | buffer (@pxref{Buffers}). See below for the special behavior of | 1609 | buffer (@pxref{Buffers}). See below for the special behavior of |
| 1608 | @kbd{C-x C-c} in a client frame. | 1610 | @kbd{C-x C-c} in a client frame. |
| 1609 | 1611 | ||
| 1610 | On GNU and Unix systems, Emacs can open a text terminal even if it was | 1612 | On MS-Windows, a single Emacs session cannot display frames on both |
| 1611 | started in another text terminal, or on a graphical display. On | 1613 | graphical and text terminals, nor on multiple text terminals. Thus, |
| 1612 | systems where this is impossible, such as MS-Windows, Emacs instead | 1614 | if the Emacs server is using the graphical display, @samp{-t} behaves |
| 1613 | creates a new frame on the same terminal where it was started | 1615 | like @samp{-c} (see above); whereas if the Emacs server is running on |
| 1614 | (@pxref{Windows Startup, emacsclient}). | 1616 | a text terminal, it creates a new frame in its current text terminal. |
| 1617 | @xref{Windows Startup}. | ||
| 1615 | @end table | 1618 | @end table |
| 1616 | 1619 | ||
| 1617 | If you type @kbd{C-x C-c} in a client frame created by | 1620 | The new graphical or text terminal frames created by the @samp{-c} |
| 1618 | @command{emacsclient} (via the @samp{-c} or @samp{-t} options), that | 1621 | or @samp{-t} options are considered @dfn{client frames}. Any new |
| 1619 | command does not kill the main Emacs session as it normally does | 1622 | frame that you create from a client frame is also considered a client |
| 1620 | (@pxref{Exiting}). Instead, Emacs deletes the client frame; and if | 1623 | frame. If you type @kbd{C-x C-c} (@code{save-buffers-kill-terminal}) |
| 1621 | @command{emacsclient} was waiting for server edits to finish, Emacs | 1624 | in a client frame, that command does not kill the Emacs session as it |
| 1622 | marks the client's server buffers as finished (as though you had typed | 1625 | normally does (@pxref{Exiting}). Instead, Emacs deletes the client |
| 1623 | @kbd{C-x #} in all of them), allowing @command{emacsclient} to regain | 1626 | frame; furthermore, if the client frame has an @command{emacsclient} |
| 1624 | control and exit. When Emacs is started as a daemon, all frames are | 1627 | waiting to regain control (i.e.@: if you did not supply the @samp{-n} |
| 1625 | considered client frames, so @kbd{C-x C-c} will never kill Emacs. To | 1628 | option), Emacs deletes all other frames of the same client, and marks |
| 1626 | kill the Emacs process, type @kbd{M-x kill-emacs}. | 1629 | the client's server buffers as finished, as though you had typed |
| 1630 | @kbd{C-x #} in all of them. If it so happens that there are no | ||
| 1631 | remaining frames after the client frame(s) are deleted, the Emacs | ||
| 1632 | session exits. | ||
| 1633 | |||
| 1634 | As an exception, when Emacs is started as a daemon, all frames are | ||
| 1635 | considered client frames, and @kbd{C-x C-c} never kills Emacs. To | ||
| 1636 | kill a daemon session, type @kbd{M-x kill-emacs}. | ||
| 1637 | |||
| 1638 | Note that the @samp{-t} and @samp{-n} options are contradictory: | ||
| 1639 | @samp{-t} says to take control of the current text terminal to create | ||
| 1640 | a new client frame, while @samp{-n} says not to take control of the | ||
| 1641 | text terminal. If you supply both options, Emacs visits the specified | ||
| 1642 | files(s) in an existing frame rather than a new client frame, negating | ||
| 1643 | the effect of @samp{-t}. | ||
| 1627 | 1644 | ||
| 1628 | @node Printing, Sorting, Emacs Server, Top | 1645 | @node Printing, Sorting, Emacs Server, Top |
| 1629 | @section Printing Hard Copies | 1646 | @section Printing Hard Copies |