all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lennart Borgman'" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org, rms@gnu.org,
	'Mathias Dahl' <mathias.dahl@gmail.com>
Subject: RE: Menu commands to M-x history?
Date: Mon, 27 Jul 2009 09:21:11 -0700	[thread overview]
Message-ID: <916D7A0558D14A809114127E47A21BB2@us.oracle.com> (raw)
In-Reply-To: <e01d8a50907270859p258d38f5w8c724eb6a8ddaafe@mail.gmail.com>

> Matthias said:
>     Quite often I execute the same M-x
>     command over and over again, doing something else in 
>     between, and if what I did in between included executing
>     some menu commands I might be annoyed to have to step back
>     some extra steps in order to get at the command I want to run.
> 
> exactly why is it useful to distinguish between commands started
> from the menu and from M-x

As someone else said, `M-x' is, well, for `M-x'-executed commands. That's
important for users. It is why commands executed using key bindings are also not
included in the history list.

Besides this difference in intention (meaning of M-x), there is the difference
in noise level. If you had to search a history for every command you ever
executed, including every key you pressed (C-f, C-k,...), the search history
would be much less useful.

So, I hear you say, filter out insignificant commands - commands such as
`self-insert-command' and `forward-char'. Then where do you draw the line? One
person's aid is another person's noise.

The current criterion of recording the commands actually entered using `M-x' is
a good one, and should be kept. Access to additional commands should be
optional, on demand.

> Drew, I think you see what I mean. This reasoning just gets overlay
> complicated to actually use IMO.

Why? The only change is to provide some key to let you access the additional
commands.

Icicles uses `C-M-pause' for that, which is admittedly exotic. ;-) But Emacs
could choose a simpler key.

(Icicles has lots of minibuffer key bindings, and this one is less simple
because it is not as important as some others. That doesn't mean the idea isn't
simple.)

> Just putting the menu commands in the M-x history (+ displaying a
> comment about it) is simple, easy to understand and make the coupling
> between M-x and the menus visible to new users too.

See above. Such a coupling is not helpful as the default behavior.

> And it also have the advantage that it is much easier to redo
> commands that are rather deep down in the menus.

As opposed to what? Easier to redo than what alternative - using the menu again?

If that's what you mean, then we agree: It can help users if we also provide
completion for commands originally accessed using a menu. The question we seem
to disagree about is whether those commands should be available for completion
_by default_, that is, as part of the normal `M-x' command history.





  reply	other threads:[~2009-07-27 16:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 23:05 Menu commands to M-x history? Lennart Borgman
2009-07-21  3:44 ` Bill Wohler
2009-07-22  1:43   ` Richard Stallman
2009-07-22  2:03     ` Drew Adams
2009-07-22  2:18     ` Lennart Borgman
2009-07-22  4:15     ` Bill Wohler
2009-07-22 18:34       ` Mathias Dahl
2009-07-27  1:47         ` Drew Adams
2009-07-27  9:51           ` Lennart Borgman
2009-07-27 15:48             ` Drew Adams
2009-07-27 15:59               ` Lennart Borgman
2009-07-27 16:21                 ` Drew Adams [this message]
2009-07-27 16:39                   ` Lennart Borgman
2009-07-27 18:57                     ` Drew Adams
2009-07-27 19:22                       ` Lennart Borgman
2009-07-27 20:26                         ` Drew Adams
2009-07-27 20:53                           ` Lennart Borgman
2009-07-27 21:16                             ` Drew Adams
2009-07-27 21:34                               ` Lennart Borgman
2009-07-27 21:47                                 ` Drew Adams
2009-08-01 20:20                                   ` Drew Adams
2009-08-04 17:23                                     ` Stefan Monnier
2009-07-27 22:00                 ` Mathias Dahl
2009-07-21 15:31 ` Stefan Monnier
2009-07-21 17:43   ` Lennart Borgman
2009-08-03 21:51   ` Lennart Borgman
2009-08-04 17:31     ` Sillyness (was: Menu commands to M-x history?) Stefan Monnier

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

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

  git send-email \
    --in-reply-to=916D7A0558D14A809114127E47A21BB2@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=mathias.dahl@gmail.com \
    --cc=rms@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.