aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2009-11-11 06:06:43 +0000
committerDan Nicolaescu2009-11-11 06:06:43 +0000
commit04991a1c0d1e23391f5d88d3e5007e352c1ab3cb (patch)
treebab8829fe7119a8323b3db61e0eb74a5160d94fd
parenta3c20c832c18bc0d21e7c94c416582340a614264 (diff)
downloademacs-04991a1c0d1e23391f5d88d3e5007e352c1ab3cb.tar.gz
emacs-04991a1c0d1e23391f5d88d3e5007e352c1ab3cb.zip
* net/eudc.el (eudc-tools-menu):
* international/mule-cmds.el (set-coding-system-map) (mule-menu-keymap): * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): * vc-hooks.el (vc-menu-map): Use menu-bar-separator.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/lisp-mode.el13
-rw-r--r--lisp/international/mule-cmds.el12
-rw-r--r--lisp/net/eudc.el4
-rw-r--r--lisp/vc-hooks.el6
5 files changed, 23 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4eac35489cb..c63187e92b2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,11 @@
12009-11-11 Dan Nicolaescu <dann@ics.uci.edu> 12009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * subr.el (menu-bar-separator): New defconst. 3 * subr.el (menu-bar-separator): New defconst.
4 * net/eudc.el (eudc-tools-menu):
5 * international/mule-cmds.el (set-coding-system-map)
6 (mule-menu-keymap):
7 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map):
8 * vc-hooks.el (vc-menu-map):
4 * replace.el (occur-mode-map): 9 * replace.el (occur-mode-map):
5 * menu-bar.el (menu-bar-file-menu, menu-bar-search-menu) 10 * menu-bar.el (menu-bar-file-menu, menu-bar-search-menu)
6 (menu-bar-edit-menu, menu-bar-goto-menu, menu-bar-edit-menu) 11 (menu-bar-edit-menu, menu-bar-goto-menu, menu-bar-edit-menu)
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 1a837dc200d..a42ef5da930 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -301,7 +301,7 @@ font-lock keywords will not be case sensitive."
301 (define-key tracing-map [tr-uf] 301 (define-key tracing-map [tr-uf]
302 `(menu-item ,(purecopy "Untrace function...") untrace-function 302 `(menu-item ,(purecopy "Untrace function...") untrace-function
303 :help ,(purecopy "Untrace function, and possibly activate all remaining advice"))) 303 :help ,(purecopy "Untrace function, and possibly activate all remaining advice")))
304 (define-key tracing-map [tr-sep] '("--")) 304 (define-key tracing-map [tr-sep] menu-bar-separator)
305 (define-key tracing-map [tr-q] 305 (define-key tracing-map [tr-q]
306 `(menu-item ,(purecopy "Trace function quietly...") trace-function-background 306 `(menu-item ,(purecopy "Trace function quietly...") trace-function-background
307 :help ,(purecopy "Trace the function with trace output going quietly to a buffer"))) 307 :help ,(purecopy "Trace the function with trace output going quietly to a buffer")))
@@ -316,7 +316,7 @@ font-lock keywords will not be case sensitive."
316 `(menu-item ,(purecopy "Remove Instrumentation for Function...") elp-restore-function 316 `(menu-item ,(purecopy "Remove Instrumentation for Function...") elp-restore-function
317 :help ,(purecopy "Restore an instrumented function to its original definition"))) 317 :help ,(purecopy "Restore an instrumented function to its original definition")))
318 318
319 (define-key prof-map [sep-rem] '("--")) 319 (define-key prof-map [sep-rem] menu-bar-separator)
320 (define-key prof-map [prof-resall] 320 (define-key prof-map [prof-resall]
321 `(menu-item ,(purecopy "Reset Counters for All Functions") elp-reset-all 321 `(menu-item ,(purecopy "Reset Counters for All Functions") elp-reset-all
322 :help ,(purecopy "Reset the profiling information for all functions being profiled"))) 322 :help ,(purecopy "Reset the profiling information for all functions being profiled")))
@@ -349,7 +349,7 @@ font-lock keywords will not be case sensitive."
349 `(menu-item ,(purecopy "Instrument Function for Debugging") edebug-defun 349 `(menu-item ,(purecopy "Instrument Function for Debugging") edebug-defun
350 :help ,(purecopy "Evaluate the top level form point is in, stepping through with Edebug") 350 :help ,(purecopy "Evaluate the top level form point is in, stepping through with Edebug")
351 :keys ,(purecopy "C-u C-M-x"))) 351 :keys ,(purecopy "C-u C-M-x")))
352 (define-key menu-map [separator-byte] '("--")) 352 (define-key menu-map [separator-byte] menu-bar-separator)
353 (define-key menu-map [disas] 353 (define-key menu-map [disas]
354 `(menu-item ,(purecopy "Disassemble byte compiled object...") disassemble 354 `(menu-item ,(purecopy "Disassemble byte compiled object...") disassemble
355 :help ,(purecopy "Print disassembled code for OBJECT in a buffer"))) 355 :help ,(purecopy "Print disassembled code for OBJECT in a buffer")))
@@ -362,7 +362,7 @@ font-lock keywords will not be case sensitive."
362 (define-key menu-map [byte-compile] 362 (define-key menu-map [byte-compile]
363 `(menu-item ,(purecopy "Byte-compile This File") emacs-lisp-byte-compile 363 `(menu-item ,(purecopy "Byte-compile This File") emacs-lisp-byte-compile
364 :help ,(purecopy "Byte compile the file containing the current buffer"))) 364 :help ,(purecopy "Byte compile the file containing the current buffer")))
365 (define-key menu-map [separator-eval] '("--")) 365 (define-key menu-map [separator-eval] menu-bar-separator)
366 (define-key menu-map [ielm] 366 (define-key menu-map [ielm]
367 `(menu-item ,(purecopy "Interactive Expression Evaluation") ielm 367 `(menu-item ,(purecopy "Interactive Expression Evaluation") ielm
368 :help ,(purecopy "Interactively evaluate Emacs Lisp expressions"))) 368 :help ,(purecopy "Interactively evaluate Emacs Lisp expressions")))
@@ -376,7 +376,7 @@ font-lock keywords will not be case sensitive."
376 (define-key menu-map [eval-sexp] 376 (define-key menu-map [eval-sexp]
377 `(menu-item ,(purecopy "Evaluate Last S-expression") eval-last-sexp 377 `(menu-item ,(purecopy "Evaluate Last S-expression") eval-last-sexp
378 :help ,(purecopy "Evaluate sexp before point; print value in minibuffer"))) 378 :help ,(purecopy "Evaluate sexp before point; print value in minibuffer")))
379 (define-key menu-map [separator-format] '("--")) 379 (define-key menu-map [separator-format] menu-bar-separator)
380 (define-key menu-map [comment-region] 380 (define-key menu-map [comment-region]
381 `(menu-item ,(purecopy "Comment Out Region") comment-region 381 `(menu-item ,(purecopy "Comment Out Region") comment-region
382 :help ,(purecopy "Comment or uncomment each line in the region") 382 :help ,(purecopy "Comment or uncomment each line in the region")
@@ -385,7 +385,8 @@ font-lock keywords will not be case sensitive."
385 `(menu-item ,(purecopy "Indent Region") indent-region 385 `(menu-item ,(purecopy "Indent Region") indent-region
386 :help ,(purecopy "Indent each nonblank line in the region") 386 :help ,(purecopy "Indent each nonblank line in the region")
387 :enable mark-active)) 387 :enable mark-active))
388 (define-key menu-map [indent-line] '("Indent Line" . lisp-indent-line)) 388 (define-key menu-map [indent-line]
389 `(menu-item ,(purecopy "Indent Line") lisp-indent-line))
389 map) 390 map)
390 "Keymap for Emacs Lisp mode. 391 "Keymap for Emacs Lisp mode.
391All commands in `lisp-mode-shared-map' are inherited by this map.") 392All commands in `lisp-mode-shared-map' are inherited by this map.")
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index dc8d134f16c..4b45bf6b378 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -76,7 +76,7 @@
76 (define-key-after map [universal-coding-system-argument] 76 (define-key-after map [universal-coding-system-argument]
77 `(menu-item ,(purecopy "For Next Command") universal-coding-system-argument 77 `(menu-item ,(purecopy "For Next Command") universal-coding-system-argument
78 :help ,(purecopy "Coding system to be used by next command"))) 78 :help ,(purecopy "Coding system to be used by next command")))
79 (define-key-after map [separator-1] '("--")) 79 (define-key-after map [separator-1] menu-bar-separator)
80 (define-key-after map [set-buffer-file-coding-system] 80 (define-key-after map [set-buffer-file-coding-system]
81 `(menu-item ,(purecopy "For Saving This Buffer") set-buffer-file-coding-system 81 `(menu-item ,(purecopy "For Saving This Buffer") set-buffer-file-coding-system
82 :help ,(purecopy "How to encode this buffer when saved"))) 82 :help ,(purecopy "How to encode this buffer when saved")))
@@ -88,7 +88,7 @@
88 (define-key-after map [set-file-name-coding-system] 88 (define-key-after map [set-file-name-coding-system]
89 `(menu-item ,(purecopy "For File Name") set-file-name-coding-system 89 `(menu-item ,(purecopy "For File Name") set-file-name-coding-system
90 :help ,(purecopy "How to decode/encode file names"))) 90 :help ,(purecopy "How to decode/encode file names")))
91 (define-key-after map [separator-2] '("--")) 91 (define-key-after map [separator-2] menu-bar-separator)
92 92
93 (define-key-after map [set-keyboard-coding-system] 93 (define-key-after map [set-keyboard-coding-system]
94 `(menu-item ,(purecopy "For Keyboard") set-keyboard-coding-system 94 `(menu-item ,(purecopy "For Keyboard") set-keyboard-coding-system
@@ -97,7 +97,7 @@
97 `(menu-item ,(purecopy "For Terminal") set-terminal-coding-system 97 `(menu-item ,(purecopy "For Terminal") set-terminal-coding-system
98 :enable (null (memq initial-window-system '(x w32 ns))) 98 :enable (null (memq initial-window-system '(x w32 ns)))
99 :help ,(purecopy "How to encode terminal output"))) 99 :help ,(purecopy "How to encode terminal output")))
100 (define-key-after map [separator-3] '("--")) 100 (define-key-after map [separator-3] menu-bar-separator)
101 101
102 (define-key-after map [set-selection-coding-system] 102 (define-key-after map [set-selection-coding-system]
103 `(menu-item ,(purecopy "For X Selections/Clipboard") set-selection-coding-system 103 `(menu-item ,(purecopy "For X Selections/Clipboard") set-selection-coding-system
@@ -118,7 +118,7 @@
118 (let ((map (make-sparse-keymap "Mule (Multilingual Environment)"))) 118 (let ((map (make-sparse-keymap "Mule (Multilingual Environment)")))
119 (define-key-after map [set-language-environment] 119 (define-key-after map [set-language-environment]
120 `(menu-item ,(purecopy "Set Language Environment") ,setup-language-environment-map)) 120 `(menu-item ,(purecopy "Set Language Environment") ,setup-language-environment-map))
121 (define-key-after map [separator-mule] '("--")) 121 (define-key-after map [separator-mule] menu-bar-separator)
122 122
123 (define-key-after map [toggle-input-method] 123 (define-key-after map [toggle-input-method]
124 `(menu-item ,(purecopy "Toggle Input Method") toggle-input-method)) 124 `(menu-item ,(purecopy "Toggle Input Method") toggle-input-method))
@@ -126,7 +126,7 @@
126 `(menu-item ,(purecopy "Select Input Method...") set-input-method)) 126 `(menu-item ,(purecopy "Select Input Method...") set-input-method))
127 (define-key-after map [describe-input-method] 127 (define-key-after map [describe-input-method]
128 `(menu-item ,(purecopy "Describe Input Method") describe-input-method)) 128 `(menu-item ,(purecopy "Describe Input Method") describe-input-method))
129 (define-key-after map [separator-input-method] '("--")) 129 (define-key-after map [separator-input-method] menu-bar-separator)
130 130
131 (define-key-after map [set-various-coding-system] 131 (define-key-after map [set-various-coding-system]
132 `(menu-item ,(purecopy "Set Coding Systems") ,set-coding-system-map 132 `(menu-item ,(purecopy "Set Coding Systems") ,set-coding-system-map
@@ -136,7 +136,7 @@
136 :enable (file-readable-p 136 :enable (file-readable-p
137 (expand-file-name "HELLO" data-directory)) 137 (expand-file-name "HELLO" data-directory))
138 :help ,(purecopy "Display file which says HELLO in many languages"))) 138 :help ,(purecopy "Display file which says HELLO in many languages")))
139 (define-key-after map [separator-coding-system] '("--")) 139 (define-key-after map [separator-coding-system] menu-bar-separator)
140 140
141 (define-key-after map [describe-language-environment] 141 (define-key-after map [describe-language-environment]
142 `(menu-item ,(purecopy "Describe Language Environment") 142 `(menu-item ,(purecopy "Describe Language Environment")
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el
index 9b5f5977f9e..4e53f16daf8 100644
--- a/lisp/net/eudc.el
+++ b/lisp/net/eudc.el
@@ -1246,14 +1246,14 @@ This does nothing except loading eudc by autoload side-effect."
1246 (define-key map [email] 1246 (define-key map [email]
1247 `(menu-item ,(purecopy "Get Email") eudc-get-email 1247 `(menu-item ,(purecopy "Get Email") eudc-get-email
1248 :help ,(purecopy "Get the email field of NAME from the directory server"))) 1248 :help ,(purecopy "Get the email field of NAME from the directory server")))
1249 (define-key map [separator-eudc-email] '("--")) 1249 (define-key map [separator-eudc-email] menu-bar-separator)
1250 (define-key map [expand-inline] 1250 (define-key map [expand-inline]
1251 `(menu-item ,(purecopy "Expand Inline Query") eudc-expand-inline 1251 `(menu-item ,(purecopy "Expand Inline Query") eudc-expand-inline
1252 :help ,(purecopy "Query the directory server, and expand the query string before point"))) 1252 :help ,(purecopy "Query the directory server, and expand the query string before point")))
1253 (define-key map [query] 1253 (define-key map [query]
1254 `(menu-item ,(purecopy "Query with Form") eudc-query-form 1254 `(menu-item ,(purecopy "Query with Form") eudc-query-form
1255 :help ,(purecopy "Display a form to query the directory server"))) 1255 :help ,(purecopy "Display a form to query the directory server")))
1256 (define-key map [separator-eudc-query] '("--")) 1256 (define-key map [separator-eudc-query] menu-bar-separator)
1257 (define-key map [new] 1257 (define-key map [new]
1258 `(menu-item ,(purecopy "New Server") eudc-set-server 1258 `(menu-item ,(purecopy "New Server") eudc-set-server
1259 :help ,(purecopy "Set the directory server to SERVER using PROTOCOL"))) 1259 :help ,(purecopy "Set the directory server to SERVER using PROTOCOL")))
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index c1336d26924..fabb35f6da0 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -967,7 +967,7 @@ current, and kill the buffer that visits the link."
967 (define-key map [vc-create-tag] 967 (define-key map [vc-create-tag]
968 `(menu-item ,(purecopy "Create Tag") vc-create-tag 968 `(menu-item ,(purecopy "Create Tag") vc-create-tag
969 :help ,(purecopy "Create version tag"))) 969 :help ,(purecopy "Create version tag")))
970 (define-key map [separator1] '("----")) 970 (define-key map [separator1] menu-bar-separator)
971 (define-key map [vc-annotate] 971 (define-key map [vc-annotate]
972 `(menu-item ,(purecopy "Annotate") vc-annotate 972 `(menu-item ,(purecopy "Annotate") vc-annotate
973 :help ,(purecopy "Display the edit history of the current file using colors"))) 973 :help ,(purecopy "Display the edit history of the current file using colors")))
@@ -992,7 +992,7 @@ current, and kill the buffer that visits the link."
992 (define-key map [vc-print-root-log] 992 (define-key map [vc-print-root-log]
993 `(menu-item ,(purecopy "Show Top of the Tree History ") vc-print-root-log 993 `(menu-item ,(purecopy "Show Top of the Tree History ") vc-print-root-log
994 :help ,(purecopy "List the change log for the current tree in a window"))) 994 :help ,(purecopy "List the change log for the current tree in a window")))
995 (define-key map [separator2] '("----")) 995 (define-key map [separator2] menu-bar-separator)
996 (define-key map [vc-insert-header] 996 (define-key map [vc-insert-header]
997 `(menu-item ,(purecopy "Insert Header") vc-insert-headers 997 `(menu-item ,(purecopy "Insert Header") vc-insert-headers
998 :help ,(purecopy "Insert headers into a file for use with a version control system. 998 :help ,(purecopy "Insert headers into a file for use with a version control system.
@@ -1036,7 +1036,7 @@ current, and kill the buffer that visits the link."
1036 (if (null ext-binding) 1036 (if (null ext-binding)
1037 orig-binding 1037 orig-binding
1038 (append orig-binding 1038 (append orig-binding
1039 '((ext-menu-separator "---")) 1039 '((ext-menu-separator "--"))
1040 ext-binding)))) 1040 ext-binding))))
1041 1041
1042(defun vc-default-extra-menu (backend) 1042(defun vc-default-extra-menu (backend)