diff options
| -rw-r--r-- | lisp/menu-bar.el | 73 |
1 files changed, 31 insertions, 42 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)")) | |||
| 1151 | 1151 | ||
| 1152 | ;;; Set up a menu bar menu for the minibuffer. | 1152 | ;;; Set up a menu bar menu for the minibuffer. |
| 1153 | 1153 | ||
| 1154 | (mapcar | 1154 | (dolist (map (list minibuffer-local-ns-map |
| 1155 | (function | 1155 | minibuffer-local-must-match-map |
| 1156 | (lambda (map) | 1156 | minibuffer-local-isearch-map |
| 1157 | (define-key map [menu-bar minibuf] | 1157 | minibuffer-local-map |
| 1158 | (cons "Minibuf" (make-sparse-keymap "Minibuf"))))) | 1158 | minibuffer-local-completion-map)) |
| 1159 | (list minibuffer-local-ns-map | 1159 | (define-key map [menu-bar minibuf] |
| 1160 | minibuffer-local-must-match-map | 1160 | (cons "Minibuf" (make-sparse-keymap "Minibuf")))) |
| 1161 | minibuffer-local-isearch-map | 1161 | |
| 1162 | minibuffer-local-map | 1162 | (dolist (map (list minibuffer-local-must-match-map |
| 1163 | minibuffer-local-completion-map)) | 1163 | minibuffer-local-completion-map)) |
| 1164 | 1164 | (define-key map [menu-bar minibuf ?\?] | |
| 1165 | (mapcar | 1165 | (list 'menu-item "List Completions" 'minibuffer-completion-help |
| 1166 | (function | 1166 | :help "Display all possible completions")) |
| 1167 | (lambda (map) | 1167 | (define-key map [menu-bar minibuf space] |
| 1168 | (define-key map [menu-bar minibuf ?\?] | 1168 | (list 'menu-item "Complete Word" 'minibuffer-complete-word |
| 1169 | (list 'menu-item "List Completions" 'minibuffer-completion-help | 1169 | :help "Complete at most one word")) |
| 1170 | :help "Display all possible completions")) | 1170 | (define-key map [menu-bar minibuf tab] |
| 1171 | (define-key map [menu-bar minibuf space] | 1171 | (list 'menu-item "Complete" 'minibuffer-complete |
| 1172 | (list 'menu-item "Complete Word" 'minibuffer-complete-word | 1172 | :help "Complete as far as possible"))) |
| 1173 | :help "Complete at most one word")) | 1173 | |
| 1174 | (define-key map [menu-bar minibuf tab] | 1174 | (dolist (map (list minibuffer-local-ns-map |
| 1175 | (list 'menu-item "Complete" 'minibuffer-complete | 1175 | minibuffer-local-must-match-map |
| 1176 | :help "Complete as far as possible")) | 1176 | minibuffer-local-isearch-map |
| 1177 | )) | 1177 | minibuffer-local-map |
| 1178 | (list minibuffer-local-must-match-map | 1178 | minibuffer-local-completion-map)) |
| 1179 | minibuffer-local-completion-map)) | 1179 | (define-key map [menu-bar minibuf quit] |
| 1180 | 1180 | (list 'menu-item "Quit" 'keyboard-escape-quit | |
| 1181 | (mapcar | 1181 | :help "Abort input and exit minibuffer")) |
| 1182 | (function | 1182 | (define-key map [menu-bar minibuf return] |
| 1183 | (lambda (map) | 1183 | (list 'menu-item "Enter" 'exit-minibuffer |
| 1184 | (define-key map [menu-bar minibuf quit] | 1184 | :help "Terminate input and exit minibuffer"))) |
| 1185 | (list 'menu-item "Quit" 'keyboard-escape-quit | ||
| 1186 | :help "Abort input and exit minibuffer")) | ||
| 1187 | (define-key map [menu-bar minibuf return] | ||
| 1188 | (list 'menu-item "Enter" 'exit-minibuffer | ||
| 1189 | :help "Terminate input and exit minibuffer")) | ||
| 1190 | )) | ||
| 1191 | (list minibuffer-local-ns-map | ||
| 1192 | minibuffer-local-must-match-map | ||
| 1193 | minibuffer-local-isearch-map | ||
| 1194 | minibuffer-local-map | ||
| 1195 | minibuffer-local-completion-map)) | ||
| 1196 | 1185 | ||
| 1197 | (defcustom menu-bar-mode nil | 1186 | (defcustom menu-bar-mode nil |
| 1198 | "Toggle display of a menu bar on each frame. | 1187 | "Toggle display of a menu bar on each frame. |