missing sparse keymaps in FSF emacs?
Brought to you by:
lenst
This is with Emacs 20.7 under Windows NT. If I try to load the psgml.el file, I
get the following error:
Key sequence C-c C-f C-e uses invalid prefix characters
It seems that there are some sparse keymaps missing, at least for my version
of emacs. If I add the following commands, evaluation of the file works:
(setq sgml-prefix-f-map (make-sparse-keymap))
(define-key sgml-mode-map "\C-c\C-f" sgml-prefix-f-map)
(setq sgml-prefix-u-map (make-sparse-keymap))
(define-key sgml-mode-map "\C-c\C-u" sgml-prefix-u-map)
Regards,
Slaven
Logged In: YES
user_id=30503
The problem is realy that sgml-mode-map is already defined
with bindings for some keys that PSGML uses for prefix keys.
If sgml-mode-map is empty (or undefined) when psgml is loaded
it should work fine. Still some think like the suggested
could be useful.
Logged In: YES
user_id=54935
Maybe the best solution would be to use psgml-mode-map
instead
of sgml-mode-map. Or delete the condition in psgml.el:
(if sgml-mode-map
()
(setq sgml-mode-map (make-sparse-keymap)))
and always create a new sgml-mode-map.
Regards,
Slaven
Logged In: YES
user_id=79031
Exactly the same happens with Emacs 20.7 on Linux.
Logged In: YES
user_id=30503
I will add the prefix keymaps to the next version.