]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify `image-dired-dired-file-marked-p'
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Sep 2021 10:10:37 +0000 (12:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 6 Sep 2021 10:10:37 +0000 (12:10 +0200)
* lisp/image-dired.el (image-dired-dired-file-marked-p): Use
`dired-re-mark' instead of open-coding the opposite regexp (bug#14925).

lisp/image-dired.el

index cf878ae12232c1f338bc16fccc888dc0b1a893e4..b92a9371ec24d1ae951a9bb5f90e69d08daac1da 100644 (file)
@@ -1387,7 +1387,7 @@ comment."
   "Check whether file on current line is marked or not."
   (save-excursion
     (beginning-of-line)
-    (not (looking-at "^ .*$"))))
+    (looking-at-p dired-re-mark)))
 
 (defun image-dired-modify-mark-on-thumb-original-file (command)
   "Modify mark in dired buffer.