LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10:38 AM   #1
didiw
Member
 
Registered: Oct 2009
Posts: 31

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, 11:38 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
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, 07:08 AM   #3
didiw
Member
 
Registered: Oct 2009
Posts: 31

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, 11:43 AM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
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



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 08:37 PM
[SOLVED] Threaded function cannot call a function with extern "C" but nonthreaded function can morty346 Programming 16 01-12-2010 05:00 PM
Compilation issue when Function is parameter in function call on LINUX sa20358 Linux - Software 2 07-24-2008 10:19 PM
how to call function?? harpal Programming 3 04-29-2003 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:47 PM.

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
Open Source Consulting | Domain Registration