Mercurial > emacs
changeset 12211:472729271c30
(dired-change-marks): If OLD is a space, don't act on non-file lines.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 14 Jun 1995 11:46:56 +0000 |
parents | a74a202e9660 |
children | 5ab666b86a02 |
files | lisp/dired.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/dired.el Wed Jun 14 11:16:17 1995 +0000 +++ b/lisp/dired.el Wed Jun 14 11:46:56 1995 +0000 @@ -2039,8 +2039,12 @@ (save-excursion (goto-char (point-min)) (while (search-forward string nil t) - (subst-char-in-region (match-beginning 0) - (match-end 0) old new)))))) + (if (if (= old ?\ ) + (save-match-data + (dired-get-filename 'no-dir t)) + t) + (subst-char-in-region (match-beginning 0) + (match-end 0) old new))))))) (defun dired-unmark-all-files-no-query () "Remove all marks from all files in the Dired buffer."