[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: Remap interactive commands via keymaps
From: |
Richard Stallman |
Subject: |
Re: Proposal: Remap interactive commands via keymaps |
Date: |
Wed, 9 Jan 2002 15:05:08 -0700 (MST) |
> When I do, `M-x actual-command', the pre-command-hooks are run with
> this-command set to `execute-extended-command' rather than
> `actual-command'. So in this case, the pre-command-hooks are
> not run at all for the actual commands when M-x is used.
>
> This is ok, because they are run before the M-x command itself.
> And before the RET that terminates the minibuffer and leads
> to execution of the specified command.
You have a good argument that using the M-x command name in
this-command would be useful--but it is impossible. Until the RET
command (minibuffer-complete-and-exit) runs, there is no way of
knowing that the M-x command name is final. pre-command-hooks
has to run before minibuffer-complete-and-exit is called.
So unless we were to run it again for the same command
(which seems somewhat unclean), we cannot change this.
- Re: Proposal: Remap interactive commands via keymaps, (continued)
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/05
- Re: Proposal: Remap interactive commands via keymaps, Jason Rumney, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Jason Rumney, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/06
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/07
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/07
- Re: Proposal: Remap interactive commands via keymaps, Jason Rumney, 2002/01/07
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/07
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/09
- Re: Proposal: Remap interactive commands via keymaps,
Richard Stallman <=
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/09
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/12
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/22
- Re: Proposal: Remap interactive commands via keymaps, Kim F. Storm, 2002/01/23
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/24
- Re: Proposal: Remap interactive commands via keymaps, Richard Stallman, 2002/01/23