From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sun, 14 Feb 2021 22:20:14 +0100 Message-ID: <87r1li2vox.fsf@posteo.net> References: <87v9aubm96.fsf@gnus.org> <83a6s6bkrg.fsf@gnu.org> <87czx2ifyp.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 22:21:19 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lBOpT-0003MR-5t for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 22:21:19 +0100 Original-Received: from localhost ([::1]:51634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBOpS-00068k-6v for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 16:21:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBOoY-0005AK-Ts for emacs-devel@gnu.org; Sun, 14 Feb 2021 16:20:22 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:34567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBOoU-0006pr-SR for emacs-devel@gnu.org; Sun, 14 Feb 2021 16:20:22 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4DDDF240101 for ; Sun, 14 Feb 2021 22:20:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613337616; bh=GZ9FKhuaq5PFOTCaxTqAZutAR2USx+xq2t8Y3W4KSuw=; h=From:To:Cc:Subject:Date:From; b=hoWsixacbmNYHXy8eJyJOG3NACfyqLH5oYDe9iK8Hc+nPnVQVuG+VQnpAgzey7UD0 n3aKaDgVnqG8/70BxGdUbdvgkC6Tp0F29hO9OGsW1n9Z0dJQ9/HYiHBX+8YVhMCuVS 2qGbm/6CB+AXfN4hixf8c9nRmlwzxP+I8oZNNyLVQ9//2ov1N85h2s8gJPC40Nq96I 4wB/odkKGHnHpT8ku97g9O9xAYKwm0riJD3H3muCd9lFg0a4eQKzmS3HlWYhLvbE6q uCd5ecvHBVkY3+ozZoAkAhk8I6EZExFRvDyksEzLTE6WxwrL87K7YFtj4pQ7PT+KXQ 8WBrehW/faSuA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Df0WM29tNz6tm8; Sun, 14 Feb 2021 22:20:15 +0100 (CET) In-Reply-To: (Alan Mackenzie's message of "Sun, 14 Feb 2021 20:25:14 +0000") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264783 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alan Mackenzie writes: > Hello, =C3=93scar > > On Sun, Feb 14, 2021 at 20:53:18 +0100, =C3=93scar Fuentes wrote: >> Eli Zaretskii writes: > >> >> Now that we have mode markup, should there be a command like `M-x', b= ut >> >> instead lists only those commands that are specifically relevant to t= he >> >> current buffer? > >> > Like I said before: instead of removing what seems irrelevant, make >> > them appear after the relevant parts. Otherwise we will lose >> > information when we guess wrong (which is an easy mistake to make, >> > since the assumption that the user always wants only the commands from >> > the current major mode is not always true). > >> That defeats the purpose of the feature, which is showing what is >> relevant and ignore the rest. > >> Listing the irrelevant commands would only serve to confuse and overload >> the user. > > For the way I use M-x, I absolutely need what you call "irrelevant" > commands. Suggesting that these "confuse and overload" me is not a nice > thing to do. What might be interesting is to filter out commands that have to be used with a certain major or minor mode. E.g. do python-mode commands have to be shown when I'm in a c-mode buffer? =2D-=20 Philip K. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCAAxFiEEbW+YL3e0aNnYosjIGB9bla4wszYFAmAplA4THHBoaWxpcGtA cG9zdGVvLm5ldAAKCRAYH1uVrjCzNqufC/9b/HdLQ3fj2QJXsgk/dSh62rYb7hz6 ub25AKIxBV14xbVHNqjN5v+Eza6zslYvifKlZU9Rp5zQnTdt/1eh3gG5h8+/e1VD h90jzdi5W8P8s42pN5T9AjfsWrHtH535bpwWtkvZxAMk0vXauYeqkUhIeM7nU7ls Anw/vgld52M+HlYTqcQUAJ6pm4gt82vHn7UiVThawKf29Q9fbKP8+mf+4KrJCiB4 dQD7jMWTDNGhp0d5TgaJsi+Yrl6ct34EykWl/zh829kLyHJPF3vEd39m39uaYSkf mjYHr5qfMPotEgbR94dMGZuNMaJ7x7vqS3M9X4XOMUT6RgJRmeEJSI42ElCwQhNW pQLHcJHbzqj95O1ny6WWNDS2RXk3PJ1phLgmuKEGmxUBA7Y+2SacfpjjfnL7Ywr5 R2TQW4Epb/7WD70SxxIV89CwUgaXaCvIGjXVHjvWOPsNL6KPP8TF2IB6oivzGgSn egxEgD+df5qwwWoYNeucF1PrWzN0w70M3Mc= =FJmV -----END PGP SIGNATURE----- --=-=-=--