diff options
| author | Dan Nicolaescu | 2008-02-18 19:53:25 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-02-18 19:53:25 +0000 |
| commit | df04e22c44d7a041c84c7c28b545d7096d5faedc (patch) | |
| tree | ecffc7f1d200c5842250d46a8303767f306462a6 | |
| parent | 81aefea4661fd1a8a0766ca354be4578ee817287 (diff) | |
| download | emacs-df04e22c44d7a041c84c7c28b545d7096d5faedc.tar.gz emacs-df04e22c44d7a041c84c7c28b545d7096d5faedc.zip | |
(vc-status-mode-menu): New menu for vc-status.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc.el | 54 |
2 files changed, 52 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9aa99987383..4c3b2d696db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-02-18 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc.el (vc-status-mode-menu): New menu for vc-status. | ||
| 4 | |||
| 1 | 2008-02-18 Juanma Barranquero <lekktu@gmail.com> | 5 | 2008-02-18 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * progmodes/verilog-mode.el (customize): Fix typo in error message. | 7 | * progmodes/verilog-mode.el (customize): Fix typo in error message. |
diff --git a/lisp/vc.el b/lisp/vc.el index 0bfafd976f5..a7b25aaad64 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -557,7 +557,7 @@ | |||
| 557 | ;; | 557 | ;; |
| 558 | ;; - decide if vc-status should replace vc-dired. | 558 | ;; - decide if vc-status should replace vc-dired. |
| 559 | ;; | 559 | ;; |
| 560 | ;; - vc-status needs a menu, mouse bindings and some color bling. | 560 | ;; - vc-status needs mouse bindings and some color bling. |
| 561 | ;; | 561 | ;; |
| 562 | ;; - vc-status needs to show missing files. It probably needs to have | 562 | ;; - vc-status needs to show missing files. It probably needs to have |
| 563 | ;; another state for those files. The user might want to restore | 563 | ;; another state for those files. The user might want to restore |
| @@ -2672,6 +2672,48 @@ With prefix arg READ-SWITCHES, specify a value to override | |||
| 2672 | map) | 2672 | map) |
| 2673 | "Keymap for VC status") | 2673 | "Keymap for VC status") |
| 2674 | 2674 | ||
| 2675 | (easy-menu-define vc-status-mode-menu vc-status-mode-map | ||
| 2676 | "Menu for vc-status." | ||
| 2677 | '("VC Status" | ||
| 2678 | ["Open file" vc-status-find-file | ||
| 2679 | :help "Find the file on the current line"] | ||
| 2680 | ["Open in other window" vc-status-find-file-other-window | ||
| 2681 | :help "Find the file on the current line, in another window"] | ||
| 2682 | "----" | ||
| 2683 | ;; VC commands. | ||
| 2684 | ["Compare with Base Version" vc-diff | ||
| 2685 | :help "Compare file set with the base version"] | ||
| 2686 | ["Register" vc-status-register | ||
| 2687 | :help "Register file set into the version control system"] | ||
| 2688 | ["Annotate" vc-annotate | ||
| 2689 | :help "Display the edit history of the current file using colors"] | ||
| 2690 | ;; vc-print-log uses the current buffer, not a file. | ||
| 2691 | ;; ["Show history" vc-status-print-log | ||
| 2692 | ;; :help "List the change log of the current file set in a window"] | ||
| 2693 | "----" | ||
| 2694 | ;; Movement. | ||
| 2695 | ["Next line" vc-status-next-line | ||
| 2696 | :help "Go to the next line"] | ||
| 2697 | ["Previous line" vc-status-previous-line | ||
| 2698 | :help "Go to the previous line"] | ||
| 2699 | "----" | ||
| 2700 | ;; Marking. | ||
| 2701 | ["Mark" vc-status-mark-file | ||
| 2702 | :help "Mark the current file and move to the next line"] | ||
| 2703 | ["Marl All" vc-status-mark-all-files | ||
| 2704 | :help "Mark all files"] | ||
| 2705 | ["Unmark" vc-status-unmark-file | ||
| 2706 | :help "Unmark the current file and move to the next line"] | ||
| 2707 | ["Unmark previous " vc-status-unmark-file-up | ||
| 2708 | :help "Move to the previous line and unmark the file"] | ||
| 2709 | ["Unmark All" vc-status-unmark-all-files | ||
| 2710 | :help "Unmark all files"] | ||
| 2711 | "----" | ||
| 2712 | ["Refresh" vc-status-refresh | ||
| 2713 | :help "Refresh the contents of the VC status buffer"] | ||
| 2714 | ["Quit" bury-buffer | ||
| 2715 | :help "Quit"])) | ||
| 2716 | |||
| 2675 | (defun vc-status-mode () | 2717 | (defun vc-status-mode () |
| 2676 | "Major mode for VC status. | 2718 | "Major mode for VC status. |
| 2677 | \\{vc-status-mode-map}" | 2719 | \\{vc-status-mode-map}" |
| @@ -3625,27 +3667,27 @@ cover the range from the oldest annotation to the newest." | |||
| 3625 | ["Span to Oldest" | 3667 | ["Span to Oldest" |
| 3626 | (unless (eq vc-annotate-display-mode 'scale) | 3668 | (unless (eq vc-annotate-display-mode 'scale) |
| 3627 | (vc-annotate-display-select nil 'scale)) | 3669 | (vc-annotate-display-select nil 'scale)) |
| 3628 | :help | 3670 | :help |
| 3629 | "Use an autoscaled color map from the oldest annotation to the current time" | 3671 | "Use an autoscaled color map from the oldest annotation to the current time" |
| 3630 | :style toggle :selected | 3672 | :style toggle :selected |
| 3631 | (eq vc-annotate-display-mode 'scale)] | 3673 | (eq vc-annotate-display-mode 'scale)] |
| 3632 | ["Span Oldest->Newest" | 3674 | ["Span Oldest->Newest" |
| 3633 | (unless (eq vc-annotate-display-mode 'fullscale) | 3675 | (unless (eq vc-annotate-display-mode 'fullscale) |
| 3634 | (vc-annotate-display-select nil 'fullscale)) | 3676 | (vc-annotate-display-select nil 'fullscale)) |
| 3635 | :help | 3677 | :help |
| 3636 | "Use an autoscaled color map from the oldest to the newest annotation" | 3678 | "Use an autoscaled color map from the oldest to the newest annotation" |
| 3637 | :style toggle :selected | 3679 | :style toggle :selected |
| 3638 | (eq vc-annotate-display-mode 'fullscale)] | 3680 | (eq vc-annotate-display-mode 'fullscale)] |
| 3639 | "--" | 3681 | "--" |
| 3640 | ["Toggle annotation visibility" vc-annotate-toggle-annotation-visibility | 3682 | ["Toggle annotation visibility" vc-annotate-toggle-annotation-visibility |
| 3641 | :help | 3683 | :help |
| 3642 | "Toggle whether the annotation is visible or not"] | 3684 | "Toggle whether the annotation is visible or not"] |
| 3643 | ["Annotate previous revision" vc-annotate-prev-revision | 3685 | ["Annotate previous revision" vc-annotate-prev-revision |
| 3644 | :help "Visit the annotation of the revision previous to this one"] | 3686 | :help "Visit the annotation of the revision previous to this one"] |
| 3645 | ["Annotate next revision" vc-annotate-next-revision | 3687 | ["Annotate next revision" vc-annotate-next-revision |
| 3646 | :help "Visit the annotation of the revision after this one"] | 3688 | :help "Visit the annotation of the revision after this one"] |
| 3647 | ["Annotate revision at line" vc-annotate-revision-at-line | 3689 | ["Annotate revision at line" vc-annotate-revision-at-line |
| 3648 | :help | 3690 | :help |
| 3649 | "Visit the annotation of the revision identified in the current line"] | 3691 | "Visit the annotation of the revision identified in the current line"] |
| 3650 | ["Annotate revision previous to line" vc-annotate-revision-previous-to-line | 3692 | ["Annotate revision previous to line" vc-annotate-revision-previous-to-line |
| 3651 | :help "Visit the annotation of the revision before the revision at line"] | 3693 | :help "Visit the annotation of the revision before the revision at line"] |
| @@ -3654,7 +3696,7 @@ cover the range from the oldest annotation to the newest." | |||
| 3654 | ["Show log of revision at line" vc-annotate-show-log-revision-at-line | 3696 | ["Show log of revision at line" vc-annotate-show-log-revision-at-line |
| 3655 | :help "Visit the log of the revision at line"] | 3697 | :help "Visit the log of the revision at line"] |
| 3656 | ["Show diff of revision at line" vc-annotate-show-diff-revision-at-line | 3698 | ["Show diff of revision at line" vc-annotate-show-diff-revision-at-line |
| 3657 | :help | 3699 | :help |
| 3658 | "Visit the diff of the revision at line from its previous revision"] | 3700 | "Visit the diff of the revision at line from its previous revision"] |
| 3659 | ["Visit revision at line" vc-annotate-find-revision-at-line | 3701 | ["Visit revision at line" vc-annotate-find-revision-at-line |
| 3660 | :help "Visit the revision identified in the current line"])) | 3702 | :help "Visit the revision identified in the current line"])) |