diff options
| author | Juri Linkov | 2019-10-13 23:47:33 +0300 |
|---|---|---|
| committer | Juri Linkov | 2019-10-13 23:47:33 +0300 |
| commit | 21f2922b8436f67a8519339593cde69083d215c1 (patch) | |
| tree | 2c0be5e270b345b3ccd0916fcab592ff55caead2 /src | |
| parent | 88eadc75d0de8534b26fd490143c94ab2ee4cc45 (diff) | |
| download | emacs-21f2922b8436f67a8519339593cde69083d215c1.tar.gz emacs-21f2922b8436f67a8519339593cde69083d215c1.zip | |
Fix initial value of frame-inhibit-implied-resize
* src/frame.c (syms_of_frame): Update doc string and default value of
frame-inhibit-implied-resize in NS to not include 'tab-bar-lines,
and non-toolkit X builds to include 'tab-bar-lines.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/frame.c b/src/frame.c index 099db29598c..f7e65be727d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -6268,7 +6268,7 @@ a non-nil value in your init file. */); | |||
| 6268 | 6268 | ||
| 6269 | DEFVAR_LISP ("frame-inhibit-implied-resize", frame_inhibit_implied_resize, | 6269 | DEFVAR_LISP ("frame-inhibit-implied-resize", frame_inhibit_implied_resize, |
| 6270 | doc: /* Whether frames should be resized implicitly. | 6270 | doc: /* Whether frames should be resized implicitly. |
| 6271 | If this option is nil, setting font, menu bar, tool bar, internal | 6271 | If this option is nil, setting font, menu bar, tool bar, tab bar, internal |
| 6272 | borders, fringes or scroll bars of a specific frame may resize the frame | 6272 | borders, fringes or scroll bars of a specific frame may resize the frame |
| 6273 | in order to preserve the number of columns or lines it displays. If | 6273 | in order to preserve the number of columns or lines it displays. If |
| 6274 | this option is t, no such resizing is done. Note that the size of | 6274 | this option is t, no such resizing is done. Note that the size of |
| @@ -6278,8 +6278,8 @@ width of fullwidth frames never change implicitly. | |||
| 6278 | The value of this option can be also be a list of frame parameters. In | 6278 | The value of this option can be also be a list of frame parameters. In |
| 6279 | this case, resizing is inhibited when changing a parameter that appears | 6279 | this case, resizing is inhibited when changing a parameter that appears |
| 6280 | in that list. The parameters currently handled by this option include | 6280 | in that list. The parameters currently handled by this option include |
| 6281 | `font', `font-backend', `internal-border-width', `menu-bar-lines' and | 6281 | `font', `font-backend', `internal-border-width', `menu-bar-lines', |
| 6282 | `tool-bar-lines'. | 6282 | `tool-bar-lines' and `tab-bar-lines'. |
| 6283 | 6283 | ||
| 6284 | Changing any of the parameters `scroll-bar-width', `scroll-bar-height', | 6284 | Changing any of the parameters `scroll-bar-width', `scroll-bar-height', |
| 6285 | `vertical-scroll-bars', `horizontal-scroll-bars', `left-fringe' and | 6285 | `vertical-scroll-bars', `horizontal-scroll-bars', `left-fringe' and |
| @@ -6290,25 +6290,27 @@ width by the width of one scroll bar provided this option is nil and | |||
| 6290 | keep it unchanged if this option is either t or a list containing | 6290 | keep it unchanged if this option is either t or a list containing |
| 6291 | `vertical-scroll-bars'. | 6291 | `vertical-scroll-bars'. |
| 6292 | 6292 | ||
| 6293 | The default value is \\='(tab-bar-lines) in GTK+, (which means that | 6293 | In NS that use the external tool bar and no tab bar, the default value |
| 6294 | adding/removing a tab bar does not change the frame height), | 6294 | is nil which means that changing any of the parameters listed above |
| 6295 | \\='(tab-bar-lines tool-bar-lines) on Lucid, Motif and Windows | 6295 | may change the size of the frame. In GTK+ that use the external tool |
| 6296 | \(which means that adding/removing a tool bar or tab bar does not | 6296 | bar, the default value is \\='(tab-bar-lines) which means that |
| 6297 | change the frame height), nil on all other window systems (which | 6297 | adding/removing a tab bar does not change the frame height. On all |
| 6298 | means that changing any of the parameters listed above may change | 6298 | other types of GUI frames, the default value is \\='(tab-bar-lines |
| 6299 | the size of the frame), and t otherwise (which means the frame size | 6299 | tool-bar-lines) which means that adding/removing a tool bar or tab bar |
| 6300 | never changes implicitly when there's no window system support). | 6300 | does not change the frame height. Otherwise it's t which means the |
| 6301 | frame size never changes implicitly when there's no window | ||
| 6302 | system support. | ||
| 6301 | 6303 | ||
| 6302 | Note that when a frame is not large enough to accommodate a change of | 6304 | Note that when a frame is not large enough to accommodate a change of |
| 6303 | any of the parameters listed above, Emacs may try to enlarge the frame | 6305 | any of the parameters listed above, Emacs may try to enlarge the frame |
| 6304 | even if this option is non-nil. */); | 6306 | even if this option is non-nil. */); |
| 6305 | #if defined (HAVE_WINDOW_SYSTEM) | 6307 | #if defined (HAVE_WINDOW_SYSTEM) |
| 6306 | #if defined USE_GTK | 6308 | #if defined (HAVE_NS) |
| 6309 | frame_inhibit_implied_resize = Qnil; | ||
| 6310 | #elif defined (USE_GTK) | ||
| 6307 | frame_inhibit_implied_resize = list1 (Qtab_bar_lines); | 6311 | frame_inhibit_implied_resize = list1 (Qtab_bar_lines); |
| 6308 | #elif defined (USE_LUCID) || defined (USE_MOTIF) || defined (HAVE_NTGUI) | ||
| 6309 | frame_inhibit_implied_resize = list2 (Qtab_bar_lines, Qtool_bar_lines); | ||
| 6310 | #else | 6312 | #else |
| 6311 | frame_inhibit_implied_resize = Qnil; | 6313 | frame_inhibit_implied_resize = list2 (Qtab_bar_lines, Qtool_bar_lines); |
| 6312 | #endif | 6314 | #endif |
| 6313 | #else | 6315 | #else |
| 6314 | frame_inhibit_implied_resize = Qt; | 6316 | frame_inhibit_implied_resize = Qt; |