diff options
| author | Sam Steingold | 2008-02-06 17:52:35 +0000 |
|---|---|---|
| committer | Sam Steingold | 2008-02-06 17:52:35 +0000 |
| commit | 527b313d4d7df60fd19104f702af0f689b434d72 (patch) | |
| tree | 229a76cbbe774bb0a3b15215435339655a8f0f71 | |
| parent | e61e836bc0c57db01d41d66dc1870dce765d0642 (diff) | |
| download | emacs-527b313d4d7df60fd19104f702af0f689b434d72.tar.gz emacs-527b313d4d7df60fd19104f702af0f689b434d72.zip | |
(vc-prefix-map): Bind `vc-status' to "?".
(vc-prefix-key): New user-customizable variable.
(vc-menu-map): Add `vc-status'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 37 |
2 files changed, 29 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7636e77e346..8cd7ea00287 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-02-06 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc-hooks.el (vc-prefix-map): Bind `vc-status' to "?". | ||
| 4 | (vc-prefix-key): New user-customizable variable. | ||
| 5 | (vc-menu-map): Add `vc-status'. | ||
| 6 | |||
| 1 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * net/ange-ftp.el (ange-ftp-unhandled-file-name-directory): | 9 | * net/ange-ftp.el (ange-ftp-unhandled-file-name-directory): |
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index c947fc8f1fb..a4f5bcc3fe6 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -77,8 +77,8 @@ An empty list disables VC altogether." | |||
| 77 | :group 'vc) | 77 | :group 'vc) |
| 78 | 78 | ||
| 79 | ;; Note: we don't actually have a darcs back end yet. | 79 | ;; Note: we don't actually have a darcs back end yet. |
| 80 | (defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" | 80 | (defcustom vc-directory-exclusion-list '("SCCS" "RCS" "CVS" "MCVS" |
| 81 | ".svn" ".git" ".hg" ".bzr" | 81 | ".svn" ".git" ".hg" ".bzr" |
| 82 | "_MTN" "_darcs" "{arch}") | 82 | "_MTN" "_darcs" "{arch}") |
| 83 | "List of directory names to be ignored when walking directory trees." | 83 | "List of directory names to be ignored when walking directory trees." |
| 84 | :type '(repeat string) | 84 | :type '(repeat string) |
| @@ -505,22 +505,22 @@ For registered files, the value returned is one of: | |||
| 505 | with monotonic IDs like Subversion and Mercurial. | 505 | with monotonic IDs like Subversion and Mercurial. |
| 506 | 506 | ||
| 507 | 'removed Scheduled to be deleted from the repository on next commit. | 507 | 'removed Scheduled to be deleted from the repository on next commit. |
| 508 | 508 | ||
| 509 | 'ignored The file showed up in a dir-state listing with a flag | 509 | 'ignored The file showed up in a dir-state listing with a flag |
| 510 | indicating the version-control system is ignoring it, | 510 | indicating the version-control system is ignoring it, |
| 511 | Note: This property is not set reliably (some VCSes | 511 | Note: This property is not set reliably (some VCSes |
| 512 | don't have useful directory-status commands) so assume | 512 | don't have useful directory-status commands) so assume |
| 513 | that any file with vc-state nil might be ignorable | 513 | that any file with vc-state nil might be ignorable |
| 514 | without VC knowing it. | 514 | without VC knowing it. |
| 515 | 515 | ||
| 516 | 'unregistered The file showed up in a dir-state listing with a flag | 516 | 'unregistered The file showed up in a dir-state listing with a flag |
| 517 | indicating that it is not under version control. | 517 | indicating that it is not under version control. |
| 518 | Note: This property is not set reliably (some VCSes | 518 | Note: This property is not set reliably (some VCSes |
| 519 | don't have useful directory-status commands) so assume | 519 | don't have useful directory-status commands) so assume |
| 520 | that any file with vc-state nil might be unregistered | 520 | that any file with vc-state nil might be unregistered |
| 521 | without VC knowing it. | 521 | without VC knowing it. |
| 522 | 522 | ||
| 523 | A return of nil from this function means we have no information on the | 523 | A return of nil from this function means we have no information on the |
| 524 | status of this file. | 524 | status of this file. |
| 525 | " | 525 | " |
| 526 | ;; Note: in Emacs 22 and older, return of nil meant the file was unregistered. | 526 | ;; Note: in Emacs 22 and older, return of nil meant the file was unregistered. |
| @@ -796,7 +796,7 @@ visiting FILE." | |||
| 796 | (propertize | 796 | (propertize |
| 797 | ml-string | 797 | ml-string |
| 798 | 'mouse-face 'mode-line-highlight | 798 | 'mouse-face 'mode-line-highlight |
| 799 | 'help-echo | 799 | 'help-echo |
| 800 | (concat (or ml-echo | 800 | (concat (or ml-echo |
| 801 | (format "File under the %s version control system" | 801 | (format "File under the %s version control system" |
| 802 | backend)) | 802 | backend)) |
| @@ -968,9 +968,17 @@ Used in `find-file-not-found-functions'." | |||
| 968 | (define-key map "+" 'vc-update) | 968 | (define-key map "+" 'vc-update) |
| 969 | (define-key map "=" 'vc-diff) | 969 | (define-key map "=" 'vc-diff) |
| 970 | (define-key map "~" 'vc-revision-other-window) | 970 | (define-key map "~" 'vc-revision-other-window) |
| 971 | (define-key map "?" 'vc-status) | ||
| 971 | map)) | 972 | map)) |
| 972 | (fset 'vc-prefix-map vc-prefix-map) | 973 | (fset 'vc-prefix-map vc-prefix-map) |
| 973 | (define-key global-map "\C-xv" 'vc-prefix-map) | 974 | (defcustom vc-prefix-key "\C-xv" "*The prefix for the VC bindings." |
| 975 | :set (lambda (symbol prefix) ; symbol == vc-prefix-key | ||
| 976 | (define-key global-map prefix 'vc-prefix-map) ; install new prefix | ||
| 977 | (when (boundp 'vc-prefix-key) ; disable the previous prefix | ||
| 978 | (define-key global-map vc-prefix-key nil)) | ||
| 979 | (set symbol prefix)) ; save the new prefix | ||
| 980 | :version "23.1" | ||
| 981 | :group 'vc) | ||
| 974 | 982 | ||
| 975 | (defvar vc-menu-map | 983 | (defvar vc-menu-map |
| 976 | (let ((map (make-sparse-keymap "Version Control"))) | 984 | (let ((map (make-sparse-keymap "Version Control"))) |
| @@ -981,6 +989,7 @@ Used in `find-file-not-found-functions'." | |||
| 981 | (define-key map [vc-create-snapshot] | 989 | (define-key map [vc-create-snapshot] |
| 982 | '("Create Snapshot" . vc-create-snapshot)) | 990 | '("Create Snapshot" . vc-create-snapshot)) |
| 983 | (define-key map [vc-directory] '("VC Directory Listing" . vc-directory)) | 991 | (define-key map [vc-directory] '("VC Directory Listing" . vc-directory)) |
| 992 | (define-key map [vc-status] '("VC Status" . vc-status)) | ||
| 984 | (define-key map [separator1] '("----")) | 993 | (define-key map [separator1] '("----")) |
| 985 | (define-key map [vc-annotate] '("Annotate" . vc-annotate)) | 994 | (define-key map [vc-annotate] '("Annotate" . vc-annotate)) |
| 986 | (define-key map [vc-rename-file] '("Rename File" . vc-rename-file)) | 995 | (define-key map [vc-rename-file] '("Rename File" . vc-rename-file)) |