]> git.eshelyaron.com Git - emacs.git/commitdiff
; Prefer string-join in image-dired
authorStefan Kangas <stefankangas@gmail.com>
Tue, 13 Sep 2022 16:54:14 +0000 (18:54 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 14 Sep 2022 02:48:05 +0000 (04:48 +0200)
* lisp/image/image-dired-dired.el (subr-x): Require.
(image-dired-dired-display-properties): Prefer string-join.
* lisp/image/image-dired.el (subr-x): Require.
(image-dired-update-header-line): Prefer string-join.

lisp/image/image-dired-dired.el
lisp/image/image-dired.el

index ef0323d16655892dd9b1edf5c5837c9d4f713799..ab994742ecd4a6407581e64e86f5c9da90904dc1 100644 (file)
@@ -24,6 +24,8 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'subr-x)) ; for string-join
+
 (require 'image-dired)
 
 (defgroup image-dired-dired nil
@@ -370,7 +372,7 @@ matching tag will be marked in the Dired buffer."
   (let* ((file (dired-get-filename))
          (file-name (file-name-nondirectory file))
          (dired-buf (buffer-name (current-buffer)))
-         (props (mapconcat #'identity (image-dired-list-tags file) ", "))
+         (props (string-join (image-dired-list-tags file) ", "))
          (comment (image-dired-get-comment file))
          (message-log-max nil))
     (if file-name
index f1074247e924bf569f2aacc541ec0224b71772b9..ff10be2ab4b86a6ad7248280a0c75653f0dffe7f 100644 (file)
 
 (eval-when-compile
   (require 'cl-lib)
+  (require 'subr-x) ; for string-join
   (require 'wid-edit))
 
 (require 'image-dired-external)
@@ -704,7 +705,7 @@ comment."
                                 image-dired-display-image-mode)))
     (let ((file-name (file-name-nondirectory (image-dired-original-file-name)))
           (dired-buf (buffer-name (image-dired-associated-dired-buffer)))
-          (props (mapconcat #'identity (get-text-property (point) 'tags) ", "))
+          (props (string-join (get-text-property (point) 'tags) ", "))
           (comment (get-text-property (point) 'comment))
           (message-log-max nil))
       (if file-name