From d918e2dcea9c4916245c10737133de95dcb75fa0 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 3 Nov 2000 22:28:30 +0000 Subject: [PATCH] (minibuffer maps): Use dolist rather than mapcar. --- lisp/menu-bar.el | 69 ++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 40 deletions(-) diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 06517f3e7fb..cbab870e91b 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -1151,48 +1151,37 @@ key (or menu-item)")) ;;; Set up a menu bar menu for the minibuffer. -(mapcar - (function - (lambda (map) - (define-key map [menu-bar minibuf] - (cons "Minibuf" (make-sparse-keymap "Minibuf"))))) - (list minibuffer-local-ns-map - minibuffer-local-must-match-map - minibuffer-local-isearch-map - minibuffer-local-map - minibuffer-local-completion-map)) +(dolist (map (list minibuffer-local-ns-map + minibuffer-local-must-match-map + minibuffer-local-isearch-map + minibuffer-local-map + minibuffer-local-completion-map)) + (define-key map [menu-bar minibuf] + (cons "Minibuf" (make-sparse-keymap "Minibuf")))) -(mapcar - (function - (lambda (map) - (define-key map [menu-bar minibuf ?\?] - (list 'menu-item "List Completions" 'minibuffer-completion-help - :help "Display all possible completions")) - (define-key map [menu-bar minibuf space] - (list 'menu-item "Complete Word" 'minibuffer-complete-word - :help "Complete at most one word")) - (define-key map [menu-bar minibuf tab] - (list 'menu-item "Complete" 'minibuffer-complete - :help "Complete as far as possible")) - )) - (list minibuffer-local-must-match-map - minibuffer-local-completion-map)) +(dolist (map (list minibuffer-local-must-match-map + minibuffer-local-completion-map)) + (define-key map [menu-bar minibuf ?\?] + (list 'menu-item "List Completions" 'minibuffer-completion-help + :help "Display all possible completions")) + (define-key map [menu-bar minibuf space] + (list 'menu-item "Complete Word" 'minibuffer-complete-word + :help "Complete at most one word")) + (define-key map [menu-bar minibuf tab] + (list 'menu-item "Complete" 'minibuffer-complete + :help "Complete as far as possible"))) -(mapcar - (function - (lambda (map) - (define-key map [menu-bar minibuf quit] - (list 'menu-item "Quit" 'keyboard-escape-quit - :help "Abort input and exit minibuffer")) - (define-key map [menu-bar minibuf return] - (list 'menu-item "Enter" 'exit-minibuffer - :help "Terminate input and exit minibuffer")) - )) - (list minibuffer-local-ns-map - minibuffer-local-must-match-map - minibuffer-local-isearch-map - minibuffer-local-map - minibuffer-local-completion-map)) +(dolist (map (list minibuffer-local-ns-map + minibuffer-local-must-match-map + minibuffer-local-isearch-map + minibuffer-local-map + minibuffer-local-completion-map)) + (define-key map [menu-bar minibuf quit] + (list 'menu-item "Quit" 'keyboard-escape-quit + :help "Abort input and exit minibuffer")) + (define-key map [menu-bar minibuf return] + (list 'menu-item "Enter" 'exit-minibuffer + :help "Terminate input and exit minibuffer"))) (defcustom menu-bar-mode nil "Toggle display of a menu bar on each frame.