diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-05-30 17:45:33 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-05-30 17:45:33 +0300 |
commit | ae7d0e86b37eabc434c48f85f56df0a221e0e7c7 (patch) | |
tree | 6b4c65c594e47ee09f6a0b1fc6dc3856802bfe81 /lisp/emacs-lisp/lisp-mode.el | |
parent | 1ebb9cb93b2fefa84f18a63fb24c1ed4fcf095a7 (diff) | |
download | emacs-ae7d0e86b37eabc434c48f85f56df0a221e0e7c7.tar.gz emacs-ae7d0e86b37eabc434c48f85f56df0a221e0e7c7.tar.bz2 emacs-ae7d0e86b37eabc434c48f85f56df0a221e0e7c7.zip |
Support built-in thumbnail creation on MS-Windows
* src/w32image.c (get_encoder_clsid, Fw32image_create_thumbnail)
(globals_of_w32image, syms_of_w32image): New functions.
* src/emacs.c (main): Call 'syms_of_w32image' and
'globals_of_w32image'.
* src/w32term.h (syms_of_w32image, globals_of_w32image): Add
prototypes.
* lisp/image/image-dired.el
(image-dired-thumbnail-display-external): Add a fallback for
MS-Windows.
* lisp/image/image-dired-external.el
(image-dired--probe-thumbnail-cmd): New function.
(image-dired--check-executable-exists): Call it to verify that
"convert" is indeed an Imagemagick program. New argument FUNC
specifies a function that can be used as an alternative to running
EXECUTABLE.
(image-dired-create-thumb-1): Don't call
'image-dired--check-executable-exists' here, ...
(image-dired-thumb-queue-run): ...call it here, with
'w32image-create-thumbnail' as the alternative function. If on
MS-Windows and no "convert" command, call
'image-dired-create-thumb-2' instead.
(image-dired-create-thumb-2): New function.
* etc/NEWS: Announce the thumbnail support.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions