[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to simulate pressing a key
From: |
netawater |
Subject: |
Re: How to simulate pressing a key |
Date: |
Sat, 20 Sep 2008 22:43:04 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Nikolaj Schumacher <me@nschum.de> writes:
> netawater <netstandin-003@yahoo.com.cn> wrote:
>
>> I do not want to interactive call a function but call it like pressing
>> a key.
>
> I think you do, you just don't know it yet. :)
>
> You want to do something like thas
>
> (defun do-what-backspace-does ()
> (interactive)
> (call-interactively (key-binding "\C-?")))
>
>> my aim is to binding a funtion to tab key in every mode: if cursor is at
>> the end of word then call M-TAB's function, else call TAB's function.
>
> This, however, might not work. Because if you bind your function to
> tab, you might be unable to retrieve the original binding.
>
>
> regards,
> Nikolaj Schumacher
Thank you for pointing my error, :)
I have bind tab's function to ^C^t before bind this function to TAB.
Thanks.
- How to simulate pressing a key, netawater, 2008/09/19
- RE: How to simulate pressing a key, Drew Adams, 2008/09/19
- Message not available
- Re: How to simulate pressing a key, Nikolaj Schumacher, 2008/09/20
- Message not available
- Re: How to simulate pressing a key, netawater, 2008/09/20
- RE: How to simulate pressing a key, Drew Adams, 2008/09/20
- Message not available
- Re: How to simulate pressing a key, netawater, 2008/09/26
- Message not available
- Re: How to simulate pressing a key,
netawater <=