Adrian Aichner <adrian(a)xemacs.org> 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?
I have noticed, but not diagnosed, this too.
Actually it may be more of a XEmacs problem than a PSGML one.
psgml.el says
(define-key sgml-mode-map "\e\C-h" 'sgml-mark-current-element)
which seem to translate into M-BS, while all other bindings of \eFOO
translates into M-C-FOO on my keyboard w/o a escape key. Perhaps
since M-C-BS kills XFree servers, I dunno.
Since PSGML documentation does not mention the function nor the key
binding, I suggest simply changing it to something else:
--- psgml.el- Fri Jan 12 17:06:33 2001
+++ psgml.el Fri Jan 12 17:06:00 2001
@@ -954,7 +954,7 @@
(define-key sgml-mode-map "\e\C-k" 'sgml-kill-element)
(define-key sgml-mode-map "\e\C-@" 'sgml-mark-element)
;;(define-key sgml-mode-map [?\M-\C-\ ] 'sgml-mark-element)
-(define-key sgml-mode-map "\e\C-h" 'sgml-mark-current-element)
+(define-key sgml-mode-map "\e\C-y" 'sgml-mark-current-element)
(define-key sgml-mode-map "\e\C-t" 'sgml-transpose-element)
(define-key sgml-mode-map "\M-\t" 'sgml-complete)