From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Sat, 21 Jul 2018 09:43:33 +0200 Message-ID: <5B52E425.8010608@gmx.at> References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B4C4911.8040900@gmx.at> <5B4D9F5F.20506@gmx.at> <5B4EE5AF.5000304@gmx.at> <5B504994.3090202@gmx.at> <5B5199F7.7000303@gmx.at> <5B51D6C4.9030006@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1532158945 12963 195.159.176.226 (21 Jul 2018 07:42:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2018 07:42:25 +0000 (UTC) Cc: 22000@debbugs.gnu.org, David Engster To: Vivek Dasmohapatra Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 09:42:20 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmWx-0003F6-Di for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 09:42:19 +0200 Original-Received: from localhost ([::1]:51050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgmZ4-0002T9-D0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 03:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgmYf-0002KZ-4Q for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgmYc-0007qd-26 for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgmYb-0007qV-UY for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgmYb-0007s4-KS for bug-gnu-emacs@gnu.org; Sat, 21 Jul 2018 03:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jul 2018 07:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22000-submit@debbugs.gnu.org id=B22000.153215903330223 (code B ref 22000); Sat, 21 Jul 2018 07:44:01 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 21 Jul 2018 07:43:53 +0000 Original-Received: from localhost ([127.0.0.1]:50147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmYS-0007rO-Mz for submit@debbugs.gnu.org; Sat, 21 Jul 2018 03:43:52 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:60985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgmYR-0007rA-C9 for 22000@debbugs.gnu.org; Sat, 21 Jul 2018 03:43:51 -0400 Original-Received: from [192.168.1.101] ([213.162.73.132]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0La2Xx-1gSBiG08tx-00lnO6; Sat, 21 Jul 2018 09:43:37 +0200 In-Reply-To: X-Provags-ID: V03:K1:TffGl5xYQ911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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148762 Archived-At: > It seems to me it should be frame parameter rather than a variable: > Does that seem sensible? We have to document this option so people can find it easily and I'm not sure where and how. Basically, it should go to the Emacs manual and we can provide a reference to section 21.11 Frame Parameters to that effect. So something like mentioning (add-to-list 'default-frame-alist '(gtk-menubar-no-auto-resize . t)) should do, but where? In appendix D.5.3 we say how to set the menu and menu bar style in GTK+ and people might start searching there but I doubt it. In the Tooltips section we say If Emacs is built with GTK+ support, it displays tooltips via GTK+, using the default appearance of GTK+ tooltips. To disable this, change the variable `x-gtk-use-system-tooltips' to `nil'. If you do this, or if Emacs is built without GTK+ support, most attributes of the tooltip text are specified by the `tooltip' face, and by X resources (*note X Resources::). Maybe we could use that as boilerplate for section 21.15 Menu Bars: If Emacs is built with GTK+ support, the latter tries to keep all items on the menu bar visible sometimes resizing the menu bar's frame for that purpose. If you want to keep the frame size constant when Emacs adds an item to the menu bar, customize the frame parameter 'x-gtk-menubar-no-auto-resize' to a non-nil value like (add-to-list 'default-frame-alist '(x-gtk-menubar-no-auto-resize . t)) see section 21.11 ... martin