mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-09 05:01:02 -08:00
image-dired: Signal error if file is missing on display
* lisp/image-dired.el (image-dired-display-image): Signal error if file is missing.
This commit is contained in:
parent
91b6f49cdd
commit
09a38b021b
1 changed files with 2 additions and 0 deletions
|
|
@ -2040,6 +2040,8 @@ original size."
|
|||
(window (image-dired-display-window))
|
||||
(image-type 'jpeg))
|
||||
(setq file (expand-file-name file))
|
||||
(when (not (file-exists-p file))
|
||||
(error "No such file: %s" file))
|
||||
(if (not original-size)
|
||||
(let* ((spec
|
||||
(list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue