comparison lisp/vc-hooks.el @ 105715:6b8dce5c4461

* puresize.h (BASE_PURESIZE): Increase to 1430000. * term/tty-colors.el (msdos-color-values): Remove declaration, unused. (color-name-rgb-alist, tty-standard-colors) (tty-color-mode-alist): Change to defconst. * simple.el (mark-inactive): Purecopy message. * menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle): Fix macro. (global-map, yank-menu): * textmodes/ispell.el (ispell-menu-map): * net/eudc.el (eudc-tools-menu): * international/mule-cmds.el (describe-language-environment-map) (setup-language-environment-map, set-coding-system-map) (mule-menu-keymap): * vc-hooks.el (vc-menu-entry, vc-menu-map): * replace.el (occur-mode-map): * pcvs-defs.el (cvs-global-menu): Purecopy names and tooltips. * bindings.el (propertized-buffer-identification): Purecopy tooltip text.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 23 Oct 2009 05:15:26 +0000
parents 8bfe20e0336c
children 5d9281801a59
comparison
equal deleted inserted replaced
105714:f7cff45183ee 105715:6b8dce5c4461
756 ;; present if this is true. 756 ;; present if this is true.
757 (when vc-dir-buffers 757 (when vc-dir-buffers
758 (vc-dir-resynch-file file)))) 758 (vc-dir-resynch-file file))))
759 759
760 (defvar vc-menu-entry 760 (defvar vc-menu-entry
761 '(menu-item "Version Control" vc-menu-map 761 `(menu-item ,(purecopy "Version Control") vc-menu-map
762 :filter vc-menu-map-filter)) 762 :filter vc-menu-map-filter))
763 763
764 (when (boundp 'menu-bar-tools-menu) 764 (when (boundp 'menu-bar-tools-menu)
765 ;; We do not need to worry here about the placement of this entry 765 ;; We do not need to worry here about the placement of this entry
766 ;; because menu-bar.el has already created the proper spot for us 766 ;; because menu-bar.el has already created the proper spot for us
960 (defvar vc-menu-map 960 (defvar vc-menu-map
961 (let ((map (make-sparse-keymap "Version Control"))) 961 (let ((map (make-sparse-keymap "Version Control")))
962 ;;(define-key map [show-files] 962 ;;(define-key map [show-files]
963 ;; '("Show Files under VC" . (vc-directory t))) 963 ;; '("Show Files under VC" . (vc-directory t)))
964 (define-key map [vc-retrieve-tag] 964 (define-key map [vc-retrieve-tag]
965 '(menu-item "Retrieve Tag" vc-retrieve-tag 965 `(menu-item ,(purecopy "Retrieve Tag") vc-retrieve-tag
966 :help "Retrieve tagged version or branch")) 966 :help ,(purecopy "Retrieve tagged version or branch")))
967 (define-key map [vc-create-tag] 967 (define-key map [vc-create-tag]
968 '(menu-item "Create Tag" vc-create-tag 968 `(menu-item ,(purecopy "Create Tag") vc-create-tag
969 :help "Create version tag")) 969 :help ,(purecopy "Create version tag")))
970 (define-key map [separator1] '("----")) 970 (define-key map [separator1] '("----"))
971 (define-key map [vc-annotate] 971 (define-key map [vc-annotate]
972 '(menu-item "Annotate" vc-annotate 972 `(menu-item ,(purecopy "Annotate") vc-annotate
973 :help "Display the edit history of the current file using colors")) 973 :help ,(purecopy "Display the edit history of the current file using colors")))
974 (define-key map [vc-rename-file] 974 (define-key map [vc-rename-file]
975 '(menu-item "Rename File" vc-rename-file 975 `(menu-item ,(purecopy "Rename File") vc-rename-file
976 :help "Rename file")) 976 :help ,(purecopy "Rename file")))
977 (define-key map [vc-revision-other-window] 977 (define-key map [vc-revision-other-window]
978 '(menu-item "Show Other Version" vc-revision-other-window 978 `(menu-item ,(purecopy "Show Other Version") vc-revision-other-window
979 :help "Visit another version of the current file in another window")) 979 :help ,(purecopy "Visit another version of the current file in another window")))
980 (define-key map [vc-diff] 980 (define-key map [vc-diff]
981 '(menu-item "Compare with Base Version" vc-diff 981 `(menu-item ,(purecopy "Compare with Base Version") vc-diff
982 :help "Compare file set with the base version")) 982 :help ,(purecopy "Compare file set with the base version")))
983 (define-key map [vc-root-diff] 983 (define-key map [vc-root-diff]
984 '(menu-item "Compare Tree with Base Version" vc-root-diff 984 `(menu-item ,(purecopy "Compare Tree with Base Version") vc-root-diff
985 :help "Compare current tree with the base version")) 985 :help ,(purecopy "Compare current tree with the base version")))
986 (define-key map [vc-update-change-log] 986 (define-key map [vc-update-change-log]
987 '(menu-item "Update ChangeLog" vc-update-change-log 987 `(menu-item ,(purecopy "Update ChangeLog") vc-update-change-log
988 :help "Find change log file and add entries from recent version control logs")) 988 :help ,(purecopy "Find change log file and add entries from recent version control logs")))
989 (define-key map [vc-print-log] 989 (define-key map [vc-print-log]
990 '(menu-item "Show History" vc-print-log 990 `(menu-item ,(purecopy "Show History") vc-print-log
991 :help "List the change log of the current file set in a window")) 991 :help ,(purecopy "List the change log of the current file set in a window")))
992 (define-key map [vc-print-root-log] 992 (define-key map [vc-print-root-log]
993 '(menu-item "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 "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] '("----"))
996 (define-key map [vc-insert-header] 996 (define-key map [vc-insert-header]
997 '(menu-item "Insert Header" vc-insert-headers 997 `(menu-item ,(purecopy "Insert Header") vc-insert-headers
998 :help "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.
999 ")) 999 ")))
1000 (define-key map [undo] 1000 (define-key map [undo]
1001 '(menu-item "Undo Last Check-In" vc-rollback 1001 `(menu-item ,(purecopy "Undo Last Check-In") vc-rollback
1002 :help "Remove the most recent changeset committed to the repository")) 1002 :help ,(purecopy "Remove the most recent changeset committed to the repository")))
1003 (define-key map [vc-revert] 1003 (define-key map [vc-revert]
1004 '(menu-item "Revert to Base Version" vc-revert 1004 `(menu-item ,(purecopy "Revert to Base Version") vc-revert
1005 :help "Revert working copies of the selected file set to their repository contents")) 1005 :help ,(purecopy "Revert working copies of the selected file set to their repository contents")))
1006 (define-key map [vc-update] 1006 (define-key map [vc-update]
1007 '(menu-item "Update to Latest Version" vc-update 1007 `(menu-item ,(purecopy "Update to Latest Version") vc-update
1008 :help "Update the current fileset's files to their tip revisions")) 1008 :help ,(purecopy "Update the current fileset's files to their tip revisions")))
1009 (define-key map [vc-next-action] 1009 (define-key map [vc-next-action]
1010 '(menu-item "Check In/Out" vc-next-action 1010 `(menu-item ,(purecopy "Check In/Out") vc-next-action
1011 :help "Do the next logical version control operation on the current fileset")) 1011 :help ,(purecopy "Do the next logical version control operation on the current fileset")))
1012 (define-key map [vc-register] 1012 (define-key map [vc-register]
1013 '(menu-item "Register" vc-register 1013 `(menu-item ,(purecopy "Register") vc-register
1014 :help "Register file set into a version control system")) 1014 :help ,(purecopy "Register file set into a version control system")))
1015 (define-key map [vc-dir] 1015 (define-key map [vc-dir]
1016 '(menu-item "VC Dir" vc-dir 1016 `(menu-item ,(purecopy "VC Dir") vc-dir
1017 :help "Show the VC status of files in a directory")) 1017 :help ,(purecopy "Show the VC status of files in a directory")))
1018 map)) 1018 map))
1019 1019
1020 (defalias 'vc-menu-map vc-menu-map) 1020 (defalias 'vc-menu-map vc-menu-map)
1021 1021
1022 (declare-function vc-responsible-backend "vc" (file &optional register)) 1022 (declare-function vc-responsible-backend "vc" (file &optional register))