# HG changeset patch # User Glenn Morris # Date 1209016038 0 # Node ID 8f25e59015eafedb980e55884d963694367d0a9f # Parent 40e0e4cdf4867cd0b0723134a5a2e5b2f075a6ed Tom Tromey (easy-mmode-define-keymap): Document keywords. Add :suppress. diff -r 40e0e4cdf486 -r 8f25e59015ea lisp/emacs-lisp/easy-mmode.el --- a/lisp/emacs-lisp/easy-mmode.el Thu Apr 24 05:46:50 2008 +0000 +++ b/lisp/emacs-lisp/easy-mmode.el Thu Apr 24 05:47:18 2008 +0000 @@ -409,8 +409,17 @@ KEY and BINDINGS are suitable for `define-key'. Optional NAME is passed to `make-sparse-keymap'. Optional map M can be used to modify an existing map. -ARGS is a list of additional keyword arguments." - (let (inherit dense) +ARGS is a list of additional keyword arguments. + +Valid keywords and arguments are: + + :name Name of the keymap; overrides NAME argument. + :dense Non-nil for a dense keymap. + :inherit Parent keymap. + :group Ignored. + :suppress Non-nil to call `suppress-keymap' on keymap, + 'nodigits to suppress digits as prefix arguments." + (let (inherit dense suppress) (while args (let ((key (pop args)) (val (pop args))) @@ -418,11 +427,14 @@ (:name (setq name val)) (:dense (setq dense val)) (:inherit (setq inherit val)) + (:suppress (setq suppress val)) (:group) (t (message "Unknown argument %s in defmap" key))))) (unless (keymapp m) (setq bs (append m bs)) (setq m (if dense (make-keymap name) (make-sparse-keymap name)))) + (when suppress + (suppress-keymap m (eq suppress 'nodigits))) (dolist (b bs) (let ((keys (car b)) (binding (cdr b)))