aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-08-02 07:13:48 +0000
committerDan Nicolaescu2008-08-02 07:13:48 +0000
commit819567d15e1d2b36fc10f90f55fc10294121c8c5 (patch)
tree10d9b989c1f9bef244adef2720b8ec8d3c5acd4c
parent785ce0ac5d16e5f5ba1c515afb05b2b4e7a2f7ce (diff)
downloademacs-819567d15e1d2b36fc10f90f55fc10294121c8c5.tar.gz
emacs-819567d15e1d2b36fc10f90f55fc10294121c8c5.zip
(VC Directory Mode): Fix and improve the info about
marking/unmarking. Add descriptions for the multiple file search commands. Improve some old info.
-rw-r--r--doc/emacs/ChangeLog6
-rw-r--r--doc/emacs/vc1-xtra.texi74
2 files changed, 61 insertions, 19 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 265352c9831..5b50fddc83e 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,9 @@
12008-08-02 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc1-xtra.texi (VC Directory Mode): Fix and improve the info about
4 marking/unmarking. Add descriptions for the multiple file search
5 commands. Improve some old info.
6
12008-07-31 Chong Yidong <cyd@stupidchicken.com> 72008-07-31 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * display.texi (Visual Line Mode): New node. 9 * display.texi (Visual Line Mode): New node.
diff --git a/doc/emacs/vc1-xtra.texi b/doc/emacs/vc1-xtra.texi
index e5ea106979d..b4c6ef1fa09 100644
--- a/doc/emacs/vc1-xtra.texi
+++ b/doc/emacs/vc1-xtra.texi
@@ -24,14 +24,15 @@ version control operations on collections of files. You can use the
24command @kbd{C-x v d} (@code{vc-dir}) to make a directory listing 24command @kbd{C-x v d} (@code{vc-dir}) to make a directory listing
25that includes only files relevant for version control. 25that includes only files relevant for version control.
26 26
27 @kbd{C-x v d} creates a buffer which uses VC directory mode. This 27 @kbd{C-x v d} creates a buffer which uses VC directory mode. This
28buffer will contain a listing of version-controlled files beneath 28buffer will contain a listing of version-controlled files beneath the
29the current directory, and their containing directories. Files 29current directory, and their containing directories. Files which are
30which are up-to-date (have no local differences from the repository 30up-to-date (have no local differences from the repository copy) will be
31copy) will be omitted; if all files in a directory are up-to-date, 31omitted; if all files in a directory are up-to-date, the directory will
32the directory will be omitted as well. But there is an exception; 32be omitted as well. The directory in which @code{vc-dir} was run will
33if VC mode detects that a file changed to up-to-date state since your 33always be shown as ``./''. But there is an exception; if VC mode
34last look at it, that state will be shown. 34detects that a file changed to up-to-date state since your last look at
35it, that state will be shown.
35 36
36 The line for an individual file will show the version control state of 37 The line for an individual file will show the version control state of
37the file. Under RCS and SCCS, the name of the user locking the file 38the file. Under RCS and SCCS, the name of the user locking the file
@@ -44,7 +45,8 @@ output is used. Here is an example using RCS:
44@group 45@group
45 ./ 46 ./
46 modified file1.c 47 modified file1.c
47 update file2.c 48 needs-update file2.c
49 needs-merge file2.c
48@end group 50@end group
49@end smallexample 51@end smallexample
50 52
@@ -94,27 +96,61 @@ line. @kbd{o} visits that file in another window. @kbd{q} dismisses
94the directory buffer. 96the directory buffer.
95 97
96 @kbd{x} toggles hiding of up-to-date files. 98 @kbd{x} toggles hiding of up-to-date files.
99
100 @kbd{m} marks the file or directory on the current line. If the
101region is active it marks all the files in the region. There are some
102restrictions when marking: a file cannot be marked if any parent
103directory is marked and a directory cannot be marked if any child file
104is marked.
97 105
98 @kbd{m} marks the file on the current line. @kbd{M} marks all 106 @kbd{M} marks all the files with the same VC state as the current file
99files. @kbd{u} marks the file on the current line. @kbd{U} unmarks all 107if the cursor is on a file. If the cursor is on a directory marks all
100files. 108child files. With a prefix argument: marks all files files and
109directories.
101 110
102 Normal VC command with the @kbd{C-x v} prefix work in directory 111 @kbd{u} unmarks the file or directory on the current line. If the
112region is active it unmarks all the files in the region.
113
114 @kbd{U} marks all the files with the same VC state as the current file
115if the cursor is on a file. If the cursor is on a directory unmarks all
116child files. With a prefix argument: unmarks all marked files and
117directories.
118
119 It is possible to do search, search and replace, incremental search
120and incremental regexp search on multiple files. These commands will
121work on all the marked files or the current file if nothing is marked.
122If a directory is marked, the files in that directory shown in the VC
123directory buffer will be used.
124
125 @kbd{S} searches the marked files.
126
127 @kbd{Q} does a query replace on the marked files.
128
129 @kbd{M-s a C-s} does an incremental search on the marked files.
130
131 @kbd{M-s a C-M-s} does an incremental search on the marked files.
132
133 Commands are also accessible from the VC-dir menu. Note that some VC
134backends use the VC-dir menu to make available extra backend specific
135commands.
136
137 Normal VC commands with the @kbd{C-x v} prefix work in VC directory
103buffers. Some single-key shortcuts are available as well; @kbd{=}, 138buffers. Some single-key shortcuts are available as well; @kbd{=},
104@kbd{+}, @kbd{l}, @kbd{i}, and @kbd{v} behave as through prefixed with 139@kbd{+}, @kbd{l}, @kbd{i}, and @kbd{v} behave as through prefixed with
105@kbd{C-x v}. 140@kbd{C-x v}.
106 141
107 The command @kbd{C-x v v} (@code{vc-next-action}) operates on all the 142 The command @kbd{C-x v v} (@code{vc-next-action}) operates on all the
108marked files, so that you can lock or check in several files at once. 143marked files, so that you can check in several files at once.
109If the underlying VC supports atomic commits of multiple-file 144If the underlying VC supports atomic commits of multiple-file
110changesets @kbd{v v} with a selected set of modified but not committed 145changesets @kbd{C-x v v} with a selected set of modified but not committed
111files wuill commit all of them at once as a single changeset. 146files wuill commit all of them at once as a single changeset.
112 147
113 When @kbd{C-x v v} (@code{vc-next-action}) operates on a set of files, 148 When @kbd{C-x v v} (@code{vc-next-action}) operates on a set of files,
114it requires that all of those files must be in the same state; 149it requires that all of those files must be either in the same state, or
115otherwise it will throw an error. Note that this differs from the 150in compatible states; otherwise it will throw an error (the added,
116behavior of older versions of VC, which did not have fileset 151modified and removed states are considered compatible). Note that this
117operations and simply did @code{vc-next-action} on each file 152differs from the behavior of older versions of VC, which did not have
153fileset operations and simply did @code{vc-next-action} on each file
118individually. 154individually.
119 155
120 If any files are in a state that calls for commit, @kbd{C-x v v} reads a 156 If any files are in a state that calls for commit, @kbd{C-x v v} reads a