diff options
| author | Stefan Monnier | 2011-07-02 00:27:41 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-07-02 00:27:41 -0400 |
| commit | 3349e122e2ed4e1e96851bdf84ce8ae4732b6420 (patch) | |
| tree | ac1309f41e4c5dc26ddd8c7f313ece238fa65809 /src/ChangeLog | |
| parent | 3de63bf809c2a36a5eae8e7383b2590c5ab1bcf7 (diff) | |
| download | emacs-3349e122e2ed4e1e96851bdf84ce8ae4732b6420.tar.gz emacs-3349e122e2ed4e1e96851bdf84ce8ae4732b6420.zip | |
Add multiple inheritance to keymaps.
* src/keymap.c (Fmake_composed_keymap): New function.
(Fset_keymap_parent): Simplify.
(fix_submap_inheritance): Remove.
(access_keymap_1): New function extracted from access_keymap to handle
embedded parents and handle lists of maps.
(access_keymap): Use it.
(Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap)
(Fcopy_keymap): Handle embedded parents.
(Fcommand_remapping, define_as_prefix): Simplify.
(Fkey_binding): Simplify.
(syms_of_keymap): Move minibuffer-local-completion-map,
minibuffer-local-filename-completion-map,
minibuffer-local-must-match-map, and
minibuffer-local-filename-must-match-map to Elisp.
(syms_of_keymap): Defsubr make-composed-keymap.
* src/keyboard.c (menu_bar_items): Use map_keymap_canonical.
(parse_menu_item): Trivial simplification.
* lisp/subr.el (remq): Don't allocate if it's not needed.
(keymap--menu-item-binding, keymap--menu-item-with-binding)
(keymap--merge-bindings): New functions.
(keymap-canonicalize): Use them to refine the canonicalization.
* lisp/minibuffer.el (minibuffer-local-completion-map)
(minibuffer-local-must-match-map): Move initialization from C.
(minibuffer-local-filename-completion-map): Move initialization from C;
don't inherit from anything here.
(minibuffer-local-filename-must-match-map): Make obsolete.
(completing-read-default): Use make-composed-keymap to combine
minibuffer-local-filename-completion-map with either
minibuffer-local-must-match-map or
minibuffer-local-filename-completion-map.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5ee7a3d7e6c..bb5c579d7fa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2011-07-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | Add multiple inheritance to keymaps. | ||
| 4 | * keymap.c (Fmake_composed_keymap): New function. | ||
| 5 | (Fset_keymap_parent): Simplify. | ||
| 6 | (fix_submap_inheritance): Remove. | ||
| 7 | (access_keymap_1): New function extracted from access_keymap to handle | ||
| 8 | embedded parents and handle lists of maps. | ||
| 9 | (access_keymap): Use it. | ||
| 10 | (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap) | ||
| 11 | (Fcopy_keymap): Handle embedded parents. | ||
| 12 | (Fcommand_remapping, define_as_prefix): Simplify. | ||
| 13 | (Fkey_binding): Simplify. | ||
| 14 | (syms_of_keymap): Move minibuffer-local-completion-map, | ||
| 15 | minibuffer-local-filename-completion-map, | ||
| 16 | minibuffer-local-must-match-map, and | ||
| 17 | minibuffer-local-filename-must-match-map to Elisp. | ||
| 18 | (syms_of_keymap): Defsubr make-composed-keymap. | ||
| 19 | * keyboard.c (menu_bar_items): Use map_keymap_canonical. | ||
| 20 | (parse_menu_item): Trivial simplification. | ||
| 21 | |||
| 1 | 2011-07-01 Glenn Morris <rgm@gnu.org> | 22 | 2011-07-01 Glenn Morris <rgm@gnu.org> |
| 2 | 23 | ||
| 3 | * Makefile.in (SETTINGS_LIBS): Fix typo. | 24 | * Makefile.in (SETTINGS_LIBS): Fix typo. |