Menu

#8 missing sparse keymaps in FSF emacs?

closed-accepted
None
1
2002-02-11
2001-06-05
No

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

Discussion

  • Lennart Staflin

    Lennart Staflin - 2001-06-07
    • priority: 5 --> 1
    • assigned_to: nobody --> lenst
    • status: open --> open-later
     
  • Lennart Staflin

    Lennart Staflin - 2001-06-07

    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.

     
  • Slaven Rezic

    Slaven Rezic - 2001-06-08

    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

     
  • Berend de Boer

    Berend de Boer - 2001-10-23

    Logged In: YES
    user_id=79031

    Exactly the same happens with Emacs 20.7 on Linux.

     
  • Lennart Staflin

    Lennart Staflin - 2002-02-11

    Logged In: YES
    user_id=30503

    I will add the prefix keymaps to the next version.

     
  • Lennart Staflin

    Lennart Staflin - 2002-02-11
    • status: open-later --> closed-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.