aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2011-07-02 00:27:41 -0400
committerStefan Monnier2011-07-02 00:27:41 -0400
commit3349e122e2ed4e1e96851bdf84ce8ae4732b6420 (patch)
treeac1309f41e4c5dc26ddd8c7f313ece238fa65809 /etc
parent3de63bf809c2a36a5eae8e7383b2590c5ab1bcf7 (diff)
downloademacs-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 'etc')
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5cf4cd1b7cf..01b767b62f7 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -111,6 +111,10 @@ and pops down the *Completions* buffer accordingly.
111*** `completing-read' can be customized using the new variable 111*** `completing-read' can be customized using the new variable
112`completing-read-function'. 112`completing-read-function'.
113 113
114*** minibuffer-local-filename-must-match-map is not used any more.
115Instead, the bindings in minibuffer-local-filename-completion-map are combined
116with minibuffer-local-must-match-map.
117
114** auto-mode-case-fold is now enabled by default. 118** auto-mode-case-fold is now enabled by default.
115 119
116** smtpmail changes 120** smtpmail changes
@@ -1094,6 +1098,7 @@ as well as those in the -*- line.
1094--- 1098---
1095** rx.el has a new `group-n' construct for explicitly numbered groups. 1099** rx.el has a new `group-n' construct for explicitly numbered groups.
1096 1100
1101** keymaps can inherit from multiple parents.
1097 1102
1098* Changes in Emacs 24.1 on non-free operating systems 1103* Changes in Emacs 24.1 on non-free operating systems
1099 1104