aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-03-29 11:23:01 -0400
committerStefan Monnier2010-03-29 11:23:01 -0400
commitfe59d70512322e7001ffd772f5e74c7302b7e1d5 (patch)
tree5bf7e0872533047a8905c23de00dd9eade50a422
parenta2c9fe43660e50d34f7992bf3387908522e4bd02 (diff)
downloademacs-fe59d70512322e7001ffd772f5e74c7302b7e1d5.tar.gz
emacs-fe59d70512322e7001ffd772f5e74c7302b7e1d5.zip
Make tmm-menubar work for the Buffers menu again.
* tmm.el (tmm-prompt): Also handle keymap entries in the form of vectors rather than cons cells, as used in menu-bar-update-buffers.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/tmm.el6
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3294db39d52..bbe764b6b4a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 Make tmm-menubar work for the Buffers menu again.
4 * tmm.el (tmm-prompt): Also handle keymap entries in the form of
5 vectors rather than cons cells, as used in menu-bar-update-buffers.
6
12010-03-28 Chong Yidong <cyd@stupidchicken.com> 72010-03-28 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * progmodes/js.el (js-auto-indent-flag, js-mode-map) 9 * progmodes/js.el (js-auto-indent-flag, js-mode-map)
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 946baad59e7..f4ae3c110d5 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -170,7 +170,11 @@ Its value should be an event that has a binding in MENU."
170 (mapc (lambda (elt) 170 (mapc (lambda (elt)
171 (if (stringp elt) 171 (if (stringp elt)
172 (setq gl-str elt) 172 (setq gl-str elt)
173 (and (listp elt) (tmm-get-keymap elt not-menu)))) 173 (cond
174 ((listp elt) (tmm-get-keymap elt not-menu))
175 ((vectorp elt)
176 (dotimes (i (length elt))
177 (tmm-get-keymap (cons i (aref elt i)) not-menu))))))
174 menu) 178 menu)
175 ;; Choose an element of tmm-km-list; put it in choice. 179 ;; Choose an element of tmm-km-list; put it in choice.
176 (if (and not-menu (= 1 (length tmm-km-list))) 180 (if (and not-menu (= 1 (length tmm-km-list)))