LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-26-2011, 11:38 AM   #1
didiw
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
Question Need to call function in xemacs before or at keypress


Hello,

I am in need to do some adjustments to a xemacs buffer according to the cursor position, but I cannot find the hook to get my function called when I need it, which is before or at the time of keypress.
I looked through the availabe functions, but did not find anything.

Thanks in advance.

Dieter
 
Old 10-26-2011, 12:38 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,542

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
I am in need to do some adjustments to a xemacs buffer according to the cursor position,
Can you give more detail on these adjustments?

I don't think there is a hook for every keypress, but maybe Change Hooks is what you are looking for?
 
Old 10-29-2011, 08:08 AM   #3
didiw
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Re: Need to call function in xemacs before or at keypress

Hello ntubski,

I haven't tried your proposal, but what I actually want to do is to switch input method based on where I am typing. I get it to switch the method on calling my function, but I have no idea, where to hook it in.

Anything else now but your idea?

Thanks in advance

Dieter
 
Old 10-29-2011, 12:43 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,542

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Hmm, GNU Emacs has the point-entered and point-left properties, which I think would be exactly what you need here, but XEmacs doesn't support those properties. I guess you could use post-command-hook, although that would result in some extra calls to your function.
 
  


Reply

Tags
input, key, lisp, xemacs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] g++ error message no matching function for call to some function Jerry Mcguire Programming 6 04-13-2010 09:37 PM
[SOLVED] Threaded function cannot call a function with extern "C" but nonthreaded function can morty346 Programming 16 01-12-2010 06:00 PM
Compilation issue when Function is parameter in function call on LINUX sa20358 Linux - Software 2 07-24-2008 11:19 PM
how to call function?? harpal Programming 3 04-29-2003 06:59 AM


All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration