From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Thu, 19 Aug 2021 10:57:43 +0300 Message-ID: <831r6p3lzc.fsf@gnu.org> References: <74BC00E9-2509-47DA-9428-1523FF7F3B33@acm.org> <87v942pvcj.fsf@mail.linkov.net> <83zgte3asy.fsf@gnu.org> <87mtpepqzw.fsf@mail.linkov.net> <83sfz639lh.fsf@gnu.org> <8735r6ppf0.fsf@mail.linkov.net> <83o89u37gh.fsf@gnu.org> <87wnohx5zd.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17042"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, mattiase@acm.org, homeros.misasa@gmail.com, tkk@misasa.okayama-u.ac.jp, larsi@gnus.org, 50067@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 19 09:59:09 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 1mGcxA-00049X-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 09:59:08 +0200 Original-Received: from localhost ([::1]:45768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGcx8-0006z1-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 03:59:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGcx3-0006ys-Od for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 03:59:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGcx3-0001WD-Hk for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 03:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGcx3-0002FQ-HU for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 03:59: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: Thu, 19 Aug 2021 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50067-submit@debbugs.gnu.org id=B50067.16293598998565 (code B ref 50067); Thu, 19 Aug 2021 07:59:01 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 19 Aug 2021 07:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:58366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGcwH-0002Ds-RC for submit@debbugs.gnu.org; Thu, 19 Aug 2021 03:58:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGcwG-0002De-5L for 50067@debbugs.gnu.org; Thu, 19 Aug 2021 03:58:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36588) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGcw5-0000ic-9T; Thu, 19 Aug 2021 03:58:01 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2016 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGcw4-0002KV-TA; Thu, 19 Aug 2021 03:58:01 -0400 In-Reply-To: <87wnohx5zd.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 19 Aug 2021 10:12:54 +0300) 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:212197 Archived-At: > From: Juri Linkov > Cc: mattiase@acm.org, 50067@debbugs.gnu.org, homeros.misasa@gmail.com, > tkk@misasa.okayama-u.ac.jp, larsi@gnus.org, alan@idiocy.org > Date: Thu, 19 Aug 2021 10:12:54 +0300 > > > OK, but as I wrote elsewhere, I think the string should always be > > present, and if some GUI toolkit wants to ignore it, it should avoid > > putting it into the native menu structure when it creates the menu > > widget(s). The Lisp data should remain the same, IMO. > > GUI toolkits can't ignore titles for all menus. Some menus should be > displayed with a title for all toolkits. Which popup menus have titles that cannot be ignored, and why? > The context menu is special. Nowadays everyone is accustomed to > down-mouse-3 popping up a context menu without title. But other > Emacs-specific menus that are not familiar to users such as > mouse-buffer-menu bound C- should display a title for > all toolkits to explain to the user what choice the menu presents. If we want some titles to behave in special ways, we could put a text property on the title string to mark those titles that should get special treatment. That is better than removing the title, and certainly better than removing it based on the frame type, because then Lisp code which handles the menu keymaps will need to be prepared to handle both kinds of menu keymaps, the ones with a title and ones without it. It is also against the documented practice. So let's please reinstate the title, and use properties or some other mechanism to mark the title strings that need special handling in some circumstances. Thanks.