From: Lars Ingebrigtsen Date: Tue, 25 Jun 2019 23:15:06 +0000 (+0200) Subject: Fix previous patch to dired-mark-if X-Git-Tag: emacs-27.0.90~2219 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8d174304a99baef2da456e973d955005455507e;p=emacs.git Fix previous patch to dired-mark-if * lisp/dired.el (dired-mark-if): Don't use looking-at to check for characters. --- diff --git a/lisp/dired.el b/lisp/dired.el index 5618b25f6f9..38ba3734a61 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -559,7 +559,7 @@ Return value is the number of files marked, or nil if none were marked." (goto-char (point-min)) (while (not (eobp)) (when ,predicate - (unless (looking-at-p (char-to-string dired-marker-char)) + (unless (= (following-char) dired-marker-char) (delete-char 1) (insert dired-marker-char) (setq count (1+ count))))