diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-09-17 21:06:30 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-09-18 00:18:22 +0200 |
commit | 44457b3977539fb8c8c18d804c2dbfb6fbb0794f (patch) | |
tree | aba372acb4948135686eb3f89973772f9078dc19 /lisp/image/image-dired-util.el | |
parent | 704cdf5e6c414928cb5b4f0b08d627a96b447e0b (diff) | |
download | emacs-44457b3977539fb8c8c18d804c2dbfb6fbb0794f.tar.gz emacs-44457b3977539fb8c8c18d804c2dbfb6fbb0794f.tar.bz2 emacs-44457b3977539fb8c8c18d804c2dbfb6fbb0794f.zip |
Simplify image-dired-thumbnail-storage customization
* lisp/image/image-dired.el (image-dired-dir): Improve docstring.
(image-dired-thumbnail-storage): Change default to `image-dired',
maintain `use-image-dired-dir' for backwards compatibility.
* lisp/image/image-dired-util.el (image-dired-thumb-name): Handle
above new default value.
Diffstat (limited to 'lisp/image/image-dired-util.el')
-rw-r--r-- | lisp/image/image-dired-util.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/image/image-dired-util.el b/lisp/image/image-dired-util.el index cbe040128e8..dcf0b22cfe2 100644 --- a/lisp/image/image-dired-util.el +++ b/lisp/image/image-dired-util.el @@ -81,7 +81,9 @@ See also `image-dired-thumbnail-storage'." ;; MD5 is mandated by the Thumbnail Managing Standard. (concat (md5 (concat "file://" (expand-file-name file))) ".png") (expand-file-name thumbdir (xdg-cache-home))))) - ((eq 'use-image-dired-dir image-dired-thumbnail-storage) + ((or (eq 'image-dired image-dired-thumbnail-storage) + ;; Maintained for backwards compatibility: + (eq 'use-image-dired-dir image-dired-thumbnail-storage)) (let* ((f (expand-file-name file)) (hash (md5 (file-name-as-directory (file-name-directory f))))) |