From: Richard M. Stallman Date: Wed, 14 Jun 1995 11:46:56 +0000 (+0000) Subject: (dired-change-marks): If OLD is a space, don't act on non-file lines. X-Git-Tag: emacs-19.34~3648 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a15a76f76690fb3c9176c106419c62770b866ffc;p=emacs.git (dired-change-marks): If OLD is a space, don't act on non-file lines. --- diff --git a/lisp/dired.el b/lisp/dired.el index d049ee706d8..4afb66871cf 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2039,8 +2039,12 @@ OLD and NEW are both characters used to mark files." (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."