diff options
| author | Dan Nicolaescu | 2008-04-30 05:48:32 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-04-30 05:48:32 +0000 |
| commit | 9a3558cbeb6ee199ec82220abc14feaa608c7a56 (patch) | |
| tree | 5d483bbc4b4b81aada21711d1954bdfc14e2f185 | |
| parent | 703b961194aba79bed93bc9905eb444d20ce1552 (diff) | |
| download | emacs-9a3558cbeb6ee199ec82220abc14feaa608c7a56.tar.gz emacs-9a3558cbeb6ee199ec82220abc14feaa608c7a56.zip | |
(menu-bar-tools-menu): Reorder, place Games last.
Add "..." in the appropriate places.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 129 |
2 files changed, 70 insertions, 64 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7b3cd0ffd89..a82d31d154c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | 2008-04-30 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-04-30 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * menu-bar.el (menu-bar-tools-menu): Reorder, place Games last. | ||
| 4 | Add "..." in the appropriate places. | ||
| 5 | |||
| 3 | * epa.el (epa-key-list-mode-map): Add more menu entries. | 6 | * epa.el (epa-key-list-mode-map): Add more menu entries. |
| 4 | Add ... in the appropriate places. | 7 | Add "..." in the appropriate places. |
| 5 | 8 | ||
| 6 | * dired.el (dired-mode-map): Add :help. | 9 | * dired.el (dired-mode-map): Add :help. |
| 7 | 10 | ||
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 3502496dec0..0ba1a0b1717 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1082,6 +1082,54 @@ mail status in mode line")) | |||
| 1082 | (known (assq read-mail-command known-rmail-commands))) | 1082 | (known (assq read-mail-command known-rmail-commands))) |
| 1083 | (if known (cdr known) (symbol-name read-mail-command)))) | 1083 | (if known (cdr known) (symbol-name read-mail-command)))) |
| 1084 | 1084 | ||
| 1085 | (defvar menu-bar-games-menu (make-sparse-keymap "Games")) | ||
| 1086 | |||
| 1087 | (define-key menu-bar-tools-menu [games] | ||
| 1088 | (list 'menu-item "Games" menu-bar-games-menu)) | ||
| 1089 | |||
| 1090 | (define-key menu-bar-tools-menu [separator-games] | ||
| 1091 | '("--")) | ||
| 1092 | |||
| 1093 | (define-key menu-bar-games-menu [zone] | ||
| 1094 | '(menu-item "Zone Out" zone | ||
| 1095 | :help "Play tricks with Emacs display when Emacs is idle")) | ||
| 1096 | (define-key menu-bar-games-menu [tetris] | ||
| 1097 | '(menu-item "Tetris" tetris | ||
| 1098 | :help "Falling blocks game")) | ||
| 1099 | (define-key menu-bar-games-menu [solitaire] | ||
| 1100 | '(menu-item "Solitaire" solitaire | ||
| 1101 | :help "Get rid of all the stones")) | ||
| 1102 | (define-key menu-bar-games-menu [snake] | ||
| 1103 | '(menu-item "Snake" snake | ||
| 1104 | :help "Move snake around avoiding collisions")) | ||
| 1105 | (define-key menu-bar-games-menu [pong] | ||
| 1106 | '(menu-item "Pong" pong | ||
| 1107 | :help "Bounce the ball to your opponent")) | ||
| 1108 | (define-key menu-bar-games-menu [mult] | ||
| 1109 | '(menu-item "Multiplication Puzzle" mpuz | ||
| 1110 | :help "Exercise brain with multiplication")) | ||
| 1111 | (define-key menu-bar-games-menu [life] | ||
| 1112 | '(menu-item "Life" life | ||
| 1113 | :help "Watch how John Conway's cellular automaton evolves")) | ||
| 1114 | (define-key menu-bar-games-menu [hanoi] | ||
| 1115 | '(menu-item "Towers of Hanoi" hanoi | ||
| 1116 | :help "Watch Towers-of-Hanoi puzzle solved by Emacs")) | ||
| 1117 | (define-key menu-bar-games-menu [gomoku] | ||
| 1118 | '(menu-item "Gomoku" gomoku | ||
| 1119 | :help "Mark 5 contiguous squares (like tic-tac-toe)")) | ||
| 1120 | (define-key menu-bar-games-menu [bubbles] | ||
| 1121 | '(menu-item "Bubbles" bubbles | ||
| 1122 | :help "Remove all bubbles using the fewest moves")) | ||
| 1123 | (define-key menu-bar-games-menu [black-box] | ||
| 1124 | '(menu-item "Blackbox" blackbox | ||
| 1125 | :help "Find balls in a black box by shooting rays")) | ||
| 1126 | (define-key menu-bar-games-menu [adventure] | ||
| 1127 | '(menu-item "Adventure" dunnet | ||
| 1128 | :help "Dunnet, a text Adventure game for Emacs")) | ||
| 1129 | (define-key menu-bar-games-menu [5x5] | ||
| 1130 | '(menu-item "5x5" 5x5 | ||
| 1131 | :help "Fill in all the squares on a 5x5 board")) | ||
| 1132 | |||
| 1085 | (defvar menu-bar-encryption-decryption-menu | 1133 | (defvar menu-bar-encryption-decryption-menu |
| 1086 | (make-sparse-keymap "Encryption/Decryption")) | 1134 | (make-sparse-keymap "Encryption/Decryption")) |
| 1087 | 1135 | ||
| @@ -1104,7 +1152,7 @@ mail status in mode line")) | |||
| 1104 | :help "Import public keys from the current region")) | 1152 | :help "Import public keys from the current region")) |
| 1105 | 1153 | ||
| 1106 | (define-key menu-bar-encryption-decryption-menu [import-keys] | 1154 | (define-key menu-bar-encryption-decryption-menu [import-keys] |
| 1107 | '(menu-item "Import Keys from File" epa-import-keys | 1155 | '(menu-item "Import Keys from File..." epa-import-keys |
| 1108 | :help "Import public keys from a file")) | 1156 | :help "Import public keys from a file")) |
| 1109 | 1157 | ||
| 1110 | (define-key menu-bar-encryption-decryption-menu [list-keys] | 1158 | (define-key menu-bar-encryption-decryption-menu [list-keys] |
| @@ -1114,85 +1162,40 @@ mail status in mode line")) | |||
| 1114 | (define-key menu-bar-encryption-decryption-menu [separator-keys] | 1162 | (define-key menu-bar-encryption-decryption-menu [separator-keys] |
| 1115 | '("--")) | 1163 | '("--")) |
| 1116 | 1164 | ||
| 1117 | (define-key menu-bar-encryption-decryption-menu [encrypt-region] | ||
| 1118 | '(menu-item "Encrypt Region" epa-encrypt-region | ||
| 1119 | :help "Encrypt the current region")) | ||
| 1120 | |||
| 1121 | (define-key menu-bar-encryption-decryption-menu [encrypt-file] | ||
| 1122 | '(menu-item "Encrypt File" epa-encrypt-file | ||
| 1123 | :help "Encrypt a file")) | ||
| 1124 | |||
| 1125 | (define-key menu-bar-encryption-decryption-menu [sign-region] | 1165 | (define-key menu-bar-encryption-decryption-menu [sign-region] |
| 1126 | '(menu-item "Sign Region" epa-sign-region | 1166 | '(menu-item "Sign Region" epa-sign-region |
| 1127 | :help "Create digital signature of the current region")) | 1167 | :help "Create digital signature of the current region")) |
| 1128 | 1168 | ||
| 1129 | (define-key menu-bar-encryption-decryption-menu [sign-file] | ||
| 1130 | '(menu-item "Sign File" epa-sign-file | ||
| 1131 | :help "Create digital signature of a file")) | ||
| 1132 | |||
| 1133 | (define-key menu-bar-encryption-decryption-menu [verify-region] | 1169 | (define-key menu-bar-encryption-decryption-menu [verify-region] |
| 1134 | '(menu-item "Verify Region" epa-verify-region | 1170 | '(menu-item "Verify Region" epa-verify-region |
| 1135 | :help "Verify digital signature of the current region")) | 1171 | :help "Verify digital signature of the current region")) |
| 1136 | 1172 | ||
| 1137 | (define-key menu-bar-encryption-decryption-menu [verify-file] | 1173 | (define-key menu-bar-encryption-decryption-menu [encrypt-region] |
| 1138 | '(menu-item "Verify File" epa-verify-file | 1174 | '(menu-item "Encrypt Region" epa-encrypt-region |
| 1139 | :help "Verify digital signature of a file")) | 1175 | :help "Encrypt the current region")) |
| 1140 | 1176 | ||
| 1141 | (define-key menu-bar-encryption-decryption-menu [decrypt-region] | 1177 | (define-key menu-bar-encryption-decryption-menu [decrypt-region] |
| 1142 | '(menu-item "Decrypt Region" epa-decrypt-region | 1178 | '(menu-item "Decrypt Region" epa-decrypt-region |
| 1143 | :help "Decrypt the current region")) | 1179 | :help "Decrypt the current region")) |
| 1144 | 1180 | ||
| 1145 | (define-key menu-bar-encryption-decryption-menu [decrypt-file] | 1181 | (define-key menu-bar-encryption-decryption-menu [separator-file] |
| 1146 | '(menu-item "Decrypt File" epa-decrypt-file | 1182 | '("--")) |
| 1147 | :help "Decrypt a file")) | ||
| 1148 | 1183 | ||
| 1149 | (defvar menu-bar-games-menu (make-sparse-keymap "Games")) | 1184 | (define-key menu-bar-encryption-decryption-menu [sign-file] |
| 1185 | '(menu-item "Sign File..." epa-sign-file | ||
| 1186 | :help "Create digital signature of a file")) | ||
| 1150 | 1187 | ||
| 1151 | (define-key menu-bar-tools-menu [games] | 1188 | (define-key menu-bar-encryption-decryption-menu [verify-file] |
| 1152 | (list 'menu-item "Games" menu-bar-games-menu)) | 1189 | '(menu-item "Verify File..." epa-verify-file |
| 1190 | :help "Verify digital signature of a file")) | ||
| 1153 | 1191 | ||
| 1154 | (define-key menu-bar-tools-menu [separator-games] | 1192 | (define-key menu-bar-encryption-decryption-menu [encrypt-file] |
| 1155 | '("--")) | 1193 | '(menu-item "Encrypt File..." epa-encrypt-file |
| 1194 | :help "Encrypt a file")) | ||
| 1156 | 1195 | ||
| 1157 | (define-key menu-bar-games-menu [zone] | 1196 | (define-key menu-bar-encryption-decryption-menu [decrypt-file] |
| 1158 | '(menu-item "Zone Out" zone | 1197 | '(menu-item "Decrypt File..." epa-decrypt-file |
| 1159 | :help "Play tricks with Emacs display when Emacs is idle")) | 1198 | :help "Decrypt a file")) |
| 1160 | (define-key menu-bar-games-menu [tetris] | ||
| 1161 | '(menu-item "Tetris" tetris | ||
| 1162 | :help "Falling blocks game")) | ||
| 1163 | (define-key menu-bar-games-menu [solitaire] | ||
| 1164 | '(menu-item "Solitaire" solitaire | ||
| 1165 | :help "Get rid of all the stones")) | ||
| 1166 | (define-key menu-bar-games-menu [snake] | ||
| 1167 | '(menu-item "Snake" snake | ||
| 1168 | :help "Move snake around avoiding collisions")) | ||
| 1169 | (define-key menu-bar-games-menu [pong] | ||
| 1170 | '(menu-item "Pong" pong | ||
| 1171 | :help "Bounce the ball to your opponent")) | ||
| 1172 | (define-key menu-bar-games-menu [mult] | ||
| 1173 | '(menu-item "Multiplication Puzzle" mpuz | ||
| 1174 | :help "Exercise brain with multiplication")) | ||
| 1175 | (define-key menu-bar-games-menu [life] | ||
| 1176 | '(menu-item "Life" life | ||
| 1177 | :help "Watch how John Conway's cellular automaton evolves")) | ||
| 1178 | (define-key menu-bar-games-menu [hanoi] | ||
| 1179 | '(menu-item "Towers of Hanoi" hanoi | ||
| 1180 | :help "Watch Towers-of-Hanoi puzzle solved by Emacs")) | ||
| 1181 | (define-key menu-bar-games-menu [gomoku] | ||
| 1182 | '(menu-item "Gomoku" gomoku | ||
| 1183 | :help "Mark 5 contiguous squares (like tic-tac-toe)")) | ||
| 1184 | (define-key menu-bar-games-menu [bubbles] | ||
| 1185 | '(menu-item "Bubbles" bubbles | ||
| 1186 | :help "Remove all bubbles using the fewest moves")) | ||
| 1187 | (define-key menu-bar-games-menu [black-box] | ||
| 1188 | '(menu-item "Blackbox" blackbox | ||
| 1189 | :help "Find balls in a black box by shooting rays")) | ||
| 1190 | (define-key menu-bar-games-menu [adventure] | ||
| 1191 | '(menu-item "Adventure" dunnet | ||
| 1192 | :help "Dunnet, a text Adventure game for Emacs")) | ||
| 1193 | (define-key menu-bar-games-menu [5x5] | ||
| 1194 | '(menu-item "5x5" 5x5 | ||
| 1195 | :help "Fill in all the squares on a 5x5 board")) | ||
| 1196 | 1199 | ||
| 1197 | (define-key menu-bar-tools-menu [simple-calculator] | 1200 | (define-key menu-bar-tools-menu [simple-calculator] |
| 1198 | '(menu-item "Simple Calculator" calculator | 1201 | '(menu-item "Simple Calculator" calculator |