summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-09-06 12:10:37 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-09-06 12:10:37 +0200
commit1ff772e28a2282e965c57643a6863fc35c74f293 (patch)
treeef8b77d52ba8115e4faadec0532676f6db23a4a1 /lisp
parent331be89e7ccb9cd51a0bb03cb7421ddb02e8ce58 (diff)
downloademacs-1ff772e28a2282e965c57643a6863fc35c74f293.tar.gz
emacs-1ff772e28a2282e965c57643a6863fc35c74f293.tar.bz2
emacs-1ff772e28a2282e965c57643a6863fc35c74f293.zip
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).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/image-dired.el2
1 files changed, 1 insertions, 1 deletions
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.