From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52973: Adding a few context-menu-mode commands Date: Thu, 13 Jan 2022 10:39:25 +0200 Organization: LINKOV.NET Message-ID: <86bl0gt47q.fsf@mail.linkov.net> References: <87o84tp69h.fsf@posteo.net> <874k6idjod.fsf@posteo.net> <86o84pthgp.fsf@mail.linkov.net> <87pmp4lmfz.fsf@posteo.net> <86pmp41vby.fsf@mail.linkov.net> <83czl47ghd.fsf@gnu.org> <86ee5kzjo2.fsf@mail.linkov.net> <83bl0o6oei.fsf@gnu.org> <87iluwkkyn.fsf@posteo.net> <83k0fc54bd.fsf@gnu.org> <86bl0m13o1.fsf@mail.linkov.net> <87czkxbhsb.fsf@gnus.org> <83sftt5c99.fsf@gnu.org> <86ilupt0d1.fsf@mail.linkov.net> <838rvk6em4.fsf@gnu.org> <86tue8rfug.fsf@mail.linkov.net> <834k6869gl.fsf@gnu.org> <86k0f4rbcf.fsf@mail.linkov.net> <83y23k4tof.fsf@gnu.org> <86sftsohay.fsf@mail.linkov.net> <83sfts4rer.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: larsi@gnus.org, 52973@debbugs.gnu.org, philipk@posteo.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 13 09:47:35 2022 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 1n7vlf-0009gl-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 09:47:35 +0100 Original-Received: from localhost ([::1]:42624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7vle-0007L5-DA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 03:47:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7vl8-0006c6-Uv for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 03:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7vl8-00015c-La for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 03:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7vl8-0006Rw-LT for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 03:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jan 2022 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52973-submit@debbugs.gnu.org id=B52973.164206360724758 (code B ref 52973); Thu, 13 Jan 2022 08:47:02 +0000 Original-Received: (at 52973) by debbugs.gnu.org; 13 Jan 2022 08:46:47 +0000 Original-Received: from localhost ([127.0.0.1]:60082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7vkt-0006RG-5A for submit@debbugs.gnu.org; Thu, 13 Jan 2022 03:46:47 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7vkq-0006Qo-TE for 52973@debbugs.gnu.org; Thu, 13 Jan 2022 03:46:45 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0F745E0005; Thu, 13 Jan 2022 08:46:36 +0000 (UTC) In-Reply-To: <83sfts4rer.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 12 Jan 2022 22:42:36 +0200") 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:224074 Archived-At: >> >> > A menu item that is not used does no special harm. So why not have >> >> > these items in the menus by default? >> >> >> >> Adding all these items by default will load all these packages by default, >> >> including man.el, hi-lock.el, etc. >> > >> > When will that load these packages? When context-menu-mode is turned >> > on, when the menu is actually popped up, or something else? >> >> When the menu is popped up the first time. > > Then why is that a problem? The problem is that irrelevant packages will be loaded by default. > We could alternatively only have these items when the corresponding > package is loaded, but you rejected that possibility, AFAIU. This means there are no hi-lock/man items by default. Then once the user used `M-x man' or `M-x highlight-regexp', these items will surprisingly appear in the global menu. This makes no sense, there are no such magic things happened on the menu bar.