Mercurial > emacs
comparison lisp/dired-aux.el @ 37520:f2a2c8b8ec75
(dired-do-rename-regexp, dired-do-copy-regexp)
(dired-do-hardlink-regexp, dired-do-symlink-regexp): Doc fix.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 30 Apr 2001 13:35:51 +0000 |
parents | 81450ff799e2 |
children | e21c3f6fd4d6 |
comparison
equal
deleted
inserted
replaced
37519:1a27ed8dcefc | 37520:f2a2c8b8ec75 |
---|---|
1464 (concat (if whole-path "Path " "") operation " " regexp " to: ")))) | 1464 (concat (if whole-path "Path " "") operation " " regexp " to: ")))) |
1465 (list regexp newname arg whole-path))) | 1465 (list regexp newname arg whole-path))) |
1466 | 1466 |
1467 ;;;###autoload | 1467 ;;;###autoload |
1468 (defun dired-do-rename-regexp (regexp newname &optional arg whole-path) | 1468 (defun dired-do-rename-regexp (regexp newname &optional arg whole-path) |
1469 "Rename marked files containing REGEXP to NEWNAME. | 1469 "Rename selected files whose names match REGEXP to NEWNAME. |
1470 | |
1471 With non-zero prefix argument ARG, the command operates on the next ARG | |
1472 files. Otherwise, it operates on all the marked files, or the current | |
1473 file if none are marked. | |
1474 | |
1470 As each match is found, the user must type a character saying | 1475 As each match is found, the user must type a character saying |
1471 what to do with it. For directions, type \\[help-command] at that time. | 1476 what to do with it. For directions, type \\[help-command] at that time. |
1472 NEWNAME may contain \\=\\<n> or \\& as in `query-replace-regexp'. | 1477 NEWNAME may contain \\=\\<n> or \\& as in `query-replace-regexp'. |
1473 REGEXP defaults to the last regexp used. | 1478 REGEXP defaults to the last regexp used. |
1474 | 1479 |
1479 (function dired-rename-file) | 1484 (function dired-rename-file) |
1480 "Rename" arg regexp newname whole-path dired-keep-marker-rename)) | 1485 "Rename" arg regexp newname whole-path dired-keep-marker-rename)) |
1481 | 1486 |
1482 ;;;###autoload | 1487 ;;;###autoload |
1483 (defun dired-do-copy-regexp (regexp newname &optional arg whole-path) | 1488 (defun dired-do-copy-regexp (regexp newname &optional arg whole-path) |
1484 "Copy all marked files containing REGEXP to NEWNAME. | 1489 "Copy selected files whose names match REGEXP to NEWNAME. |
1485 See function `dired-do-rename-regexp' for more info." | 1490 See function `dired-do-rename-regexp' for more info." |
1486 (interactive (dired-mark-read-regexp "Copy")) | 1491 (interactive (dired-mark-read-regexp "Copy")) |
1487 (let ((dired-recursive-copies nil)) ; No recursive copies. | 1492 (let ((dired-recursive-copies nil)) ; No recursive copies. |
1488 (dired-do-create-files-regexp | 1493 (dired-do-create-files-regexp |
1489 (function dired-copy-file) | 1494 (function dired-copy-file) |
1490 (if dired-copy-preserve-time "Copy [-p]" "Copy") | 1495 (if dired-copy-preserve-time "Copy [-p]" "Copy") |
1491 arg regexp newname whole-path dired-keep-marker-copy))) | 1496 arg regexp newname whole-path dired-keep-marker-copy))) |
1492 | 1497 |
1493 ;;;###autoload | 1498 ;;;###autoload |
1494 (defun dired-do-hardlink-regexp (regexp newname &optional arg whole-path) | 1499 (defun dired-do-hardlink-regexp (regexp newname &optional arg whole-path) |
1495 "Hardlink all marked files containing REGEXP to NEWNAME. | 1500 "Hardlink selected files whose names match REGEXP to NEWNAME. |
1496 See function `dired-do-rename-regexp' for more info." | 1501 See function `dired-do-rename-regexp' for more info." |
1497 (interactive (dired-mark-read-regexp "HardLink")) | 1502 (interactive (dired-mark-read-regexp "HardLink")) |
1498 (dired-do-create-files-regexp | 1503 (dired-do-create-files-regexp |
1499 (function add-name-to-file) | 1504 (function add-name-to-file) |
1500 "HardLink" arg regexp newname whole-path dired-keep-marker-hardlink)) | 1505 "HardLink" arg regexp newname whole-path dired-keep-marker-hardlink)) |
1501 | 1506 |
1502 ;;;###autoload | 1507 ;;;###autoload |
1503 (defun dired-do-symlink-regexp (regexp newname &optional arg whole-path) | 1508 (defun dired-do-symlink-regexp (regexp newname &optional arg whole-path) |
1504 "Symlink all marked files containing REGEXP to NEWNAME. | 1509 "Symlink selected files whose names match REGEXP to NEWNAME. |
1505 See function `dired-do-rename-regexp' for more info." | 1510 See function `dired-do-rename-regexp' for more info." |
1506 (interactive (dired-mark-read-regexp "SymLink")) | 1511 (interactive (dired-mark-read-regexp "SymLink")) |
1507 (dired-do-create-files-regexp | 1512 (dired-do-create-files-regexp |
1508 (function make-symbolic-link) | 1513 (function make-symbolic-link) |
1509 "SymLink" arg regexp newname whole-path dired-keep-marker-symlink)) | 1514 "SymLink" arg regexp newname whole-path dired-keep-marker-symlink)) |