diff options
| author | Richard M. Stallman | 2005-04-26 10:47:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-26 10:47:03 +0000 |
| commit | ea3b47e34941c76013f38d1d5e20a3a98bdab885 (patch) | |
| tree | 157d681ac160f80aa20f4d16919560123a4a15b1 | |
| parent | 77d2cdef5d11dd8d9e8aadc4ef6a75659db84e2b (diff) | |
| download | emacs-ea3b47e34941c76013f38d1d5e20a3a98bdab885.tar.gz emacs-ea3b47e34941c76013f38d1d5e20a3a98bdab885.zip | |
(Misc Dired Features): Document dired-compare-directories.
| -rw-r--r-- | man/dired.texi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/man/dired.texi b/man/dired.texi index dfd809c7607..f2699cfde07 100644 --- a/man/dired.texi +++ b/man/dired.texi | |||
| @@ -1161,6 +1161,32 @@ if in a subdirectory.) As a special case, if point is on a directory | |||
| 1161 | headerline, @kbd{w} gives you the absolute name of that directory. | 1161 | headerline, @kbd{w} gives you the absolute name of that directory. |
| 1162 | Any prefix argument or marked files are ignored in this case. | 1162 | Any prefix argument or marked files are ignored in this case. |
| 1163 | 1163 | ||
| 1164 | @findex dired-compare-directories | ||
| 1165 | The command @kbd{M-x dired-compare-directories} is used to compare | ||
| 1166 | the current Dired buffer with another directory. It marks all the files | ||
| 1167 | that are ``different'' between the two directories. It puts these marks | ||
| 1168 | in all Dired buffers where these files are listed, which of course includes | ||
| 1169 | the current buffer. | ||
| 1170 | |||
| 1171 | The default comparison method (used if you type @key{RET} at the | ||
| 1172 | prompt) is to compare just the file names---each file name that does | ||
| 1173 | not appear in the other directory is ``different''. You can specify | ||
| 1174 | more stringent comparisons by entering a Lisp expression, which can | ||
| 1175 | refer to the variables @code{size1} and @code{size2}, the respective | ||
| 1176 | file sizes; @code{mtime1} and @code{mtime2}, the last modification | ||
| 1177 | times in seconds, as floating point numers; and @code{fa1} and | ||
| 1178 | @code{fa2}, the respective file attribute lists (as returned by the | ||
| 1179 | function @code{file-attributes}). This expression is evaluated for | ||
| 1180 | each pair of like-named files, and if the expression's value is | ||
| 1181 | non-@code{nil}, those files are considered ``different''. | ||
| 1182 | |||
| 1183 | For instance, @code{M-x dired-compare-directories @key{RET} (> | ||
| 1184 | mtime1 mtime2) @key{RET}} marks files newer in this directory than in | ||
| 1185 | the other, and marks files older in the other directory than in this | ||
| 1186 | one. It also marks files with no counterpart, in both directories, as | ||
| 1187 | always. | ||
| 1188 | |||
| 1189 | @cindex drag and drop, Dired | ||
| 1164 | On the X window system, Emacs supports the ``drag and drop'' | 1190 | On the X window system, Emacs supports the ``drag and drop'' |
| 1165 | protocol. You can drag a file object from another program, and drop | 1191 | protocol. You can drag a file object from another program, and drop |
| 1166 | it onto a Dired buffer; this either moves, copies, or creates a link | 1192 | it onto a Dired buffer; this either moves, copies, or creates a link |