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: Wed, 12 May 2021 21:06:44 +0200 Message-ID: <875yznkacy.fsf@gnu.org> References: <69a5e928-2998-f776-fa0d-f35e6ab1e65d@gmx.at> <87pmy3x620.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="894"; 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 Wed May 12 22:16:01 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 1lgvGy-00005t-S5 for ged-emacs-devel@m.gmane-mx.org; Wed, 12 May 2021 22:16:00 +0200 Original-Received: from localhost ([::1]:49854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgvGx-00055s-QC for ged-emacs-devel@m.gmane-mx.org; Wed, 12 May 2021 16:15:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgukG-0005W6-Er for emacs-devel@gnu.org; Wed, 12 May 2021 15:42:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41926) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgukF-0001uY-GV; Wed, 12 May 2021 15:42:11 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:45469) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgukE-0008Oo-TA; Wed, 12 May 2021 15:42:10 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 8398B27C0054; Wed, 12 May 2021 15:42:10 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 12 May 2021 15:42:10 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehvddgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 May 2021 15:42:09 -0400 (EDT) In-reply-to: <1787102b-e076-825d-4f47-44d3d15fbdba@gmx.at> 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:269218 Archived-At: martin rudalics writes: >> I can when my emacs frame is floating. If it is tiling, nothing changes >> (which is expected). But if I make it floating afterwards, it'll have >> the height/width as specified by the frame parameters. >> >>> Does your frame resize when you toggle the vertical scroll bar >>> on/off? >> >> Again, yes when floating, no when tiling. > > Is everything redisplayed as expected in the tiled case when you do > either of that? Yes, I think so. > For example, try to turn off vertical scroll bar -> put it on the left > -> turn it off again -> put it back on the right. Yes, looks all right with emacs -Q. But with my normal config which includes (scroll-bar-mode -1), when I do `C-x 5 2' the new frame has a scrollbar on the right which won't vanish when resizing or switching focus. That happens with a freshly started emacs reproducibly but not with the longer running instance I'm writing this mail in. I'll see if I can reduce my config to the essentials triggering this behavior... ... Oh, that was easier as expected. --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). >>> I've pushed it now. It should fail in the usual manner with >>> >>> (setq frame (make-frame '((visibility . nil) (width . 80)))) >>> (make-frame-visible frame) >>> >>> Please verify. >> >> I'm happy not to disappoint you. ;-) > > OK. So people who do that on a tiling WM will be punished. It's not a hard punishment, and I guess tiling WM users usually won't specify a width anyway, so the issue is present at most when some package does that. (Without width, it works just fine.) Also interestingly, with just emacs -Q, C-x 5 2 exhibits the "toolbar is missing in the new frame" issue. When I load the repro.el from above before C-x 5 2, the new frame has no toolbar or menubar but the scrollbar is there in the new frame. Bye, Tassilo