| RE: How to simulate pressing a key |
|
 |
|
 |
|
 |
|
 |
Group: gnu.emacs.help · Group Profile
Author: Drew AdamsDrew Adams Date: Sep 19, 2008 08:05
> I can not just call the function which key is binding for it may
> have uncertainty parameter, like tab's function forward-button has
> parameter, but lisp-indent-line does not.
>
> although execute-extended-command works perfect, but I can not use
> it in my elisp function.
I'm not sure I understand your question, but if I do, have a look at function
`call-interactively'. It lets you call an interactive function (command) in such
a way that the function's `interactive' spec is used to obtain the argument
values.
See the Elisp manual, node `Interactive Call'.
|