Mercurial > emacs
comparison lisp/emacs-lisp/easy-mmode.el @ 33433:e8794ae4f856
(easy-mmode-define-keymap):
Add keyword arg :name.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 12 Nov 2000 18:09:09 +0000 |
parents | a86c95343fa5 |
children | 96ff9f3650b5 |
comparison
equal
deleted
inserted
replaced
33432:7f6ffdaecedc | 33433:e8794ae4f856 |
---|---|
313 "Return a keymap built from bindings BS. | 313 "Return a keymap built from bindings BS. |
314 BS must be a list of (KEY . BINDING) where | 314 BS must be a list of (KEY . BINDING) where |
315 KEY and BINDINGS are suitable for `define-key'. | 315 KEY and BINDINGS are suitable for `define-key'. |
316 Optional NAME is passed to `make-sparse-keymap'. | 316 Optional NAME is passed to `make-sparse-keymap'. |
317 Optional map M can be used to modify an existing map. | 317 Optional map M can be used to modify an existing map. |
318 ARGS is a list of additional arguments." | 318 ARGS is a list of additional keyword arguments." |
319 (let (inherit dense suppress) | 319 (let (inherit dense suppress) |
320 (while args | 320 (while args |
321 (let ((key (pop args)) | 321 (let ((key (pop args)) |
322 (val (pop args))) | 322 (val (pop args))) |
323 (case key | 323 (case key |
324 (:name (setq name val)) | |
324 (:dense (setq dense val)) | 325 (:dense (setq dense val)) |
325 (:inherit (setq inherit val)) | 326 (:inherit (setq inherit val)) |
326 (:group) | 327 (:group) |
327 ;;((eq key :suppress) (setq suppress val)) | 328 ;;((eq key :suppress) (setq suppress val)) |
328 (t (message "Unknown argument %s in defmap" key))))) | 329 (t (message "Unknown argument %s in defmap" key))))) |