emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1ff772e 2/2: Simplify `image-dired-dired-file-marked-p'


From: Lars Ingebrigtsen
Subject: master 1ff772e 2/2: Simplify `image-dired-dired-file-marked-p'
Date: Mon, 6 Sep 2021 06:10:46 -0400 (EDT)

branch: master
commit 1ff772e28a2282e965c57643a6863fc35c74f293
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 cf878ae..b92a937 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]