#27 Added call to `suppress-keymap' when creating roster-map

closed
nobody
None
5
2008-09-19
2008-09-09
Joe Casadonte
No

As it stands currently, accidentally hitting a key that's not bound to anything (e.g. 'w') will call `self-insert-command' and be inserted into the roster buffer, something which you probably don't want to do. Calling `suppress-keymap' immediately after creating it will get rid of all self-inserting keys. For example:

(defvar jabber-roster-mode-map
(let ((map (make-sparse-keymap)))
(suppress-keymap map)
(set-keymap-parent map jabber-common-keymap)
...
map))

Discussion

  • Magnus Henoch
    Magnus Henoch
    2008-09-19

    • status: open --> closed
     
  • Magnus Henoch
    Magnus Henoch
    2008-09-19

    Committed. Thanks!