From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#52874: [External] : Re: bug#52874: 26.3; Be able to keep current menu-bar menus when minibuffer is used Date: Thu, 30 Dec 2021 15:43:20 +0000 Message-ID: References: <8335mak53n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "52874@debbugs.gnu.org" <52874@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 30 16:44:30 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 1n2xbR-0005yu-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 16:44:29 +0100 Original-Received: from localhost ([::1]:57608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2xbQ-0001Oe-05 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Dec 2021 10:44:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2xb0-0001Ng-Dn for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 10:44:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2xb0-0006CA-4b for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 10:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2xb0-0005vH-38 for bug-gnu-emacs@gnu.org; Thu, 30 Dec 2021 10:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Dec 2021 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52874 X-GNU-PR-Package: emacs Original-Received: via spool by 52874-submit@debbugs.gnu.org id=B52874.164087900622669 (code B ref 52874); Thu, 30 Dec 2021 15:44:02 +0000 Original-Received: (at 52874) by debbugs.gnu.org; 30 Dec 2021 15:43:26 +0000 Original-Received: from localhost ([127.0.0.1]:54264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2xaP-0005tZ-Qh for submit@debbugs.gnu.org; Thu, 30 Dec 2021 10:43:26 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:65202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2xaN-0005tI-Om for 52874@debbugs.gnu.org; Thu, 30 Dec 2021 10:43:24 -0500 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BUFLaFF028525; Thu, 30 Dec 2021 15:43:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=zAaULWfqr2s1ANcDLXe9Y5Qd7KHuBKI8FaeCkWVKCps=; b=wfSO+mvMxzvUlhU73omyK4sdl77BfT75V9Od+MHG5pizQA+ynV2OTsn0vrWONVxAq5m/ lEv5yatIb4/Agnu7XqJM+2xlVpTaoADbKD5/phxIx60XPb44os1TO05LfyAQH2TcuG1+ xud/yQyweZAZ0rcq08rRw8SjJHH10O+MGQK4wsziiGRaF3YQqDTF17WB5zPgI2kgnOMl 9VqNO24DumM9yGDnFZfobIh4OuHuH11Rn0nCiHkUX/GD5mv4xe3cEvN6AQPY32vZAedM xJSIbDVSFFOZNbo8cKugY6qCiOdkdUAXHgdUmKKPtfaQkgCFd6bBiOHqUptLzDGOA265 HQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3d9fbc8104-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Dec 2021 15:43:23 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BUFZlOu089586; Thu, 30 Dec 2021 15:43:22 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2107.outbound.protection.outlook.com [104.47.70.107]) by aserp3030.oracle.com with ESMTP id 3d5sbf832a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Dec 2021 15:43:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RtnZINKw7wNBtGih893HmhDZc1x0h6NKw3RFiqiJd6/4JRUIZ//eejPvGL4KWu/a9yqz87repceELqiUKF7SqFW7OgUvje7WMv8W/Hq//c89Wg3KhW5o2ZHpm+S1B5htPDD2I7mecR50hJEBndoJx9DFhgJ/pu6K5xn7rQ7rK7v1FO+TneBd1ZO0TFH0ZKo2qLS5IJS7PtIZjif12Fde/rTdPS31FAKex3RDCRzrfOkx1ejnRGksxU/aJUojgvRXVYjUFQOC67ov1ZBeEoGTl1ucYPf9JDWdKAyTNWytf9PHbnerfi1mErREL5IW44GaesftjrX8od1YS/iiut47Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zAaULWfqr2s1ANcDLXe9Y5Qd7KHuBKI8FaeCkWVKCps=; b=bgajGmj5F7OuMJvQgH9NEhiAZhgTaV0R4A5ho39SIDH68T0WDKQdmI8DSnIo8Lke2ImjdNczN0bezniLJYB4a4Yigec6TgWtri8a1N2WFMx60b7A7ow7Mh07+jzmcSo2vBGDPk7E2i1hs7GuyCKY430+v+YvUtYmOEeRBKD3Qgje8S9dHXbgpnGJ0YhgPXdvUHpDwEl2e/6Lo0f99z6gljLzNy9xgYKHn4ARq9JZhD0PcqGRWvqCLfqGYVFyLS/GEuB6O9WVvJOi41Pxru4JgWeENwGFCpSgmAoVMfhZksTv4dbA1sC+n7xi39Ao9km4705EXmhYXyEiw82OPKeefg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zAaULWfqr2s1ANcDLXe9Y5Qd7KHuBKI8FaeCkWVKCps=; b=KBuSXT3cjXqXNzJB/9HW75D6OFuYkBJ008JcxkPhdGlaUPBYPLXej67Pv6zDkYhi0OlgUhdJYsKXMTbz5vaZhr7PMduyQO9SCu1hxkh29H8c0xxCpVrCXEBHead18repti01YGlVoy9Bg9suoh2JCu+Z3BzLrB2S11jRNnwnOYQ= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3463.namprd10.prod.outlook.com (2603:10b6:a03:118::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.14; Thu, 30 Dec 2021 15:43:20 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%7]) with mapi id 15.20.4844.014; Thu, 30 Dec 2021 15:43:20 +0000 Thread-Topic: [External] : Re: bug#52874: 26.3; Be able to keep current menu-bar menus when minibuffer is used Thread-Index: Adf80heJSZWfr36aRnq65sd9kLn5RQAb/pQMABM7NZA= In-Reply-To: <8335mak53n.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 084b2919-4336-4a98-99e5-08d9cbab1b2f x-ms-traffictypediagnostic: BYAPR10MB3463:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1RZPQYpsNHaFbjk2mHM+aOFlzQPn1Y/zbUzPSADnpHw9l+SeUj0GXiamx4ANMu7FpebRXX8OQOMWtVM4OqA7b+rwO9KCYC9LkNzk8R2ivAEE0JvNekXdDNEfisvgsSib/wWSciKaME+SxitpdArFdhREiU/bq0Q1FxqIWRD5OYz5jK8wUkDOTe9Mf6aOlAGsDBAgDr1/AoJ9eWkvnU7DSfY/Gb8OcB4P1hmhkODygKn7cx8mTBXPtj9jswtSZT9mZUlnmi1vqHnSX98DVcU4yu7blxRfFm9rXIziG0XXi0XsHk/nWWZN1Oajkv/21QbGqs+RET+3aXENPlhN9XfeoXgL3yhnRAM2D3Cabfa2uKIx8PcOWFSEjxRc+p9t4+KUeie/UL+emWLeAL7CdGKB7N11j0Wwzz4rmYY3sDyflRPU8qyrqlDFdQECR30pf4sGL257TrAG+14PACZ0NP8JfOFsui0YcWtvq3rlepkZxgS8vQ5JHff8CflLjitumoXq0qR805atdKQaL8fYl6vtwPPnOO3jsjvKfmDe0pY4jm/smSTFapeZkBxRbtQf7eMOL2zyCnLGPpLQ7KDwWuv3Xefh3IV/T840/CNTdoMnMYwGxXoAF+AWn6RMa2V25vODujdYEa0L0GKkjHtIuUbGwtG0epKJmxU0/6yy8hjDRE/OM77rVWi0qgvQUMpgrYFdugwK0gO2NvPmhNGXDdfN+vErwesk0atr/Fib0AGGHtd7VwW5isvSXsNCiY+im d+kSFJ+2BSjHMpBCrLa9k4vfJKX4YRItXVuOZQLRxErQ/k= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(55016003)(76116006)(66446008)(66476007)(66556008)(64756008)(5660300002)(26005)(38100700002)(83380400001)(6506007)(8676002)(316002)(66946007)(52536014)(8936002)(186003)(38070700005)(86362001)(33656002)(2906002)(4326008)(71200400001)(966005)(508600001)(7696005)(122000001)(6916009)(44832011)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: EA7LmRUpE0RuVyH/XoIYDinpYuHPwLqdztmWzF2BjMsAJPim1MfBUBHHXq3qnDK9QuA5CzIm+DdZEGHryHSMt6ishft3gGx2gNwhZyLg7p/JE67xvjNGT2S/4KTahw3ur1/owjPzFAxEcnAqor3L3HByZ6+At4uZmJNbzt7/gMuRKoHEOXu/tXlK635A0zotyLTzN48H/qUznjjgklrM1CINPfBu7pBhKkt4AH3PCGMBkoYZDvHhdSpVo9U3whCUeDZD+mRS4MqeCgEF97WotS6eilg1v5dw576Gv14JWGAsCvZBVUl2RARknC1uaO8vJLZnG167nUH3T+pQoRtdCU/irUVesNvyxR0BUHZgryYQgiRhwVyyMRnD3/UjAtDn6GyvZZqtIN8bCVwmVNS0qGMLri+d8fRAg2uSMrt01NqJnx1F+J71kTJYl74YTLXAxV22A6r9qVwqkuPBpcDvZw2shOXoIRXiMQlDvMkQqsQvwQPdQy9lREQhqDaLrtEJn4paoA/QtplEyLPWzKfHl5GMDwvt5QPjteN8fWv3pzijYSNiuJC9PhhZyGoTrNu7xGAG/8sZc5arU7e5nVjOaVDOWZvUzOKFJoVevpuxLtngtreDeFBbK4TxEnaHNTxcX1QnyPRX6jNUukHAb1X8WtMYWRqkT5TecmjfyS1vhpyF+aQysXtuJJdpkuirh7b/Yrzvm8Ztg9ApEY5NmpLUv4ox1wCNUfvt8Hl6wd9eCwgm2dB5miOufbcU5X yexnSGAI0Mjq3NlaMQC/e2BXsa98F2V1TGDHj4rigmjpSfzIt3p7RiIC98fNMlnB8GJfmglhfciKRE/X96y5zFr1AgNUoYAWzj X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 084b2919-4336-4a98-99e5-08d9cbab1b2f X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2021 15:43:20.5273 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /dvz1oeEC39uc1jOUNmzuRA4eOFbgg5drf8HyMwWKXjXdSOWH8rUJOsuE/veM5o6Jie8THZ5zhGQ1LVZQ9tnug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3463 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10213 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112300089 X-Proofpoint-GUID: yky7u3BKyCkoKNMCJw8lqRFYoRs8INzM X-Proofpoint-ORIG-GUID: yky7u3BKyCkoKNMCJw8lqRFYoRs8INzM 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:223428 Archived-At: > > The problem is that when the > > minibuffer is active, the menu-bar menus are no > > longer those for what was the current buffer > > before it was active. > > > > The problem is not the _addition_ of a Minibuf > > menu to the menu-bar. The problem is that the > > menu-bar menus are changed to be those for the > > new current buffer, which is the minibuffer. > > > > It should be enough that menu Minibuf is added, > > and so available. There's little sense in > > changing the other menus to those for a > > relatively plain buffer such as the minibuffer. >=20 > It _is_ added, after removing the parts that were > specific to the mode of the original buffer. The > "constant" parts of the menu bar are kept. Yes, that's what I said: Minibuf is added and the non-"constant" menus are removed. It's the removal of those non-constant menus that I'm asking to _be able_ to prevent from happening. > I still don't understand what kind of problem this causes. In your > Dired example, the Dired-specific menu items are not useful in the > minibuffer; in fact, using those menu items could get the user in > trouble (recursive minibuffers and all that). Please see the original bug report. They _are_ useful for a command that uses the minibuffer to browse and use the menu-bar menus. In such a context it's useful to see what the menu-bar menus are for the mode in question, because that's the mode the command was invoked in. > On the practical side, adding menu items could easily overflow the > one screen line allocated to the menu bar, after which the behavior > becomes ugly and toolkit-dependent. That's a general problem. It's not particular to this context. And the only menu added is Minibuf. And if you really think that's a problem then the ability to keep the menu-bar as it was when the minibuffer is entered could forego adding menu Minibuf to the menu-bar. Not a problem. This is about _allowing_ (e.g. by binding a var) code to keep the menu-bar as it was when the minibuffer was entered. It's not about imposing such behavior. Allow. Temporarily. > So I think you suggestion, if accepted, would be a step in the wrong > direction. Again, it would be done only by choice, e.g. for a given command. The point is that a command whose purpose is to do something with the menu-bar menus is about the menus that are active when (i.e., just as/before) that command is invoked. Its entire behavior is about those menus - _not_ the Minibuf menu plus "the constant parts of the menu-bar". It's about a command that, like `menu-bar-open', uses the menu-bar as it was before that command is invoked. When `menu-bar-open' is invoked, the menu-bar menus aren't changed (the minibuffer isn't used). A command that navigates the menus using the minibuffer should, likewise, be able to prevent the menu-bar menus from changing. That's all. For my particular use case, such a command is `lacarte-execute-menu-command'. I'd like to be able to have it bind a global variable that would prevent the menu-bar from changing as long as that binding is in effect. ___ https://www.emacswiki.org/emacs/download/lacarte.el