Christian Surlykke
2005-05-18 18:20:02 UTC
Hi
Here's a patch to go on top of the one I send earlier today.
It fixes the returnkey for SwtJemacs. The problem was that when you hit the return key (on my debian laptop, anyway) in SWT it generates a carriage-return.
Now in EKeymap.getKeyForname, "return" was mapped to java.awt.event.KeyEvent.VK_ENTER equal to '\n'.
This doesn't fit with the XEmacs lisp reference manual, where "return" is taken to mean '\r', so I changed that in getKeyForName. Then, to still handle '\n' which is sent by SwingJemacs I added a binding for 'enter in keydefs.el.
Formalia:
I, Christian Surlykke, hereby assign the copyright to the source code attached
to this mail, to Per Bothner on the condition that he will make them
available under the Gnu General Public License, Version 2, as published by
the Free Software Foundation. Other than that no restrictions on Per Bothners
use of the source is implied.
br. Chr.
Here's a patch to go on top of the one I send earlier today.
It fixes the returnkey for SwtJemacs. The problem was that when you hit the return key (on my debian laptop, anyway) in SWT it generates a carriage-return.
Now in EKeymap.getKeyForname, "return" was mapped to java.awt.event.KeyEvent.VK_ENTER equal to '\n'.
This doesn't fit with the XEmacs lisp reference manual, where "return" is taken to mean '\r', so I changed that in getKeyForName. Then, to still handle '\n' which is sent by SwingJemacs I added a binding for 'enter in keydefs.el.
Formalia:
I, Christian Surlykke, hereby assign the copyright to the source code attached
to this mail, to Per Bothner on the condition that he will make them
available under the Gnu General Public License, Version 2, as published by
the Free Software Foundation. Other than that no restrictions on Per Bothners
use of the source is implied.
br. Chr.