diff options
| author | Dan Nicolaescu | 2008-08-02 07:13:48 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-08-02 07:13:48 +0000 |
| commit | 819567d15e1d2b36fc10f90f55fc10294121c8c5 (patch) | |
| tree | 10d9b989c1f9bef244adef2720b8ec8d3c5acd4c | |
| parent | 785ce0ac5d16e5f5ba1c515afb05b2b4e7a2f7ce (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/vc1-xtra.texi | 74 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-07-31 Chong Yidong <cyd@stupidchicken.com> | 7 | 2008-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 | |||
| 24 | command @kbd{C-x v d} (@code{vc-dir}) to make a directory listing | 24 | command @kbd{C-x v d} (@code{vc-dir}) to make a directory listing |
| 25 | that includes only files relevant for version control. | 25 | that 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 |
| 28 | buffer will contain a listing of version-controlled files beneath | 28 | buffer will contain a listing of version-controlled files beneath the |
| 29 | the current directory, and their containing directories. Files | 29 | current directory, and their containing directories. Files which are |
| 30 | which are up-to-date (have no local differences from the repository | 30 | up-to-date (have no local differences from the repository copy) will be |
| 31 | copy) will be omitted; if all files in a directory are up-to-date, | 31 | omitted; if all files in a directory are up-to-date, the directory will |
| 32 | the directory will be omitted as well. But there is an exception; | 32 | be omitted as well. The directory in which @code{vc-dir} was run will |
| 33 | if VC mode detects that a file changed to up-to-date state since your | 33 | always be shown as ``./''. But there is an exception; if VC mode |
| 34 | last look at it, that state will be shown. | 34 | detects that a file changed to up-to-date state since your last look at |
| 35 | it, 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 |
| 37 | the file. Under RCS and SCCS, the name of the user locking the file | 38 | the 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 | |||
| 94 | the directory buffer. | 96 | the 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 | ||
| 101 | region is active it marks all the files in the region. There are some | ||
| 102 | restrictions when marking: a file cannot be marked if any parent | ||
| 103 | directory is marked and a directory cannot be marked if any child file | ||
| 104 | is 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 |
| 99 | files. @kbd{u} marks the file on the current line. @kbd{U} unmarks all | 107 | if the cursor is on a file. If the cursor is on a directory marks all |
| 100 | files. | 108 | child files. With a prefix argument: marks all files files and |
| 109 | directories. | ||
| 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 |
| 112 | region 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 | ||
| 115 | if the cursor is on a file. If the cursor is on a directory unmarks all | ||
| 116 | child files. With a prefix argument: unmarks all marked files and | ||
| 117 | directories. | ||
| 118 | |||
| 119 | It is possible to do search, search and replace, incremental search | ||
| 120 | and incremental regexp search on multiple files. These commands will | ||
| 121 | work on all the marked files or the current file if nothing is marked. | ||
| 122 | If a directory is marked, the files in that directory shown in the VC | ||
| 123 | directory 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 | ||
| 134 | backends use the VC-dir menu to make available extra backend specific | ||
| 135 | commands. | ||
| 136 | |||
| 137 | Normal VC commands with the @kbd{C-x v} prefix work in VC directory | ||
| 103 | buffers. Some single-key shortcuts are available as well; @kbd{=}, | 138 | buffers. 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 |
| 108 | marked files, so that you can lock or check in several files at once. | 143 | marked files, so that you can check in several files at once. |
| 109 | If the underlying VC supports atomic commits of multiple-file | 144 | If the underlying VC supports atomic commits of multiple-file |
| 110 | changesets @kbd{v v} with a selected set of modified but not committed | 145 | changesets @kbd{C-x v v} with a selected set of modified but not committed |
| 111 | files wuill commit all of them at once as a single changeset. | 146 | files 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, |
| 114 | it requires that all of those files must be in the same state; | 149 | it requires that all of those files must be either in the same state, or |
| 115 | otherwise it will throw an error. Note that this differs from the | 150 | in compatible states; otherwise it will throw an error (the added, |
| 116 | behavior of older versions of VC, which did not have fileset | 151 | modified and removed states are considered compatible). Note that this |
| 117 | operations and simply did @code{vc-next-action} on each file | 152 | differs from the behavior of older versions of VC, which did not have |
| 153 | fileset operations and simply did @code{vc-next-action} on each file | ||
| 118 | individually. | 154 | individually. |
| 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 |