From: Stefan Kangas Date: Mon, 6 Dec 2021 01:53:31 +0000 (+0100) Subject: image-dired: Use string-match-p in one case X-Git-Tag: emacs-29.0.90~3612^2^2~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82f96ed38013a5bb78815c61ddecb2a21fb273b9;p=emacs.git image-dired: Use string-match-p in one case * lisp/image-dired.el (image-dired-get-thumbnail-image): Use string-match-p. --- diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 0e597a515e7..0723804ff27 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -540,7 +540,7 @@ Create the thumbnail directory if it does not exist." (defun image-dired-get-thumbnail-image (file) "Return the image descriptor for a thumbnail of image file FILE." - (unless (string-match (image-file-name-regexp) file) + (unless (string-match-p (image-file-name-regexp) file) (error "%s is not a valid image file" file)) (let* ((thumb-file (image-dired-thumb-name file)) (thumb-attr (file-attributes thumb-file)))