image-dired: Signal an error before calling a missing executable
commit5d7433aba3893d9d5849b33b909dacc778ecd023
authorTino Calancha <tino.calancha@gmail.com>
Mon, 12 Sep 2016 19:28:42 +0000 (13 04:28 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Mon, 12 Sep 2016 19:28:42 +0000 (13 04:28 +0900)
treec29836ad8f14b5ff021203202d8f13b69ba99865
parent2675c79db5745d55d43b78019b1e6a4f84b168fa
image-dired: Signal an error before calling a missing executable

Reverts commit ca473907
Add a defun to check if an executable exists, and call it
on each function using an external program: when the executable
is not available signal an error.
See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00135.html
* lisp/image-dired.el (image-dired--check-executable-exists): New defun.
Throw and error when the executable arg is missing.
(image-dired-display-image, image-dired-rotate-thumbnail)
(image-dired-rotate-original, image-dired-set-exif-data)
(image-dired-get-exif-data):
Use it.
lisp/image-dired.el