From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31020: 27.0; Please provide a way to know about menu-bar wrapping Date: Mon, 02 Apr 2018 09:08:58 +0300 Message-ID: <837epq6sxx.fsf@gnu.org> References: <37c99926-a5e5-4fa8-b734-6f9c146740e9@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522649289 16541 195.159.176.226 (2 Apr 2018 06:08:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 06:08:09 +0000 (UTC) Cc: 31020@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 08:08:05 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 1f2sdP-0004Cb-PA for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 08:08:04 +0200 Original-Received: from localhost ([::1]:35178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2sfT-0002JY-7X for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 02:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2sfN-0002J7-LS for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 02:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2sfK-0007ZO-DN for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 02:10:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f2sfK-0007ZE-9Y for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 02:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f2sfJ-0002QI-Um for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 02:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Apr 2018 06:10: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.15226493459244 (code B ref 31020); Mon, 02 Apr 2018 06:10:01 +0000 Original-Received: (at 31020) by debbugs.gnu.org; 2 Apr 2018 06:09:05 +0000 Original-Received: from localhost ([127.0.0.1]:34636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f2seP-0002P2-IE for submit@debbugs.gnu.org; Mon, 02 Apr 2018 02:09:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f2seO-0002OY-Cm for 31020@debbugs.gnu.org; Mon, 02 Apr 2018 02:09:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2seF-0006i7-SR for 31020@debbugs.gnu.org; Mon, 02 Apr 2018 02:08:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2seF-0006hz-Oi; Mon, 02 Apr 2018 02:08:55 -0400 Original-Received: from [176.228.60.248] (port=3129 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f2seE-0001Iz-1i; Mon, 02 Apr 2018 02:08:54 -0400 In-reply-to: <37c99926-a5e5-4fa8-b734-6f9c146740e9@default> (message from Drew Adams on Sun, 1 Apr 2018 20:03:00 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:144787 Archived-At: > Date: Sun, 1 Apr 2018 20:03:00 -0700 (PDT) > From: Drew Adams > > When a frame is narrower than the text in the > menu-bar, that text is wrapped. And yet the value of frame parameter > `menu-bar-lines' is not increased (which is good). > > It would be good to be able to know (from Elisp) how many "visual" > (effective) menu-bar lines there are currently, that is, how many times > the menu-bar text is wrapped. (It is typically wrapped zero or one > time, producing text that appears visually to be two lines.) I don't understand why you think that the menu-bar-lines parameter should not be it. AFAIU, the problem with setting it (or any other frame parameter) to the actual value is that with many toolkits Emacs simply doesn't know the correct value. But maybe Martin will have some trick up his sleeves.