Martin Buchholz <martin(a)xemacs.org> writes:
>>>>> "DH" == Dan Holmsand
<dan(a)innehallsbolaget.com> writes:
DH> (progn
DH> (setq foo-map (make-keymap))
DH> (define-key foo-map "\e\C-h" 'foo)
DH> (use-local-map foo-map))
DH> gives Local Bindings:
DH> M-backspace foo
DH> M-C-h foo
DH> in xemacs, but
DH> ESC C-h foo
DH> in fsf emacs.
DH> In my opinion, this is pretty counter-intuitive (i.e. a bug) in
DH> xemacs.
But Emacs would do the same if it also mapped C-h to Backspace instead
of DEL.
E.g.
(progn
(setq foo-map (make-keymap))
(define-key foo-map "\e\C-i" 'foo)
(use-local-map foo-map))
Makes both keystrokes Meta+Control+i and Meta+Tab invoke foo in Emacs.
That's because only meta+control+i is bound by default in fsf emacs.
Try this instead:
(progn
(global-set-key [(meta tab)] 'foo-bar)
(setq foo-map (make-keymap))
(define-key foo-map "\e\C-i" 'foo)
(use-local-map foo-map))
Now meta+tab is bound to foo-bar, and meta+control+i to foo in fsf
emacs, but both of them are bound to foo in xemacs. That's exactly the
same problem as with the whole (meta backspace) vs. \e\C-h thingy.
Perhaps you are arguing that C-h should not be mapped to Backspace.
I might even agree with that. But that will open several old cans
of worms.
I'm definitely not arguing THAT. God forbid.
/dan
--
Dan Ola Holmsand
InnehÄllsbolaget
dan(a)innehall.com