From 1ff772e28a2282e965c57643a6863fc35c74f293 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 6 Sep 2021 12:10:37 +0200 Subject: [PATCH] Simplify `image-dired-dired-file-marked-p' * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/image-dired.el b/lisp/image-dired.el index cf878ae1223..b92a9371ec2 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -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. -- 2.39.2