aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-07 23:43:38 +0200
committerLars Magne Ingebrigtsen2011-07-07 23:43:38 +0200
commit0a1848ec120df450d6c39e180fcc008b8208d67f (patch)
tree4898d4801169bf28ab6626bbdecade07246a5f90
parent095f79fce72560d112d4e6a3c9b0217729759cfe (diff)
downloademacs-0a1848ec120df450d6c39e180fcc008b8208d67f.tar.gz
emacs-0a1848ec120df450d6c39e180fcc008b8208d67f.zip
Make all the Options menu items into verb phrases
* menu-bar.el (menu-bar-line-wrapping-menu): Also refill to fit under 80 columns. Fixes: debbugs:1421
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/menu-bar.el129
2 files changed, 76 insertions, 59 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 84514675b41..9f8ad0e9f22 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-07-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * menu-bar.el (menu-bar-line-wrapping-menu): Make all the Options
4 menu items into verb phrases (bug#1421). Also refill to fit under
5 80 columns.
6
12011-07-07 Chong Yidong <cyd@stupidchicken.com> 72011-07-07 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * info.el (info, Info-read-node-name-2, Info-read-node-name-1) 9 * info.el (info, Info-read-node-name-2, Info-read-node-name-1)
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 437bd523841..0f8f8186a36 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1135,17 +1135,18 @@ mail status in mode line"))
1135 (let ((menu (make-sparse-keymap "Line Wrapping"))) 1135 (let ((menu (make-sparse-keymap "Line Wrapping")))
1136 1136
1137 (define-key menu [word-wrap] 1137 (define-key menu [word-wrap]
1138 `(menu-item ,(purecopy "Word Wrap (Visual Line mode)") 1138 `(menu-item
1139 (lambda () 1139 ,(purecopy "Wrap Between Words (Visual Line mode)")
1140 (interactive) 1140 (lambda ()
1141 (unless visual-line-mode 1141 (interactive)
1142 (visual-line-mode 1)) 1142 (unless visual-line-mode
1143 (message ,(purecopy "Visual-Line mode enabled"))) 1143 (visual-line-mode 1))
1144 :help ,(purecopy "Wrap long lines at word boundaries") 1144 (message ,(purecopy "Visual-Line mode enabled")))
1145 :button (:radio . (and (null truncate-lines) 1145 :help ,(purecopy "Wrap long lines at word boundaries")
1146 (not (truncated-partial-width-window-p)) 1146 :button (:radio . (and (null truncate-lines)
1147 word-wrap)) 1147 (not (truncated-partial-width-window-p))
1148 :visible (menu-bar-menu-frame-live-and-visible-p))) 1148 word-wrap))
1149 :visible (menu-bar-menu-frame-live-and-visible-p)))
1149 1150
1150 (define-key menu [truncate] 1151 (define-key menu [truncate]
1151 `(menu-item ,(purecopy "Truncate Long Lines") 1152 `(menu-item ,(purecopy "Truncate Long Lines")
@@ -1238,78 +1239,88 @@ mail status in mode line"))
1238 menu-bar-separator) 1239 menu-bar-separator)
1239 1240
1240 (define-key menu [blink-cursor-mode] 1241 (define-key menu [blink-cursor-mode]
1241 (menu-bar-make-mm-toggle blink-cursor-mode 1242 (menu-bar-make-mm-toggle
1242 "Blinking Cursor" 1243 blink-cursor-mode
1243 "Whether the cursor blinks (Blink Cursor mode)")) 1244 "Blink Cursor"
1245 "Whether the cursor blinks (Blink Cursor mode)"))
1244 (define-key menu [cursor-separator] 1246 (define-key menu [cursor-separator]
1245 menu-bar-separator) 1247 menu-bar-separator)
1246 1248
1247 (define-key menu [save-place] 1249 (define-key menu [save-place]
1248 (menu-bar-make-toggle toggle-save-place-globally save-place 1250 (menu-bar-make-toggle
1249 "Save Place in Files between Sessions" 1251 toggle-save-place-globally save-place
1250 "Saving place in files %s" 1252 "Save Place in Files between Sessions"
1251 "Visit files of previous session when restarting Emacs" 1253 "Saving place in files %s"
1252 (require 'saveplace) 1254 "Visit files of previous session when restarting Emacs"
1253 ;; Do it by name, to avoid a free-variable 1255 (require 'saveplace)
1254 ;; warning during byte compilation. 1256 ;; Do it by name, to avoid a free-variable
1255 (set-default 1257 ;; warning during byte compilation.
1256 'save-place (not (symbol-value 'save-place))))) 1258 (set-default
1259 'save-place (not (symbol-value 'save-place)))))
1257 1260
1258 (define-key menu [uniquify] 1261 (define-key menu [uniquify]
1259 (menu-bar-make-toggle toggle-uniquify-buffer-names uniquify-buffer-name-style 1262 (menu-bar-make-toggle
1260 "Use Directory Names in Buffer Names" 1263 toggle-uniquify-buffer-names uniquify-buffer-name-style
1261 "Directory name in buffer names (uniquify) %s" 1264 "Use Directory Names in Buffer Names"
1262 "Uniquify buffer names by adding parent directory names" 1265 "Directory name in buffer names (uniquify) %s"
1263 (require 'uniquify) 1266 "Uniquify buffer names by adding parent directory names"
1264 (setq uniquify-buffer-name-style 1267 (require 'uniquify)
1265 (if (not uniquify-buffer-name-style) 1268 (setq uniquify-buffer-name-style
1266 'forward)))) 1269 (if (not uniquify-buffer-name-style)
1270 'forward))))
1267 1271
1268 (define-key menu [edit-options-separator] 1272 (define-key menu [edit-options-separator]
1269 menu-bar-separator) 1273 menu-bar-separator)
1270 (define-key menu [cua-mode] 1274 (define-key menu [cua-mode]
1271 (menu-bar-make-mm-toggle cua-mode 1275 (menu-bar-make-mm-toggle
1272 "C-x/C-c/C-v Cut and Paste (CUA)" 1276 cua-mode
1273 "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste" 1277 "Use C-x/C-c/C-v Cut and Paste (CUA) Keys"
1274 (:visible (or (not (boundp 'cua-enable-cua-keys)) 1278 "Use C-z/C-x/C-c/C-v keys for undo/cut/copy/paste"
1275 cua-enable-cua-keys)))) 1279 (:visible (or (not (boundp 'cua-enable-cua-keys))
1280 cua-enable-cua-keys))))
1276 1281
1277 (define-key menu [cua-emulation-mode] 1282 (define-key menu [cua-emulation-mode]
1278 (menu-bar-make-mm-toggle cua-mode 1283 (menu-bar-make-mm-toggle
1279 "Shift movement mark region (CUA)" 1284 cua-mode
1280 "Use shifted movement keys to set and extend the region" 1285 "Shift movement mark region (CUA)"
1281 (:visible (and (boundp 'cua-enable-cua-keys) 1286 "Use shifted movement keys to set and extend the region"
1282 (not cua-enable-cua-keys))))) 1287 (:visible (and (boundp 'cua-enable-cua-keys)
1288 (not cua-enable-cua-keys)))))
1283 1289
1284 (define-key menu [case-fold-search] 1290 (define-key menu [case-fold-search]
1285 (menu-bar-make-toggle toggle-case-fold-search case-fold-search 1291 (menu-bar-make-toggle
1286 "Case-Insensitive Search" 1292 toggle-case-fold-search case-fold-search
1287 "Case-Insensitive Search %s" 1293 "Ignore Case for Search"
1288 "Ignore letter-case in search commands")) 1294 "Case-Insensitive Search %s"
1295 "Ignore letter-case in search commands"))
1289 1296
1290 (define-key menu [auto-fill-mode] 1297 (define-key menu [auto-fill-mode]
1291 `(menu-item ,(purecopy "Auto Fill in Text Modes") 1298 `(menu-item
1292 menu-bar-text-mode-auto-fill 1299 ,(purecopy "Auto Fill in Text Modes")
1293 :help ,(purecopy "Automatically fill text while typing (Auto Fill mode)") 1300 menu-bar-text-mode-auto-fill
1294 :button (:toggle . (if (listp text-mode-hook) 1301 :help ,(purecopy "Automatically fill text while typing (Auto Fill mode)")
1295 (member 'turn-on-auto-fill text-mode-hook) 1302 :button (:toggle . (if (listp text-mode-hook)
1296 (eq 'turn-on-auto-fill text-mode-hook))))) 1303 (member 'turn-on-auto-fill text-mode-hook)
1304 (eq 'turn-on-auto-fill text-mode-hook)))))
1297 1305
1298 (define-key menu [line-wrapping] 1306 (define-key menu [line-wrapping]
1299 `(menu-item ,(purecopy "Line Wrapping in this Buffer") ,menu-bar-line-wrapping-menu)) 1307 `(menu-item ,(purecopy "Line Wrapping in this Buffer")
1308 ,menu-bar-line-wrapping-menu))
1300 1309
1301 1310
1302 (define-key menu [highlight-separator] 1311 (define-key menu [highlight-separator]
1303 menu-bar-separator) 1312 menu-bar-separator)
1304 (define-key menu [highlight-paren-mode] 1313 (define-key menu [highlight-paren-mode]
1305 (menu-bar-make-mm-toggle show-paren-mode 1314 (menu-bar-make-mm-toggle
1306 "Paren Match Highlighting" 1315 show-paren-mode
1307 "Highlight matching/mismatched parentheses at cursor (Show Paren mode)")) 1316 "Highlighting Matching Parenthesis"
1317 "Highlight matching/mismatched parentheses at cursor (Show Paren mode)"))
1308 (define-key menu [transient-mark-mode] 1318 (define-key menu [transient-mark-mode]
1309 (menu-bar-make-mm-toggle transient-mark-mode 1319 (menu-bar-make-mm-toggle
1310 "Active Region Highlighting" 1320 transient-mark-mode
1311 "Make text in active region stand out in color (Transient Mark mode)" 1321 "Highlight Active Region"
1312 (:enable (not cua-mode)))) 1322 "Make text in active region stand out in color (Transient Mark mode)"
1323 (:enable (not cua-mode))))
1313 menu)) 1324 menu))
1314 1325
1315 1326