Hi, > 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:
Likewise, but I finally managed to do some investigation of my own here. I found out what was going on, but I'm a bit fuzzy on what the expected behavior should be. Specifically, on my PowerMac keyboard, I don't have a Backspace key at all -- the key at the upper right of the main array says "Delete" on it, and Cocoa internally gets this as NSDeleteCharacter. I also have a "Delete" key with a little forward- x arrow on it in a small array of keys off to the right, including home, end, page-up, page-down. This key goes to Cocoa as NSDeleteFunctionKey. Can you describe the locations and labelings of any Backspace and Delete keys on your keyboard? Meanwhile, Emacs internally distinguishes Backspace, Delete, and KP- Delete. So, I'm wondering if I should be mapping the upper-right main delete key to "Backspace" even though it isn't technically a backspace key, or if mapping to "Delete" and "KP-Delete" is enough of a distinction for emacs users to work with. thanks, 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- > _______________________________________________ Emacs-app-dev- mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-
