From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#46178: 28.0.50; auto-resize-tool-bars / auto-resize-tab-bars grow-only Date: Fri, 29 Jan 2021 19:12:02 +0100 Message-ID: <7369c03a-2d74-11d2-d7f6-4aaf60c20874@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16846"; mail-complaints-to="usenet@ciao.gmane.io" To: 46178@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 29 19:13:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l5YGe-0004HQ-3y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 19:13:12 +0100 Original-Received: from localhost ([::1]:36376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5YGc-0006bu-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Jan 2021 13:13:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5YGU-0006bZ-He for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 13:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5YGU-0007BB-8Q for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 13:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5YGU-0005f2-3P for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 13:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jan 2021 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46178 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.161194393821621 (code B ref -1); Fri, 29 Jan 2021 18:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jan 2021 18:12:18 +0000 Original-Received: from localhost ([127.0.0.1]:52920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5YFk-0005cb-SO for submit@debbugs.gnu.org; Fri, 29 Jan 2021 13:12:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5YFi-0005cQ-Kp for submit@debbugs.gnu.org; Fri, 29 Jan 2021 13:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5YFi-0006YJ-Fp for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 13:12:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:42575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5YFc-0006kg-E5 for bug-gnu-emacs@gnu.org; Fri, 29 Jan 2021 13:12:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611943924; bh=ftcfqNWdVlfO+mIho7tRaChRLY363XkhpuAV21lVAO8=; h=X-UI-Sender-Class:To:From:Subject:Date; b=WrtEZltC7bGffYeOnTUaUkjtiLvBTBtW2rGx8y0lS9Rylcx9+XnILAvlJfdyBsAIN EwCW5MUd6o+8PwfbFwy2SQw3YKGQRoxL1H47TYo8YPsG1d37p5nd3YNvUqHaaGWk4r iUgxqVjUFNgZ2fYfdMd+3wbOKdC/djXtW8dOiUBg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.98]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N79yG-1m1xDb3FWO-017Wci for ; Fri, 29 Jan 2021 19:12:03 +0100 Content-Language: en-US X-Provags-ID: V03:K1:sd2QkRnzPJndeXpoLySGGVUrVYBiw5o7VSoZk9U1mNJaHrv9Z/J XX5BJVyEdceCAy54GGvaeNzZt/0nJhnMocuHDuK7YQpnkS2Fe80xZk8fygqmvaLGpAA49Ps Xgf7AeE8SeEiz7euqwJ5umcUJJV7Op1/3NfLoWrPS0sAHosk9iZc2g0a/bmdz650Y7iDUzL ldZ52JaIwlf864tfuGPZA== X-UI-Out-Filterresults: notjunk:1;V03:K0:wOSE5z14n94=:SW+WCDRPxdATtRBOdWngQy utjxIsxhZPBXaWMUogMekMje/HIbdlQAfujjsSK+AkaOTHHOScj2aiGZHii+GmBQ/RibGarTY up/eSRKyvMzI5u2GuUNp+7KYqs9YWKkp7TAyOoIzBl/+UCgXx1z/wwZXnyGQjJoX1A5ncB8Vq 2k11/ZPEvXTldw3MIdKJHFf8Qwu4aA1MAo89YZvOiQTX0eN7N/DC/bQhVklXytymLKdxyxcEe KvqLW/VPdnq0oG76U7IwPMQ3SiDJEKmLpj798+OBh5SWuSr1mx38oBIVyQxrD+W4ldnlpYFId OzNvkmWIl6rYs30K2/rujUFnvU1RFTnyJXmPTLdEM19iQuKd1UgglgjAQ7gbOGoeex2VEiXw6 pTBQemI0JxH7zwjCfUl44K4NIALoZFEjSeJxpDfrnbG/3WSgGvVcMhab+4xrfms84x/WTOcDF MuipiG1R2K9bkoZoFWDq2QyMsE8WbHOmRtUqqi/QLNPTuhEtVnhEcQSi6VdD0XOrJsm5pOsBb 18T1PqGKlERD0aeqRM2NftE3IgftMB48/T1goUcB0RQNpaHIu6Dfzzq6bOWG7Cj3JvKZIBFUC ZCOru3WbBrKUxKHoMdLnZYZLmwrTWn9pEjrwGdBdDhmNww/ALaPak/r6zKlJj4XJq+OA+q6wq Cu7Yhd1WwyvDkycXG99CgGdjozeLew5m9r3xoYXOCvWm86wG40PrFYcdxo8wzboW4Gjh7ohry rQ3mztuIFMLRAlxsgh6RfGpAAVjW6KCMu9inL2VhdEzUajG9TA+eTOahMklvOGXbEBuhU1dY Received-SPF: pass client-ip=212.227.17.20; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198879 Archived-At: With emacs -Q run a graphical build with a tab bar or an internal tool bar (motif, lucid, no toolkit have the latter). Do (setq auto-resize-tab-bars 'grow-only) and/or (setq auto-resize-tool-bars 'grow-only) Now make the frame very narrow so the tool and/or tab bar wrap(s) around. Expand the frame again, so the items on the bar(s) occupy one line only. You will see empty lines below the lines showing the items. According to the doc-strings of the above options and the Elisp manual you should now be able to use 'recenter' to get rid of these empty lines: If value is =E2=80=98grow-only=E2=80=99, the tab-bar=E2=80=99s height = is only increased automatically; to decrease the tab-bar height, use M-x recenter. However, this doesn't work by default since in the following part of 'recenter' if (!NILP (redisplay) && !NILP (Vrecenter_redisplay) && (!EQ (Vrecenter_redisplay, Qtty) || !NILP (Ftty_type (selected_frame)))) { ptrdiff_t i; /* Invalidate pixel data calculated for all compositions. */ for (i =3D 0; i < n_compositions; i++) composition_table[i]->font =3D NULL; #if defined (HAVE_WINDOW_SYSTEM) WINDOW_XFRAME (w)->minimize_tab_bar_window_p =3D 1; #endif #if defined (HAVE_WINDOW_SYSTEM) && ! defined (HAVE_EXT_TOOL_BAR) WINDOW_XFRAME (w)->minimize_tool_bar_window_p =3D 1; #endif Fredraw_frame (WINDOW_FRAME (w)); SET_FRAME_GARBAGED (WINDOW_XFRAME (w)); Vrecenter_redisplay is by default 'tty' and Ftty_type (selected_frame) is nil, so the conjunct never becomes true and minimize_tab_bar_window_p is never set to 1. So we'd have to mention in the docs of this option that one can regain these lines only by setting 'recenter-redisplay' to anything but the default. Better IMHO would be to abolish the never used and completely useless 'grow-only' value for these options. martin