aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2013-02-11 14:21:23 -0500
committerStefan Monnier2013-02-11 14:21:23 -0500
commit99d0d6dc23f0fd2ee6d64f0f18a33f2b791c642d (patch)
tree2cd8a54c22c9354415306c76bd65dddde723532f /lisp
parentf5e1b6804dc2307983e4c55d4d6530549ddccbb7 (diff)
downloademacs-99d0d6dc23f0fd2ee6d64f0f18a33f2b791c642d.tar.gz
emacs-99d0d6dc23f0fd2ee6d64f0f18a33f2b791c642d.zip
Clean up read_key_sequence a bit; reread active keymaps after first event.
* src/keyboard.c (read_char, read_char_x_menu_prompt) (read_char_minibuf_menu_prompt): Replace nmaps+maps with a single `map' arg. (follow_key): Operate on a single map. (active_maps): New function. (test_undefined): Also return true for nil bindings. (read_key_sequence): Use active_maps to replace the arrays of keymaps with a single (composed) keymap. Remember `first_event' to choose the right set of active keymaps. Recompute the set of keymaps after receiving the first event. Remove GOBBLE_FIRST_EVENT. (syms_of_keyboard): Remove inhibit_local_menu_bar_menus. * src/keyboard.h (read_char): Update declaration. * src/lread.c (read_filtered_event): Adjust call to read_char. * lisp/cus-start.el (all): Remove inhibit-local-menu-bar-menus.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/cus-start.el19
2 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0cc3f3b595..1510c6a8fba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * cus-start.el (all): Remove inhibit-local-menu-bar-menus.
4
12013-02-11 Glenn Morris <rgm@gnu.org> 52013-02-11 Glenn Morris <rgm@gnu.org>
2 6
3 * vc/diff.el (diff-use-labels): New variable. 7 * vc/diff.el (diff-use-labels): New variable.
@@ -14,8 +18,8 @@
14 18
152013-02-10 Christopher Schmidt <christopher@ch.ristopher.com> 192013-02-10 Christopher Schmidt <christopher@ch.ristopher.com>
16 20
17 * minibuf-eldef.el (minibuffer-default--in-prompt-regexps): Handle 21 * minibuf-eldef.el (minibuffer-default--in-prompt-regexps):
18 "foo (bar, default: xxx): " prompts. 22 Handle "foo (bar, default: xxx): " prompts.
19 23
202013-02-10 Chong Yidong <cyd@gnu.org> 242013-02-10 Chong Yidong <cyd@gnu.org>
21 25
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 2bc47426332..2e442b6c944 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -286,7 +286,6 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
286 (double-click-time mouse (restricted-sexp 286 (double-click-time mouse (restricted-sexp
287 :match-alternatives (integerp 'nil 't))) 287 :match-alternatives (integerp 'nil 't)))
288 (double-click-fuzz mouse integer "22.1") 288 (double-click-fuzz mouse integer "22.1")
289 (inhibit-local-menu-bar-menus menu boolean)
290 (help-char keyboard character) 289 (help-char keyboard character)
291 (help-event-list keyboard (repeat (sexp :format "%v"))) 290 (help-event-list keyboard (repeat (sexp :format "%v")))
292 (menu-prompting menu boolean) 291 (menu-prompting menu boolean)
@@ -301,15 +300,15 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
301 (const :tag "When sent SIGUSR2" sigusr2)) 300 (const :tag "When sent SIGUSR2" sigusr2))
302 "24.1") 301 "24.1")
303 302
304;; This is not good news because it will use the wrong 303 ;; This is not good news because it will use the wrong
305;; version-specific directories when you upgrade. We need 304 ;; version-specific directories when you upgrade. We need
306;; customization of the front of the list, maintaining the standard 305 ;; customization of the front of the list, maintaining the
307;; value intact at the back. 306 ;; standard value intact at the back.
308;;; (load-path environment 307 ;;(load-path environment
309;;; (repeat (choice :tag "[Current dir?]" 308 ;; (repeat (choice :tag "[Current dir?]"
310;;; :format "%[Current dir?%] %v" 309 ;; :format "%[Current dir?%] %v"
311;;; (const :tag " current dir" nil) 310 ;; (const :tag " current dir" nil)
312;;; (directory :format "%v")))) 311 ;; (directory :format "%v"))))
313 ;; minibuf.c 312 ;; minibuf.c
314 (enable-recursive-minibuffers minibuffer boolean) 313 (enable-recursive-minibuffers minibuffer boolean)
315 (history-length minibuffer 314 (history-length minibuffer