emacs-diffs
[Top][All Lists]
Advanced

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

master 82f96ed: image-dired: Use string-match-p in one case


From: Stefan Kangas
Subject: master 82f96ed: image-dired: Use string-match-p in one case
Date: Sun, 5 Dec 2021 20:54:04 -0500 (EST)

branch: master
commit 82f96ed38013a5bb78815c61ddecb2a21fb273b9
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    image-dired: Use string-match-p in one case
    
    * lisp/image-dired.el (image-dired-get-thumbnail-image): Use
    string-match-p.
---
 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 0e597a5..0723804 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)))



reply via email to

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