Hi,
I'm having trouble with XEmacs' c-mode. The extended keyboard 'Del' key
is behaving exactly like the BackSpace (only in c-mode). Obviously, this
mode must have the Del key mapped to some command other than
'delete-char'.
What I do is include in my ~/.emacs file the line:
(define-key c-mode-map '(delete) 'delete-char)
I've read in the *info* for XEmacs that it should work, but it doesn't.
Upon entering XEmacs, it complains that c-mode-map is not defined or
something like that.
It only works when I enter XEmacs, then load a .cc file, then load
.emacs file and then evaluate the entire buffer (lisp-interactive-mode).
If I don't have any .cc file loaded it complains about the c-mode-map
symbol.
Also, this works but doesn't have any effect on c-mode:
(global-set-key '(delete) 'delete-char)
I've also tried:
(add-hook c-mode-hook '(define-key c-mode-map '(delete) 'delete-char))
Any help would be greatly appreciated.
Thanks in advance,
Leo Zayas
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.