unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Óscar Fuentes" <ofv@wanadoo.es>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...]
Date: Wed, 17 Feb 2021 18:11:28 +0000	[thread overview]
Message-ID: <SA2PR10MB4474831C087114F2D4D21A78F3869@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87lfbnfr8x.fsf@telefonica.net>

> > How about just "most commands are not mode-specific"?
> 
> That's not my experience.

Stats, please.

> Whenever I use M-x (and I do it a lot, since on my setup it is often
> more ergonomic and faster than remembering and pressing shortcuts) I
> see on the list of completions lots of commands that have nothing to do
> with what I'm doing.

That provides zero info about whether most commands
are mode-specific.  Sorry.

What that indicates is that there are lots of
commands (maybe even most commands) that are not
relevant to what you're currently doing.

That's a completely different ball game.

`M-x TAB' _of course_ shows zillions of commands
that most likely have nothing to do with what
you're currently doing.  And?

Likewise `M-x f TAB', but less so most likely.

> This forces me to write more characters on the
> prompt to further refine the candidates

Well, yes.

If you're in mode `foo', it's likely that many
commands relevant for that mode start with `foo',
in which case `M-x foo TAB' might get you on
your way.  But yes, Emacs doesn't currently
guess "what you're doing", i.e., just what you
have in mind.

> and remember to not use certain inputs which
> bring in lots of irrelevant candidates just
> because the naming scheme they follow.

> Even worse: for any given input to M-x, the
> list of completions greatly vary depending
> on what I previously did on the Emacs session
> (as features are loaded and inject their commands.)

Yes, and we can look for features that might
help with such problems.  And if you find one
such, I encourage you to write it up in a
library and put it out there for people to try.

Time will tell how useful the feature is, and
you'll likely even get useful feedback to
improve it.

All of that is positive.  Emacs can always use
improvement, including in command selection.

You don't have to convince anyone here that
`M-x' is a fairly blunt hammer.  The convincing
that's called for is to support a given
proposed solution/improvement.

You argue that filtering out some set of
commands at the outset is an improvement.

Counter arguments were provide for not doing
such filtering - with that particular filter,
_by default_.  Counter arguments mentioned
interactive ways to filter, or to sort instead
of filtering.

I don't think anyone is against letting you
filter in the way you think best.  It's about
what behavior Emacs `M-x' should have, by
default, no?



  reply	other threads:[~2021-02-17 18:11 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 19:50 command mode-specificity [was: scratch/command 064f146 1/2: Change...] Drew Adams
2021-02-16 19:54 ` Stefan Monnier
2021-02-16 20:23   ` [External] : " Drew Adams
2021-02-16 20:53     ` Lars Ingebrigtsen
2021-02-16 22:05       ` Drew Adams
2021-02-16 22:15         ` Lars Ingebrigtsen
2021-02-16 22:31           ` Drew Adams
2021-02-16 22:38             ` Lars Ingebrigtsen
2021-02-16 23:22               ` Drew Adams
2021-02-17  0:35                 ` Óscar Fuentes
2021-02-17 15:47                   ` Eli Zaretskii
2021-02-17 15:59                     ` Dmitry Gutov
2021-02-17 16:15                       ` Stefan Monnier
2021-02-17 16:17                       ` Eli Zaretskii
2021-02-17 19:52                         ` Dmitry Gutov
2021-02-17 20:21                           ` Eli Zaretskii
2021-02-17 22:05                             ` Dmitry Gutov
2021-02-17 17:36                     ` Óscar Fuentes
2021-02-17 18:44                     ` Drew Adams
2021-02-17 17:57                   ` Drew Adams
2021-02-17  2:39           ` Yuan Fu
2021-02-17  3:22       ` Eli Zaretskii
2021-02-17  0:13     ` Óscar Fuentes
2021-02-17  0:17       ` Drew Adams
2021-02-17  0:54         ` Óscar Fuentes
2021-02-17 18:11           ` Drew Adams [this message]
2021-02-17 18:40             ` Stefan Kangas
2021-02-17 19:01               ` Drew Adams
2021-02-17 20:09               ` Yuan Fu
2021-02-17 22:31                 ` Lars Ingebrigtsen
2021-02-17  0:40       ` Stefan Monnier
2021-02-17  0:59         ` Óscar Fuentes
2021-02-17 11:20         ` Lars Ingebrigtsen
2021-02-17 14:01           ` Stefan Monnier
2021-02-17 14:19             ` Lars Ingebrigtsen
2021-02-17 15:20               ` Stefan Monnier
2021-02-17 15:42                 ` Lars Ingebrigtsen
2021-02-17 16:12                   ` Stefan Monnier
2021-02-17 18:26                     ` Lars Ingebrigtsen
2021-02-17 18:47                     ` Drew Adams
2021-02-17 18:41                   ` Drew Adams
2021-02-17 18:28                 ` Drew Adams
2021-02-17 16:07               ` Eli Zaretskii
2021-02-17 19:30                 ` Lars Ingebrigtsen
2021-02-17 20:07                   ` Eli Zaretskii
2021-02-17 21:00                     ` Óscar Fuentes
2021-02-18 11:33                     ` Lars Ingebrigtsen
2021-02-18 14:37                       ` Eli Zaretskii
2021-02-18 15:53                         ` Lars Ingebrigtsen
2021-02-20 13:30                           ` Lars Ingebrigtsen
2021-02-20 14:43                             ` Stefan Monnier
2021-02-20 14:52                               ` Lars Ingebrigtsen
2021-02-20 18:00                             ` Dmitry Gutov
2021-02-21 13:10                               ` Lars Ingebrigtsen
2021-02-21 19:57                                 ` Dmitry Gutov
2021-02-19 12:09                         ` [External] : " Lars Ingebrigtsen
2021-02-19 12:27                           ` Eli Zaretskii
2021-02-18 16:30                       ` Alan Mackenzie
2021-02-18 16:55                         ` Óscar Fuentes
2021-02-18 17:08                           ` Alan Mackenzie
2021-02-18 17:20                             ` Óscar Fuentes
2021-02-18 17:35                               ` Alan Mackenzie
2021-02-18 17:55                                 ` Robert Pluim
2021-02-18 18:15                                   ` Yuan Fu
2021-02-19  8:47                                     ` Robert Pluim
2021-02-19  8:55                                       ` Eli Zaretskii
2021-02-19 11:21                                         ` Robert Pluim
2021-02-19 12:25                                           ` Eli Zaretskii
2021-02-18 18:15                                   ` Alan Mackenzie
2021-02-18 19:32                                     ` Óscar Fuentes
2021-02-18 20:14                                       ` Alan Mackenzie
2021-02-18 20:24                                         ` Eli Zaretskii
2021-02-18 19:42                                 ` Eli Zaretskii
2021-02-18 19:57                                   ` Alan Mackenzie
2021-02-18 20:04                                     ` Eli Zaretskii
2021-02-19 12:10                         ` Lars Ingebrigtsen
2021-02-19 12:41                           ` Dmitry Gutov
2021-02-19 12:57                             ` Lars Ingebrigtsen
2021-02-19 13:12                               ` Dmitry Gutov
2021-02-17 19:02           ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SA2PR10MB4474831C087114F2D4D21A78F3869@SA2PR10MB4474.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).