comparison man/dired.texi @ 37519:1a27ed8dcefc

(Marks vs Flags): Explain that dired-undo doesn't undo the file operations. (Transforming File Names): Document that these commands operate on ARG or marked files, and that they ask for confirmation on each file.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 30 Apr 2001 13:35:05 +0000
parents 772178ae2c7e
children b7c260d40c0b
comparison
equal deleted inserted replaced
37518:9950659f9752 37519:1a27ed8dcefc
435 435
436 @item C-_ 436 @item C-_
437 @kindex C-_ @r{(Dired)} 437 @kindex C-_ @r{(Dired)}
438 @findex dired-undo 438 @findex dired-undo
439 Undo changes in the Dired buffer, such as adding or removing 439 Undo changes in the Dired buffer, such as adding or removing
440 marks (@code{dired-undo}). 440 marks (@code{dired-undo}). @emph{This command does not revert the
441 actual file operations, nor recovers lost files!} It just undoes
442 changes in the buffer itself. For example, if used after renaming one
443 or more files, @code{dired-undo} restores the original names, which
444 will get the Dired buffer out of sync with the actual contents of the
445 directory.
441 @end table 446 @end table
442 447
443 @node Operating on Files 448 @node Operating on Files
444 @section Operating on Files 449 @section Operating on Files
445 @cindex operating on files in Dired 450 @cindex operating on files in Dired
682 Updating}). 687 Updating}).
683 688
684 @node Transforming File Names 689 @node Transforming File Names
685 @section Transforming File Names in Dired 690 @section Transforming File Names in Dired
686 691
687 Here are commands that alter file names in a systematic way: 692 This section describes Dired commands which alter file names in a
693 systematic way.
694
695 Like the basic Dired file-manipulation commands (@pxref{Operating on
696 Files}), the commands described here operate either on the next
697 @var{n} files, or on all files marked with @samp{*}, or on the current
698 file. (To mark files, use the commands described in @ref{Marks vs
699 Flags}.)
700
701 All of the commands described in this section work
702 @emph{interactively}: they ask you to confirm the operation for each
703 candidate file. Thus, you can select more files than you actually
704 need to operate on (e.g., with a regexp that matches many files), and
705 then refine the selection by typing @kbd{y} or @kbd{n} when the
706 command prompts for confirmation.
688 707
689 @table @kbd 708 @table @kbd
690 @findex dired-upcase 709 @findex dired-upcase
691 @kindex % u @r{(Dired)} 710 @kindex % u @r{(Dired)}
692 @cindex upcase file names 711 @cindex upcase file names
740 matches that should span the whole filename.) 759 matches that should span the whole filename.)
741 760
742 Normally, the replacement process does not consider the files' 761 Normally, the replacement process does not consider the files'
743 directory names; it operates on the file name within the directory. If 762 directory names; it operates on the file name within the directory. If
744 you specify a numeric argument of zero, then replacement affects the 763 you specify a numeric argument of zero, then replacement affects the
745 entire absolute file name including directory name. 764 entire absolute file name including directory name. (Non-zero
765 argument specifies the number of files to operate on.)
746 766
747 Often you will want to select the set of files to operate on using the 767 Often you will want to select the set of files to operate on using the
748 same @var{regexp} that you will use to operate on them. To do this, 768 same @var{regexp} that you will use to operate on them. To do this,
749 mark those files with @kbd{% m @var{regexp} @key{RET}}, then use the 769 mark those files with @kbd{% m @var{regexp} @key{RET}}, then use the
750 same regular expression in the command to operate on the files. To make 770 same regular expression in the command to operate on the files. To make