From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31020: 27.0; Please provide a way to know about menu-bar wrapping Date: Mon, 2 Apr 2018 06:25:30 -0700 (PDT) Message-ID: References: <<37c99926-a5e5-4fa8-b734-6f9c146740e9@default>> <<837epq6sxx.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522675451 30443 195.159.176.226 (2 Apr 2018 13:24:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 13:24:11 +0000 (UTC) Cc: 31020@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 15:24:07 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 1f2zRO-0007ov-Vw for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 15:24:07 +0200 Original-Received: from localhost ([::1]:34766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2zTS-0004YA-Hz for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Apr 2018 09:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2zTL-0004XX-7M for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 09:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2zTH-0001kP-Us for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 09:26:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f2zTH-0001k8-Qb for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 09:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f2zTH-0007kU-Dk for bug-gnu-emacs@gnu.org; Mon, 02 Apr 2018 09:26:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Apr 2018 13:26:02 +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.152267554029759 (code B ref 31020); Mon, 02 Apr 2018 13:26:02 +0000 Original-Received: (at 31020) by debbugs.gnu.org; 2 Apr 2018 13:25:40 +0000 Original-Received: from localhost ([127.0.0.1]:34768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f2zSu-0007ju-4f for submit@debbugs.gnu.org; Mon, 02 Apr 2018 09:25:40 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:58258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f2zSt-0007jh-3z for 31020@debbugs.gnu.org; Mon, 02 Apr 2018 09:25:39 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w32DHv0k067447; Mon, 2 Apr 2018 13:25:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=5pWjCRzN2OM+Lmo+Czezf0QzIB9a/dBed9354VdGtgs=; b=Bzy2E82R2NlVrkch9dnDU6K8udb3eCIYTvIJeq5cB00hUOy2dxdzxfRmKFvTGt0ZIfS+ r4OjU4b8UXM+2FlQKsip5/7E5ZtLATM1UxvRIdxhWXv+J7qR08OXsZEM09QAst1XCIPu 7oXREbSLXmLHi0TMp/PqMk64dz3vXKoKQxWMt3j6ZosgKIYdrXk6+WbXxIS2TGzg0eFw 7ED0YDK1R3Q+6hhVq9F7cio/Yicw/HZCYuOwxJ1bYyqbRzx7G/SxDqAy0G5XXArg9i9N 8Tu2Wg0WZbgk8js/8R8CW2oWl5e5BrVtWCBSluv9waSetbjw2of9M94eLGe56LxfW+TQ DQ== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2h3n9g00tg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Apr 2018 13:25:33 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w32DPWIQ025105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Apr 2018 13:25:32 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w32DPVD2031016; Mon, 2 Apr 2018 13:25:31 GMT In-Reply-To: <<837epq6sxx.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8850 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=525 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804020149 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:144795 Archived-At: > > 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.) >=20 > 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. I think it's helpful to distinguish (1) the actual, current number of lines used, reflecting any possible wrapping, from (2) the user's setting of how many lines should be used for the menu-bar. How those are distinguished doesn't matter to me so much. And if you decide that there is no sense in such a distinction, and that the parameter value should be automatically changed, dynamically, as a frame's width is changed (e.g. to force or remove wrapping), then that would probably be OK too. The problem, at least on MS Windows, is that the menu-bar wraps, and there is no way (AFAIK) to know from Lisp who many actual lines are currently used to show the menu-bar. This is an old problem, as you know. It would be really good to finally put it to bed, if possible.