[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling different kinds of functions, which finish the same job
From: |
Kevin Rodgers |
Subject: |
Re: Calling different kinds of functions, which finish the same job |
Date: |
Wed, 12 Apr 2006 09:28:48 -0600 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Stefan Monnier wrote:
Sorry for the unclear description. I may set f by
(setq f (key-binding " "))
So, f can be only one of f1, f2, f3. Suppose f is f3, then
Maybe the answer is quite different:
(execute-command f)
I think you mean: (command-execute f)
,----[ C-h f command-execute RET ]
| command-execute is a built-in function.
| (command-execute CMD &optional RECORD-FLAG KEYS SPECIAL)
|
| Execute CMD as an editor command.
| CMD must be a symbol that satisfies the `commandp' predicate.
| Optional second arg RECORD-FLAG non-nil
| means unconditionally put this command in `command-history'.
| Otherwise, that is done only if an arg is read using the minibuffer.
| The argument KEYS specifies the value to use instead of
(this-command-keys)
| when reading the arguments; if it is nil, (this-command-keys) is used.
| The argument SPECIAL, if non-nil, means that this command is executing
| a special event, so ignore the prefix argument and don't clear it.
`----
--
Kevin Rodgers