Lennart Staflin <lennarts(a)infotek.no> writes:
Adrian Aichner <adrian(a)xemacs.org> writes:
| >>>>> "Simon" == Simon Josefsson <sj(a)extundo.com>
writes:
|
| Simon> I often use M-BS to delete a word I've just typed. The
| Simon> command seem to be part of the basic editing functionality
| Simon> (ie available in fundamental/text mode). However, PGSML
| Simon> seem to overload this command to do
| Simon> `sgml-mark-current-element'. Since the HTML mode is based
| Simon> on PSGML, I find it annoying to write any text in
| Simon> html-mode... Of course I could rebind the key or change to
| Simon> text-mode, but wouldn't it be nice if PSGML didn't overload
| Simon> basic editing keys?
What i try to do is bind M-C-h, this is consistent with lisp-mode
bindings.
Use:
(define-key ... [(meta control h)] '...)
rather than
(define-key ... "\M-\C-h" '...)
The latter affects BS, while the former just meta-control-h.