simulate keys
  Home FAQ Contact Sign in
Search only in:
alt.science.geology.jobs
 
Advanced search
MATCHING GROUPS



more...
Group Profile...
POPULAR GROUPS

more...

found 531 articles for 0.007 sec
Re: How to simulate pressing a key     

Author: netawater
Date: Sep 20, 2008 07:43

... 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 ... 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'...
Show full article (0.82Kb) · Show article thread
Re: How to simulate pressing a key     

Author: netawater
Date: Sep 20, 2008 07:37

...I can not just call the function which key is binding for it may have...a function but call it like pressing a key. for example, press tab in help-mode will...aim is to binding a funtion to tab key in every mode: if cursor is at ...;; ^C^t is binding to tab key's function in mode-hook. (...(key-binding "^C^t")) (M-TAB-func (key-binding "\M-\t"))) (if (looking-at "\\>") ...
Show full article (2.72Kb) · Show article thread
Re: How to simulate pressing a key     

Author: Nikolaj Schumacher
Date: Sep 20, 2008 03:59

... 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'...
Show full article (0.63Kb) · Show article thread
RE: How to simulate pressing a key     

Author: Drew Adams
Date: Sep 19, 2008 23:19

...I can not just call the function which key is binding for it may have...a function but call it like pressing a key. for example, press tab in help-mode will...aim is to binding a funtion to tab key in every mode: if cursor is at the... ;; ^C^t is binding to tab key's function in mode-hook. (...(key-binding "^C^t")) (M-TAB-func (key-binding "\M-\t"))) (if (looking-at "\\>") ...
Show full article (2.38Kb) · Show article thread
Re: How to simulate pressing a key     

Author: netawater
Date: Sep 19, 2008 19:50

...I can not just call the function which key is binding for it may have uncertainty...a function but call it like pressing a key. for example, press tab in help-mode ... is to binding a funtion to tab key in every mode: if cursor is at ...;; ^C^t is binding to tab key's function in mode-hook. (let ((...key-binding "^C^t")) (M-TAB-func (key-binding "\M-\t")) ) (if (looking-at "\\>") ...
Show full article (1.51Kb) · Show article thread
How to simulate pressing a key     

Author: netawater
Date: Sep 19, 2008 08:12

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. Thank you very much!
Show full article (0.29Kb)
RE: How to simulate pressing a key     

Author: Drew 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 ...
Show full article (0.57Kb)
RE: How to simulate pressing a key     

Author: Drew Adams
Date: Sep 20, 2008 09:00

> Sorry, I misunderstanded your call interactively's mean, I thought it need me input parameter interactively, sorry for my poor english level, call-interactively is a perfect method for my function. Thank you very much! No problem. I sympathize with the language difficulties. BTW, I've filed an Emacs bug (#1010) suggesting a slight change in the doc for `call-interactively', to ...
Show full article (0.99Kb) · Show article thread
Re: How to simulate pressing a key     

Author: Thierry Volpiatto
Date: Sep 20, 2008 00:08

"Drew Adams" <drew.adams@oracle.com> writes: Calling the command interactively (call-interactively #'button)... Sorry, I meant (call-interactively #'forward-button). (forward-button +or-arg) go to the next/prec arg button and (push-button) active the button -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France
Show full article (0.34Kb) · Show article thread
RE: How to simulate pressing a key     

Author: Drew Adams
Date: Sep 19, 2008 23:55

> Calling the command interactively (call-interactively #'button)... Sorry, I meant (call-interactively #'forward-button).
Show full article (0.13Kb)
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next