From 6bca885a20f83220f93ad0d96af74fb84ab087d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=BCdiger=20Sonderfeld?= Date: Tue, 29 Jul 2014 16:21:11 +0200 Subject: [PATCH] Fix Bug#18016. menu-bar.el (menu-bar-update-buffers): Update item list format in `buffers-menu' to confirm with changes to `get_keyelt' (2014-07-02T01:49:31Z!monnier@iro.umontreal.ca). (Bug#18016) --- lisp/ChangeLog | 6 ++++++ lisp/menu-bar.el | 15 ++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a54d4e2df6..b8477293e76 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-07-29 Rüdiger Sonderfeld + + * menu-bar.el (menu-bar-update-buffers): Update item list format + in `buffers-menu' to confirm with changes to `get_keyelt' + (r117463). (Bug#18016) + 2014-07-28 Fabián Ezequiel Gallina * progmodes/python.el (inferior-python-mode): Make input prompts diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 5ad4bed49b8..57acbbe648e 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -1988,11 +1988,10 @@ It must accept a buffer as its only required argument.") (dolist (pair alist) (setq i (1- i)) (aset buffers-vec i - (nconc (list (car pair) - (cons nil nil)) - `(lambda () - (interactive) - (funcall menu-bar-select-buffer-function ,(cdr pair)))))) + (cons (car pair) + `(lambda () + (interactive) + (funcall menu-bar-select-buffer-function ,(cdr pair)))))) (list buffers-vec)))) ;; Make a Frames menu if we have more than one frame. @@ -2004,10 +2003,8 @@ It must accept a buffer as its only required argument.") (i 0)) (dolist (frame frames) (aset frames-vec i - (nconc - (list - (frame-parameter frame 'name) - (cons nil nil)) + (cons + (frame-parameter frame 'name) `(lambda () (interactive) (menu-bar-select-frame ,frame)))) (setq i (1+ i))) -- 2.39.2