aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorStefan Monnier2012-06-27 17:15:13 -0400
committerStefan Monnier2012-06-27 17:15:13 -0400
commit1ec4b7b25979ff9ea72a3ea35bf35d5882f467f7 (patch)
tree7d3f3d3ef4a151e8a2b93b653692a4a652d2a720 /lisp/vc
parente309e2a56606ef774c5c366f74ea17ced46da065 (diff)
downloademacs-1ec4b7b25979ff9ea72a3ea35bf35d5882f467f7.tar.gz
emacs-1ec4b7b25979ff9ea72a3ea35bf35d5882f467f7.zip
Get rid of all the manual purecopy calls in menu-bar definitions.
* lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the memory use. * lisp/bindings.el (bindings--define-key): New function. * lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el: * lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el: * lisp/buff-menu.el, lisp/bookmark.el: * bindings.el: Use it to purecopy define-key bindings. * src/fns.c (maybe_resize_hash_table): Output message when growing the purify-hashtable.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/vc-hooks.el120
1 files changed, 60 insertions, 60 deletions
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index bba72177050..dff49c26e4e 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -947,66 +947,66 @@ current, and kill the buffer that visits the link."
947 (let ((map (make-sparse-keymap "Version Control"))) 947 (let ((map (make-sparse-keymap "Version Control")))
948 ;;(define-key map [show-files] 948 ;;(define-key map [show-files]
949 ;; '("Show Files under VC" . (vc-directory t))) 949 ;; '("Show Files under VC" . (vc-directory t)))
950 (define-key map [vc-retrieve-tag] 950 (bindings--define-key map [vc-retrieve-tag]
951 `(menu-item ,(purecopy "Retrieve Tag") vc-retrieve-tag 951 '(menu-item "Retrieve Tag" vc-retrieve-tag
952 :help ,(purecopy "Retrieve tagged version or branch"))) 952 :help "Retrieve tagged version or branch"))
953 (define-key map [vc-create-tag] 953 (bindings--define-key map [vc-create-tag]
954 `(menu-item ,(purecopy "Create Tag") vc-create-tag 954 '(menu-item "Create Tag" vc-create-tag
955 :help ,(purecopy "Create version tag"))) 955 :help "Create version tag"))
956 (define-key map [separator1] menu-bar-separator) 956 (bindings--define-key map [separator1] menu-bar-separator)
957 (define-key map [vc-annotate] 957 (bindings--define-key map [vc-annotate]
958 `(menu-item ,(purecopy "Annotate") vc-annotate 958 '(menu-item "Annotate" vc-annotate
959 :help ,(purecopy "Display the edit history of the current file using colors"))) 959 :help "Display the edit history of the current file using colors"))
960 (define-key map [vc-rename-file] 960 (bindings--define-key map [vc-rename-file]
961 `(menu-item ,(purecopy "Rename File") vc-rename-file 961 '(menu-item "Rename File" vc-rename-file
962 :help ,(purecopy "Rename file"))) 962 :help "Rename file"))
963 (define-key map [vc-revision-other-window] 963 (bindings--define-key map [vc-revision-other-window]
964 `(menu-item ,(purecopy "Show Other Version") vc-revision-other-window 964 '(menu-item "Show Other Version" vc-revision-other-window
965 :help ,(purecopy "Visit another version of the current file in another window"))) 965 :help "Visit another version of the current file in another window"))
966 (define-key map [vc-diff] 966 (bindings--define-key map [vc-diff]
967 `(menu-item ,(purecopy "Compare with Base Version") vc-diff 967 '(menu-item "Compare with Base Version" vc-diff
968 :help ,(purecopy "Compare file set with the base version"))) 968 :help "Compare file set with the base version"))
969 (define-key map [vc-root-diff] 969 (bindings--define-key map [vc-root-diff]
970 `(menu-item ,(purecopy "Compare Tree with Base Version") vc-root-diff 970 '(menu-item "Compare Tree with Base Version" vc-root-diff
971 :help ,(purecopy "Compare current tree with the base version"))) 971 :help "Compare current tree with the base version"))
972 (define-key map [vc-update-change-log] 972 (bindings--define-key map [vc-update-change-log]
973 `(menu-item ,(purecopy "Update ChangeLog") vc-update-change-log 973 '(menu-item "Update ChangeLog" vc-update-change-log
974 :help ,(purecopy "Find change log file and add entries from recent version control logs"))) 974 :help "Find change log file and add entries from recent version control logs"))
975 (define-key map [vc-log-out] 975 (bindings--define-key map [vc-log-out]
976 `(menu-item ,(purecopy "Show Outgoing Log") vc-log-outgoing 976 '(menu-item "Show Outgoing Log" vc-log-outgoing
977 :help ,(purecopy "Show a log of changes that will be sent with a push operation"))) 977 :help "Show a log of changes that will be sent with a push operation"))
978 (define-key map [vc-log-in] 978 (bindings--define-key map [vc-log-in]
979 `(menu-item ,(purecopy "Show Incoming Log") vc-log-incoming 979 '(menu-item "Show Incoming Log" vc-log-incoming
980 :help ,(purecopy "Show a log of changes that will be received with a pull operation"))) 980 :help "Show a log of changes that will be received with a pull operation"))
981 (define-key map [vc-print-log] 981 (bindings--define-key map [vc-print-log]
982 `(menu-item ,(purecopy "Show History") vc-print-log 982 '(menu-item "Show History" vc-print-log
983 :help ,(purecopy "List the change log of the current file set in a window"))) 983 :help "List the change log of the current file set in a window"))
984 (define-key map [vc-print-root-log] 984 (bindings--define-key map [vc-print-root-log]
985 `(menu-item ,(purecopy "Show Top of the Tree History ") vc-print-root-log 985 '(menu-item "Show Top of the Tree History " vc-print-root-log
986 :help ,(purecopy "List the change log for the current tree in a window"))) 986 :help "List the change log for the current tree in a window"))
987 (define-key map [separator2] menu-bar-separator) 987 (bindings--define-key map [separator2] menu-bar-separator)
988 (define-key map [vc-insert-header] 988 (bindings--define-key map [vc-insert-header]
989 `(menu-item ,(purecopy "Insert Header") vc-insert-headers 989 '(menu-item "Insert Header" vc-insert-headers
990 :help ,(purecopy "Insert headers into a file for use with a version control system. 990 :help "Insert headers into a file for use with a version control system.
991"))) 991"))
992 (define-key map [undo] 992 (bindings--define-key map [undo]
993 `(menu-item ,(purecopy "Undo Last Check-In") vc-rollback 993 '(menu-item "Undo Last Check-In" vc-rollback
994 :help ,(purecopy "Remove the most recent changeset committed to the repository"))) 994 :help "Remove the most recent changeset committed to the repository"))
995 (define-key map [vc-revert] 995 (bindings--define-key map [vc-revert]
996 `(menu-item ,(purecopy "Revert to Base Version") vc-revert 996 '(menu-item "Revert to Base Version" vc-revert
997 :help ,(purecopy "Revert working copies of the selected file set to their repository contents"))) 997 :help "Revert working copies of the selected file set to their repository contents"))
998 (define-key map [vc-update] 998 (bindings--define-key map [vc-update]
999 `(menu-item ,(purecopy "Update to Latest Version") vc-update 999 '(menu-item "Update to Latest Version" vc-update
1000 :help ,(purecopy "Update the current fileset's files to their tip revisions"))) 1000 :help "Update the current fileset's files to their tip revisions"))
1001 (define-key map [vc-next-action] 1001 (bindings--define-key map [vc-next-action]
1002 `(menu-item ,(purecopy "Check In/Out") vc-next-action 1002 '(menu-item "Check In/Out" vc-next-action
1003 :help ,(purecopy "Do the next logical version control operation on the current fileset"))) 1003 :help "Do the next logical version control operation on the current fileset"))
1004 (define-key map [vc-register] 1004 (bindings--define-key map [vc-register]
1005 `(menu-item ,(purecopy "Register") vc-register 1005 '(menu-item "Register" vc-register
1006 :help ,(purecopy "Register file set into a version control system"))) 1006 :help "Register file set into a version control system"))
1007 (define-key map [vc-dir] 1007 (bindings--define-key map [vc-dir]
1008 `(menu-item ,(purecopy "VC Dir") vc-dir 1008 '(menu-item "VC Dir" vc-dir
1009 :help ,(purecopy "Show the VC status of files in a directory"))) 1009 :help "Show the VC status of files in a directory"))
1010 map)) 1010 map))
1011 1011
1012(defalias 'vc-menu-map vc-menu-map) 1012(defalias 'vc-menu-map vc-menu-map)