comparison lisp/dired-aux.el @ 37506:81450ff799e2

(dired-do-create-files, dired-do-copy) (dired-do-symlink, dired-do-hardlink, dired-do-rename): Mention dired-dwim-target in the doc string.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 27 Apr 2001 15:38:26 +0000
parents 1d3800fd8fa2
children f2a2c8b8ec75
comparison
equal deleted inserted replaced
37505:5d4941002114 37506:81450ff799e2
1188 &optional marker-char op1 1188 &optional marker-char op1
1189 how-to) 1189 how-to)
1190 "Create a new file for each marked file. 1190 "Create a new file for each marked file.
1191 Prompts user for target, which is a directory in which to create 1191 Prompts user for target, which is a directory in which to create
1192 the new files. Target may be a plain file if only one marked 1192 the new files. Target may be a plain file if only one marked
1193 file exists. 1193 file exists. The way the default for the target directory is
1194 computed depends on the value of `dired-dwim-target-directory'.
1194 OP-SYMBOL is the symbol for the operation. Function `dired-mark-pop-up' 1195 OP-SYMBOL is the symbol for the operation. Function `dired-mark-pop-up'
1195 will determine whether pop-ups are appropriate for this OP-SYMBOL. 1196 will determine whether pop-ups are appropriate for this OP-SYMBOL.
1196 FILE-CREATOR and OPERATION as in `dired-create-files'. 1197 FILE-CREATOR and OPERATION as in `dired-create-files'.
1197 ARG as in `dired-get-marked-files'. 1198 ARG as in `dired-get-marked-files'.
1198 Optional arg MARKER-CHAR as in `dired-create-files'. 1199 Optional arg MARKER-CHAR as in `dired-create-files'.
1340 "Copy all marked (or next ARG) files, or copy the current file. 1341 "Copy all marked (or next ARG) files, or copy the current file.
1341 This normally preserves the last-modified date when copying. 1342 This normally preserves the last-modified date when copying.
1342 When operating on just the current file, you specify the new name. 1343 When operating on just the current file, you specify the new name.
1343 When operating on multiple or marked files, you specify a directory, 1344 When operating on multiple or marked files, you specify a directory,
1344 and new copies of these files are made in that directory 1345 and new copies of these files are made in that directory
1345 with the same names that the files currently have." 1346 with the same names that the files currently have. The default
1347 suggested for the target directory depends on the value of
1348 `dired-dwim-target', which see."
1346 (interactive "P") 1349 (interactive "P")
1347 (let ((dired-recursive-copies dired-recursive-copies)) 1350 (let ((dired-recursive-copies dired-recursive-copies))
1348 (dired-do-create-files 'copy (function dired-copy-file) 1351 (dired-do-create-files 'copy (function dired-copy-file)
1349 (if dired-copy-preserve-time "Copy [-p]" "Copy") 1352 (if dired-copy-preserve-time "Copy [-p]" "Copy")
1350 arg dired-keep-marker-copy 1353 arg dired-keep-marker-copy
1354 (defun dired-do-symlink (&optional arg) 1357 (defun dired-do-symlink (&optional arg)
1355 "Make symbolic links to current file or all marked (or next ARG) files. 1358 "Make symbolic links to current file or all marked (or next ARG) files.
1356 When operating on just the current file, you specify the new name. 1359 When operating on just the current file, you specify the new name.
1357 When operating on multiple or marked files, you specify a directory 1360 When operating on multiple or marked files, you specify a directory
1358 and new symbolic links are made in that directory 1361 and new symbolic links are made in that directory
1359 with the same names that the files currently have." 1362 with the same names that the files currently have. The default
1363 suggested for the target directory depends on the value of
1364 `dired-dwim-target', which see."
1360 (interactive "P") 1365 (interactive "P")
1361 (dired-do-create-files 'symlink (function make-symbolic-link) 1366 (dired-do-create-files 'symlink (function make-symbolic-link)
1362 "Symlink" arg dired-keep-marker-symlink)) 1367 "Symlink" arg dired-keep-marker-symlink))
1363 1368
1364 ;;;###autoload 1369 ;;;###autoload
1365 (defun dired-do-hardlink (&optional arg) 1370 (defun dired-do-hardlink (&optional arg)
1366 "Add names (hard links) current file or all marked (or next ARG) files. 1371 "Add names (hard links) current file or all marked (or next ARG) files.
1367 When operating on just the current file, you specify the new name. 1372 When operating on just the current file, you specify the new name.
1368 When operating on multiple or marked files, you specify a directory 1373 When operating on multiple or marked files, you specify a directory
1369 and new hard links are made in that directory 1374 and new hard links are made in that directory
1370 with the same names that the files currently have." 1375 with the same names that the files currently have. The default
1376 suggested for the target directory depends on the value of
1377 `dired-dwim-target', which see."
1371 (interactive "P") 1378 (interactive "P")
1372 (dired-do-create-files 'hardlink (function add-name-to-file) 1379 (dired-do-create-files 'hardlink (function add-name-to-file)
1373 "Hardlink" arg dired-keep-marker-hardlink)) 1380 "Hardlink" arg dired-keep-marker-hardlink))
1374 1381
1375 ;;;###autoload 1382 ;;;###autoload
1376 (defun dired-do-rename (&optional arg) 1383 (defun dired-do-rename (&optional arg)
1377 "Rename current file or all marked (or next ARG) files. 1384 "Rename current file or all marked (or next ARG) files.
1378 When renaming just the current file, you specify the new name. 1385 When renaming just the current file, you specify the new name.
1379 When renaming multiple or marked files, you specify a directory." 1386 When renaming multiple or marked files, you specify a directory.
1387 The default suggested for the target directory depends on the value
1388 of `dired-dwim-target', which see."
1380 (interactive "P") 1389 (interactive "P")
1381 (dired-do-create-files 'move (function dired-rename-file) 1390 (dired-do-create-files 'move (function dired-rename-file)
1382 "Move" arg dired-keep-marker-rename "Rename")) 1391 "Move" arg dired-keep-marker-rename "Rename"))
1383 ;;;###end dired-cp.el 1392 ;;;###end dired-cp.el
1384 1393