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#31020: 27.0; Please provide a way to know about menu-bar wrapping Date: Wed, 04 Apr 2018 09:49:48 +0200 Message-ID: <5AC4839C.3030501@gmx.at> References: <<37c99926-a5e5-4fa8-b734-6f9c146740e9@default>> <<837epq6sxx.fsf@gnu.org>> <5AC323F2.9060903@gmx.at> <5ab23eb3-9744-4175-b15c-b3feee653876@default> 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 1522828150 18713 195.159.176.226 (4 Apr 2018 07:49:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2018 07:49:10 +0000 (UTC) Cc: 31020@debbugs.gnu.org To: Drew Adams , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 04 09:49:06 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 1f3dAH-0004e7-DK for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Apr 2018 09:49:05 +0200 Original-Received: from localhost ([::1]:41062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3dCL-0003YM-2s for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Apr 2018 03:51:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3dCE-0003YB-S6 for bug-gnu-emacs@gnu.org; Wed, 04 Apr 2018 03:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3dCA-00076Q-0h for bug-gnu-emacs@gnu.org; Wed, 04 Apr 2018 03:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3dC9-00076G-T6 for bug-gnu-emacs@gnu.org; Wed, 04 Apr 2018 03:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f3dC9-00080B-Mf for bug-gnu-emacs@gnu.org; Wed, 04 Apr 2018 03:51: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: Wed, 04 Apr 2018 07:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31020 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31020-submit@debbugs.gnu.org id=B31020.152282821130701 (code B ref 31020); Wed, 04 Apr 2018 07:51:01 +0000 Original-Received: (at 31020) by debbugs.gnu.org; 4 Apr 2018 07:50:11 +0000 Original-Received: from localhost ([127.0.0.1]:37569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3dBK-0007z7-V3 for submit@debbugs.gnu.org; Wed, 04 Apr 2018 03:50:11 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:47853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f3dBI-0007yu-HC for 31020@debbugs.gnu.org; Wed, 04 Apr 2018 03:50:08 -0400 Original-Received: from [192.168.1.100] ([212.95.5.201]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRocn-1exPvL0gmX-00Sy0M; Wed, 04 Apr 2018 09:49:58 +0200 In-Reply-To: <5ab23eb3-9744-4175-b15c-b3feee653876@default> X-Provags-ID: V03:K0:Y/mHHew4oKLHk5itoYPg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 X-BeenThere: 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:144875 Archived-At: > Yes. But you'll perhaps tell me to do things another > way (e.g., pixelwise). ;-) I'm afraid that both approaches might face similar problems. > If my code could know how many _effective_ (i.e., > visual) `menu-bar-lines' were currently present then > it would just DTRT. Why don't you try to divide the value of (cddr (assq 'menu-bar-size (frame-geometry))) by 'frame-char-height'? IIUC the character height used by a toolkit for drawing the menu bar is of no use to you anyway. But to fit a frame you (and the pixelwise fitter as well) would have to be able to tell _in advance_ whether the menu bar will wrap. And this is impossible since at least on a proprietary system like Windows you would have to know which algorithm it uses for aligning menu bar elements. Or am I missing something? martin