Hi,

I don't have much insight to offer here, except that at some point someone should try to make the processing in -keyDown more similar to whatever the Carbon port does. It might be hard to do this identically because what gets passed in NSEvent might be more processed than whatever raw codes the Carbon code works with, but it should be possible to follow the general outlines.

As far as the non-ascii crash, I am looking into it, but it has not proved easy to track down yet.

Adrian



On May 4, 2006, at 8:38 AM, Robert Casties wrote:

Unfortunately some real work(tm) kept me from trying anything in the
last few weeks but today I finally did some experiments with the new
pre2a code:

Adrian Robert wrote:
In the last version of Emacs.app I had (9.0pre2 + some CVS) it was not
possible to bind the "Delete" key on my keyboard to some kind of
forward-delete because (accoring to C-h-k) it was the same keyboard
event as backspace. Is this a known problem or even intended? It is a
major grievance to me.

I don't really know much about this area.  If Emacs.app differs from
other emacsen in this regard you might examine the bindings in
lisp/term/ns-win-el and see if you can evaluate some lisp in the scratch buffer to counteract anything that looks suspicious. For example, I see
the following two lines in ns-win.el:

(put 'backspace 'ascii-character 127)
(put 'delete 'ascii-character 127)

That code is the same in Carbon Emacs where the Delete key works. I also
tried changing it to no avail.

really not that familiar with the key processing in emacs, and it's
entirely possible that something is done incorrectly in Emacs.app. Most of the keyboard handling dates from the keyboard that came with the NeXT
computers.  Another place to look if changing things in lisp does not
work is nsterm.m -keyDown method..

I put in some printfs and found that at this point there are different
key codes for Backspace and Delete.

Under OSX 10.4.6 I get the following code values in line 3656 of
nsterm.m (just after getting the code from theEvent):

code 51 for Backspace
code 117 for Delete

and still different codes in line 3683 (before exiting keyDown):

code 0x1003007f and kind 3 for Backspace
code 0xffff and kind 3 for Delete

Can anyone make heads or tails from these values? Unfortunately I don't
know much about either Emacs' innards or *Step.

Thanks
        Robert

P.S. -pre2a crashes on every attempt to display any non-ASCII character
for me, but I assume you know that already :-)



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to