aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuri Linkov2019-10-13 23:47:33 +0300
committerJuri Linkov2019-10-13 23:47:33 +0300
commit21f2922b8436f67a8519339593cde69083d215c1 (patch)
tree2c0be5e270b345b3ccd0916fcab592ff55caead2 /src
parent88eadc75d0de8534b26fd490143c94ab2ee4cc45 (diff)
downloademacs-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.c32
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.
6271If this option is nil, setting font, menu bar, tool bar, internal 6271If this option is nil, setting font, menu bar, tool bar, tab bar, internal
6272borders, fringes or scroll bars of a specific frame may resize the frame 6272borders, fringes or scroll bars of a specific frame may resize the frame
6273in order to preserve the number of columns or lines it displays. If 6273in order to preserve the number of columns or lines it displays. If
6274this option is t, no such resizing is done. Note that the size of 6274this option is t, no such resizing is done. Note that the size of
@@ -6278,8 +6278,8 @@ width of fullwidth frames never change implicitly.
6278The value of this option can be also be a list of frame parameters. In 6278The value of this option can be also be a list of frame parameters. In
6279this case, resizing is inhibited when changing a parameter that appears 6279this case, resizing is inhibited when changing a parameter that appears
6280in that list. The parameters currently handled by this option include 6280in 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
6284Changing any of the parameters `scroll-bar-width', `scroll-bar-height', 6284Changing 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
6290keep it unchanged if this option is either t or a list containing 6290keep it unchanged if this option is either t or a list containing
6291`vertical-scroll-bars'. 6291`vertical-scroll-bars'.
6292 6292
6293The default value is \\='(tab-bar-lines) in GTK+, (which means that 6293In NS that use the external tool bar and no tab bar, the default value
6294adding/removing a tab bar does not change the frame height), 6294is nil which means that changing any of the parameters listed above
6295\\='(tab-bar-lines tool-bar-lines) on Lucid, Motif and Windows 6295may 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 6296bar, the default value is \\='(tab-bar-lines) which means that
6297change the frame height), nil on all other window systems (which 6297adding/removing a tab bar does not change the frame height. On all
6298means that changing any of the parameters listed above may change 6298other types of GUI frames, the default value is \\='(tab-bar-lines
6299the size of the frame), and t otherwise (which means the frame size 6299tool-bar-lines) which means that adding/removing a tool bar or tab bar
6300never changes implicitly when there's no window system support). 6300does not change the frame height. Otherwise it's t which means the
6301frame size never changes implicitly when there's no window
6302system support.
6301 6303
6302Note that when a frame is not large enough to accommodate a change of 6304Note that when a frame is not large enough to accommodate a change of
6303any of the parameters listed above, Emacs may try to enlarge the frame 6305any of the parameters listed above, Emacs may try to enlarge the frame
6304even if this option is non-nil. */); 6306even 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;