]> git.eshelyaron.com Git - emacs.git/commitdiff
Enable marking tagged with ls -F
authorManuel Giraud <manuel@ledu-giraud.fr>
Sat, 27 Jan 2024 16:23:06 +0000 (17:23 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:09:30 +0000 (21:09 +0100)
Bug#68637

* lisp/image/image-dired-dired.el (image-dired-mark-tagged-files):
Enable marking tagged for executable and symlink images when
'dired-listing-switches' includes -F.

(cherry picked from commit 12afe75cf7af99eabf821e40dd2fab2f9c3efcf9)

lisp/image/image-dired-dired.el

index f4778d8e1213c210cfeb8bf2d1919d0662946128..7219a106ca838f4d8c78c4514fe354cf4a807fca 100644 (file)
@@ -383,7 +383,7 @@ matching tag will be marked in the Dired buffer."
                       (file-name-directory curr-file)))
         (setq curr-file (file-name-nondirectory curr-file))
         (goto-char (point-min))
-        (when (search-forward-regexp (format "\\s %s$" curr-file) nil t)
+        (when (search-forward-regexp (format "\\s %s[*@]?$" curr-file) nil t)
           (setq hits (+ hits 1))
           (dired-mark 1))))
     (message "%d files with matching tag marked" hits)))