Mercurial > emacs
comparison lisp/vc-dir.el @ 101718:e5e2e4109ea1
(vc-dir-mode): Fix docstring.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 31 Jan 2009 18:38:56 +0000 |
parents | 3f1db2aeea5a |
children | c1950714465b |
comparison
equal
deleted
inserted
replaced
101717:3f1db2aeea5a | 101718:e5e2e4109ea1 |
---|---|
874 (defvar use-vc-backend) ;; dynamically bound | 874 (defvar use-vc-backend) ;; dynamically bound |
875 | 875 |
876 (define-derived-mode vc-dir-mode special-mode "VC dir" | 876 (define-derived-mode vc-dir-mode special-mode "VC dir" |
877 "Major mode for VC directory buffers. | 877 "Major mode for VC directory buffers. |
878 Marking/Unmarking key bindings and actions: | 878 Marking/Unmarking key bindings and actions: |
879 m - marks a file/directory or if the region is active, mark all the files | 879 m - mark a file/directory |
880 in region. | 880 - if the region is active, mark all the files in region. |
881 Restrictions: - a file cannot be marked if any parent directory is marked | 881 Restrictions: - a file cannot be marked if any parent directory is marked |
882 - a directory cannot be marked if any child file or | 882 - a directory cannot be marked if any child file or |
883 directory is marked | 883 directory is marked |
884 u - marks a file/directory or if the region is active, unmark all the files | 884 u - unmark a file/directory |
885 in region. | 885 - if the region is active, unmark all the files in region. |
886 M - if the cursor is on a file: mark all the files with the same state as | 886 M - if the cursor is on a file: mark all the files with the same state as |
887 the current file | 887 the current file |
888 - if the cursor is on a directory: mark all child files | 888 - if the cursor is on a directory: mark all child files |
889 - with a prefix argument: mark all files | 889 - with a prefix argument: mark all files |
890 U - if the cursor is on a file: unmark all the files with the same state | 890 U - if the cursor is on a file: unmark all the files with the same state |
891 as the current file | 891 as the current file |
892 - if the cursor is on a directory: unmark all child files | 892 - if the cursor is on a directory: unmark all child files |
893 - with a prefix argument: unmark all files | 893 - with a prefix argument: unmark all files |
894 mouse-2 - toggles the mark state | |
894 | 895 |
895 VC commands | 896 VC commands |
896 VC commands in the `C-x v' can be used, they act on the marked | 897 VC commands in the `C-x v' prefix can be used. |
897 entries, or on the current entry if nothing is marked. | 898 VC commands act on the marked entries. If nothing is marked, VC |
899 commands act on the current entry. | |
898 | 900 |
899 Search & Replace | 901 Search & Replace |
900 S - searches the marked files | 902 S - searches the marked files |
901 Q - does a query replace on the marked files | 903 Q - does a query replace on the marked files |
902 M-s a C-s - does an isearch on the marked files | 904 M-s a C-s - does an isearch on the marked files |
903 M-s a C-M-s - does a regexp isearch on the marked files | 905 M-s a C-M-s - does a regexp isearch on the marked files |
904 If nothing is marked, these commands act on the current entry. | 906 If nothing is marked, these commands act on the current entry. |
905 When a directory is current or marked, the Search & Replace | 907 When a directory is current or marked, the Search & Replace |
906 commands act on the files in those directories displayed in the | 908 commands act on the child files of that directory that are displayed in |
907 *vc-dir* buffer. | 909 the *vc-dir* buffer. |
908 | 910 |
909 \\{vc-dir-mode-map}" | 911 \\{vc-dir-mode-map}" |
910 (set (make-local-variable 'vc-dir-backend) use-vc-backend) | 912 (set (make-local-variable 'vc-dir-backend) use-vc-backend) |
911 (setq buffer-read-only t) | 913 (setq buffer-read-only t) |
912 (when (boundp 'tool-bar-map) | 914 (when (boundp 'tool-bar-map) |