diff options
| author | Martin Rudalics | 2015-02-11 11:02:03 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2015-02-11 11:02:03 +0100 |
| commit | 061c7e2b5a5a5854b2b85f2ace5b1d9222dd7f11 (patch) | |
| tree | c658a73f19db89c78b5b493635e2464102baa873 | |
| parent | 02138cb0b88c5f6addf891d725967d9867eda3f9 (diff) | |
| download | emacs-061c7e2b5a5a5854b2b85f2ace5b1d9222dd7f11.tar.gz emacs-061c7e2b5a5a5854b2b85f2ace5b1d9222dd7f11.zip | |
Add manual entry for fullscreen-restore parameter.
* frames.texi (Size Parameters): Describe `fullscreen-restore'
parameter.
| -rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 18 | ||||
| -rw-r--r-- | lisp/frame.el | 2 |
3 files changed, 21 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 3e5d9acba86..d82be3c83e7 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | 2015-02-11 Martin Rudalics <rudalics@gmx.at> | 1 | 2015-02-11 Martin Rudalics <rudalics@gmx.at> |
| 2 | 2 | ||
| 3 | * frames.texi (Size Parameters): Update description of | 3 | * frames.texi (Size Parameters): Update description of |
| 4 | fullscreen frame parameter. | 4 | fullscreen frame parameter. Describe `fullscreen-restore' |
| 5 | parameter. | ||
| 5 | 6 | ||
| 6 | 2015-02-09 Eli Zaretskii <eliz@gnu.org> | 7 | 2015-02-09 Eli Zaretskii <eliz@gnu.org> |
| 7 | 8 | ||
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 559f4cc56dc..0b8106dfc9c 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -757,6 +757,24 @@ make a frame truly appear ``maximized'' or ``fullscreen''. Moreover, | |||
| 757 | some window managers might not support smooth transition between the | 757 | some window managers might not support smooth transition between the |
| 758 | various fullscreen or maximization states. Customizing the variable | 758 | various fullscreen or maximization states. Customizing the variable |
| 759 | @code{x-frame-normalize-before-maximize} can help to overcome that. | 759 | @code{x-frame-normalize-before-maximize} can help to overcome that. |
| 760 | |||
| 761 | @vindex fullscreen-restore, a frame parameter | ||
| 762 | @item fullscreen-restore | ||
| 763 | This parameter specifies the desired ``fullscreen'' state of the frame | ||
| 764 | after invoking the @code{toggle-frame-fullscreen} command (@pxref{Frame | ||
| 765 | Commands,,, emacs, The GNU Emacs Manual}) in the ``fullboth'' state. | ||
| 766 | Normally this parameter is installed automatically by that command when | ||
| 767 | toggling the state to fullboth. If, however, you start Emacs in the | ||
| 768 | fullboth state, you have to specify the desired behavior in your initial | ||
| 769 | file as, for example | ||
| 770 | |||
| 771 | @example | ||
| 772 | (setq default-frame-alist | ||
| 773 | '((fullscreen . fullboth) (fullscreen-restore . fullheight))) | ||
| 774 | @end example | ||
| 775 | |||
| 776 | This will give a new frame full height after typing in it @key{F11} for | ||
| 777 | the first time. | ||
| 760 | @end table | 778 | @end table |
| 761 | 779 | ||
| 762 | 780 | ||
diff --git a/lisp/frame.el b/lisp/frame.el index dfcebf16455..0096ef9696a 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1906,7 +1906,7 @@ is already fullscreen. | |||
| 1906 | Before making the frame fullscreen remember the current value of | 1906 | Before making the frame fullscreen remember the current value of |
| 1907 | the frame's `fullscreen' parameter in the `fullscreen-restore' | 1907 | the frame's `fullscreen' parameter in the `fullscreen-restore' |
| 1908 | parameter of the frame. That value is used to restore the | 1908 | parameter of the frame. That value is used to restore the |
| 1909 | frame's size when toggling fullscreen the next time. | 1909 | frame's fullscreen state when toggling fullscreen the next time. |
| 1910 | 1910 | ||
| 1911 | Note that with some window managers you may have to set | 1911 | Note that with some window managers you may have to set |
| 1912 | `frame-resize-pixelwise' to non-nil in order to make a frame | 1912 | `frame-resize-pixelwise' to non-nil in order to make a frame |