[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How to simulate pressing a key
From: |
Drew Adams |
Subject: |
RE: How to simulate pressing a key |
Date: |
Fri, 19 Sep 2008 08:05:00 -0700 |
> 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'.