]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous patch to dired-mark-if
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 25 Jun 2019 23:15:06 +0000 (01:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 25 Jun 2019 23:15:06 +0000 (01:15 +0200)
* lisp/dired.el (dired-mark-if): Don't use looking-at to check for
characters.

lisp/dired.el

index 5618b25f6f9bfb9df4bda3771e0f5db3b2306ab2..38ba3734a6135cc967ebe00ca997894b52649d84 100644 (file)
@@ -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))))