From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Proposing changes to adjust_frame_size Date: Thu, 13 May 2021 10:08:24 +0200 Message-ID: <87y2cjm4ew.fsf@gnu.org> References: <69a5e928-2998-f776-fa0d-f35e6ab1e65d@gmx.at> <52a5361a-451e-7167-edfd-09066dfdcc3e@gmx.at> <875yzt907k.fsf@gnu.org> <0633b8ac-de8e-b57a-f3f4-804c5efb009a@gmx.at> <874kfdtj5l.fsf@gnu.org> <37f3ce19-d858-111e-a5aa-06c24803e17b@gmx.at> <87v97tvt7e.fsf@gnu.org> <726883d4-8d13-a3cb-30b7-a74c4b44f8ed@gmx.at> <87a6p3iv9q.fsf@gnu.org> <48753133-11a3-a21f-a1f9-4e58508079ac@gmx.at> <36f3b7b6-b81c-2e89-99c8-0a8837ef7869@gmx.at> <874kfabe7j.fsf@gnu.org> <1de34884-dfa3-92ba-8c6d-d256dcbb5d2b@gmx.at> <871raebctt.fsf@gnu.org> <87sg2tr4u4.fsf@gnu.org> <54259dfb-3ca4-f3b0-8344-f3de5106d286@gmx.at> <875yzof0yi.fsf@gnu.org> <1787102b-e076-825d-4f47-44d3d15fbdba@gmx.at> <875yznkacy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17305"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: Garjola Dindi , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 13 10:20:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lh6aG-0004Mz-4u for ged-emacs-devel@m.gmane-mx.org; Thu, 13 May 2021 10:20:40 +0200 Original-Received: from localhost ([::1]:36388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lh6aF-0007hd-6J for ged-emacs-devel@m.gmane-mx.org; Thu, 13 May 2021 04:20:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lh6ZZ-0006d3-81 for emacs-devel@gnu.org; Thu, 13 May 2021 04:19:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34810) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lh6ZX-00053w-Nr; Thu, 13 May 2021 04:19:55 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:32835) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lh6ZX-000580-HY; Thu, 13 May 2021 04:19:55 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 1FCFE27C0054; Thu, 13 May 2021 04:19:55 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 13 May 2021 04:19:55 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehgedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepve evieekteekveeigfefffeivdetgeduvdffueeuudevgedttdehvdfhueevfffhnecukfhp peekjedrudeifedrfedurdduheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 May 2021 04:19:54 -0400 (EDT) In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269234 Archived-At: martin rudalics writes: >> --8<---------------cut here---------------start------------->8--- >> (tool-bar-mode -1) >> (menu-bar-mode -1) >> (when (fboundp 'scroll-bar-mode) >> (scroll-bar-mode -1)) >> (when (fboundp 'horizontal-scroll-bar-mode) >> (horizontal-scroll-bar-mode -1)) >> >> (setq default-frame-alist '((width . 90) >> (height . 50))) >> --8<---------------cut here---------------end--------------->8--- >> >> With "emacs -Q --load repro.el" where repro.el contains just the above >> listing, I get an initial frame with the usual annoyance (a menubar >> which vanishes on focus/resize), and in addition C-x 5 2 gives me a new >> frame which has a scrollbar which won't vanish except by M-x >> scroll-bar-mode RET twice. (The first makes the scrollbars appear also >> on the initial frame, the second turns it off in both frames). > > Can you reproduce any of these problems without the > `default-frame-alist' setting? In either case, please do the > > frame_size_history = list1 (make_fixnum (100)); > > assignment and tell me what calling `frame--size-history' gives after > the initial frame has appeared. With --load repro.el the initial frame has: --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 ConfigureNotify, PS=672x756, XS=1594x851, DS=672x756 xg_frame_resized, changed, PS=672x756, XS=1594x851 change_frame_size_1, delayed, PS=672x756, XS=1594x851, DS=672x756 change_frame_size (5), TS=640x756~>1562x851, TC=80x36~>195x40, NS=672x756~>1594x851, IS=672x756~>1594x851, MS=16x42 IH IV tool-bar-lines (2), MS=80x105 IH IV menu-bar-lines (2), MS=80x105 IH IV vertical-scroll-bars (3), TS=1562x851~>1578x851, TC=195x40~>197x40, MS=80x105 IH IV size (1), TS=1578x851~>720x1050, TC=197x40~>90x50, NS=1594x851~>736x1050, IS=1594x851~>736x1050, MS=80x105 xg_frame_set_char_size, visible, PS=1594x851, XS=736x1050, DS=736x1050 ConfigureNotify, PS=1594x851, XS=1594x878, DS=736x1050 xg_frame_resized, changed, PS=1594x851, XS=1594x878 change_frame_size_1, delayed, PS=1594x851, XS=1594x878, DS=736x1050 change_frame_size (5), TS=1578x851~>1578x878, TC=197x40~>197x41, NS=1594x851~>1594x878, IS=1594x851~>1594x878, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- > After that do > > (setq frame-size-history '(100)) > > run C-x 5 2 and again post what `frame--size-history' returns. --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>720x1050, TC=80x25~>90x50, NS=656x525~>736x1050, IS=656x525~>736x1050, MS=16x42 IH IV scroll-bar-width (3), NS=736x1050~>752x1050, IS=736x1050~>752x1050, MS=80x105 scroll-bar-height (3), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=752x1050, XS=752x1050, DS=752x1050 xg_frame_set_char_size (5), MS=16x42 IH IV x_make_frame_visible MapNotify, not hidden & not iconified, PS=752x1050, DS=752x1050 ConfigureNotify, PS=752x1050, XS=752x1050, DS=752x1050 xg_frame_resized, unchanged, PS=752x1050, XS=752x1050 ConfigureNotify, PS=752x1050, XS=794x878, DS=752x1050 xg_frame_resized, changed, PS=752x1050, XS=794x878 change_frame_size_1, delayed, PS=752x1050, XS=794x878, DS=752x1050 change_frame_size (5), TS=720x1050~>762x878, TC=90x50~>95x41, NS=752x1050~>794x878, IS=752x1050~>794x878, MS=16x42 IH IV set_window_configuration (4), MS=80x105 IH IV --8<---------------cut here---------------end--------------->8--- And now the same with the repro.el where the default-frame-alist setting is commented out, and thereby it works all fine, i.e., the initial frame has tool/menu/scrollbars disabled and the second frame has, too. Initial frame: --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 ConfigureNotify, PS=672x756, XS=1594x851, DS=672x756 xg_frame_resized, changed, PS=672x756, XS=1594x851 change_frame_size_1, delayed, PS=672x756, XS=1594x851, DS=672x756 change_frame_size (5), TS=640x756~>1562x851, TC=80x36~>195x40, NS=672x756~>1594x851, IS=672x756~>1594x851, MS=16x42 IH IV tool-bar-lines (2), MS=80x105 IH IV menu-bar-lines (2), MS=80x105 IH IV vertical-scroll-bars (3), TS=1562x851~>1578x851, TC=195x40~>197x40, MS=80x105 IH IV ConfigureNotify, PS=1594x851, XS=1594x878 xg_frame_resized, changed, PS=1594x851, XS=1594x878 change_frame_size_1, delayed, PS=1594x851, XS=1594x878 change_frame_size (5), TS=1578x851~>1578x878, TC=197x40~>197x41, NS=1594x851~>1594x878, IS=1594x851~>1594x878, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- C-x 5 2 frame: --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), MS=80x105 scroll-bar-height (3), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=656x756, XS=656x756, DS=656x756 xg_frame_set_char_size (5), MS=16x42 IH IV x_make_frame_visible MapNotify, not hidden & not iconified, PS=656x756, DS=656x756 ConfigureNotify, PS=656x756, XS=656x756, DS=656x756 xg_frame_resized, unchanged, PS=656x756, XS=656x756 ConfigureNotify, PS=656x756, XS=794x878, DS=656x756 xg_frame_resized, changed, PS=656x756, XS=794x878 change_frame_size_1, delayed, PS=656x756, XS=794x878, DS=656x756 change_frame_size (5), TS=640x756~>778x878, TC=80x36~>97x41, NS=656x756~>794x878, IS=656x756~>794x878, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- >> Also interestingly, with just emacs -Q, C-x 5 2 exhibits the "toolbar >> is missing in the new frame" issue. > > Again, I'd need to know what `frame--size-history' tells about this. Initial frame: --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 ConfigureNotify, PS=672x756, XS=1594x851, DS=672x756 xg_frame_resized, changed, PS=672x756, XS=1594x851 change_frame_size_1, delayed, PS=672x756, XS=1594x851, DS=672x756 change_frame_size (5), TS=640x756~>1562x851, TC=80x36~>195x40, NS=672x756~>1594x851, IS=672x756~>1594x851, MS=16x42 IH IV tool-bar-lines (2), MS=80x105 IH IV ConfigureNotify, PS=1594x851, XS=1594x810 xg_frame_resized, changed, PS=1594x851, XS=1594x810 change_frame_size_1, delayed, PS=1594x851, XS=1594x810 change_frame_size (5), TS=1562x851~>1562x810, TC=195x40~>195x38, NS=1594x851~>1594x810, IS=1594x851~>1594x810, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- C-x 5 2 frame: Oh, too bad, that doesn't happen anymore. The new frame has a toolbar immediately. Anyway, I'll post the history anyway... --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV x_make_frame_visible MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 ConfigureNotify, PS=672x756, XS=794x851, DS=672x756 xg_frame_resized, changed, PS=672x756, XS=794x851 change_frame_size_1, delayed, PS=672x756, XS=794x851, DS=672x756 tool-bar-lines (2), MS=80x105 IH IV ConfigureNotify, PS=672x756, XS=794x810, DS=794x851 xg_frame_resized, changed, PS=672x756, XS=794x810, DS=794x851 change_frame_size_1, delayed, PS=672x756, XS=794x810, DS=794x851 change_frame_size (5), TS=640x756~>762x810, TC=80x36~>95x38, NS=672x756~>794x810, IS=672x756~>794x810, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- > Is this behavior new or did it already occur in Emacs 27? Yes, with my repro.el containing the `default-frame-alist' setting, the initial frame has a menubar (until resize/focus), and the new frame after C-x 5 2 has a scrollbar. Bye, Tassilo