[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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]