Christian Schmitt writes:
In XEmacs 21.4 I used to map the C-z key to undo. Now in the latest
beta this does not work anymore.
I tried both this
(global-set-key [(control z)] 'undo)
and this
(define-key global-map [(control z)] 'undo)
to no avail.
After evaluating either of these expressions C-h k C-z still returns
C-z runs `zap-up-to-char'.
I can reproduce this under Linux. In 21.4.12 in the scratch buffer
(global-set-key "\C-z" 'undo) works. Under 21.5-b13, it is still
mapped to `zap-to-char'.
I then ran (again in the scratch buffer): (current-keymaps)
(#<keymap lisp-interaction-mode-map size 5 0x16c0>
#<keymap global-window-system-map size 4 0x322> #<keymap global-map
size 629 0x31c>)
If I then define using the top level mode-map it works in the scratch
buffer.
(define-key lisp-interaction-mode-map "\C-z" 'undo)
Of course it dosen't work in say a C buffer. So, I exited XEmacs and
restarted. I tried the next map down:
(define-key global-window-system-map "\C-z" 'undo)
Now the mapping works in both the scratch buffer and a C buffer. 21.4
does not seem to have a global-window-system-map.
Cheers,
Sean