Function: thumbs-delete-images
thumbs-delete-images is an interactive and byte-compiled function
defined in thumbs.el.gz.
Signature
(thumbs-delete-images)
Documentation
Delete the image at point (and its thumbnail) (or marked files if any).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/thumbs.el.gz
(defun thumbs-delete-images ()
"Delete the image at point (and its thumbnail) (or marked files if any)."
(interactive)
(let ((files (or thumbs-marked-list (list (thumbs-current-image)))))
(if (yes-or-no-p (format "Really delete %d files? " (length files)))
(let ((thumbs-file-list (thumbs-file-alist))
(inhibit-read-only t))
(dolist (x files)
(let (failure)
(condition-case ()
(progn
(delete-file x)
(delete-file (thumbs-thumbname x)))
(file-error (setq failure t)))
(unless failure
(when (rassoc x thumbs-file-list)
(goto-char (car (rassoc x thumbs-file-list)))
(delete-region (point) (1+ (point))))
(setq thumbs-marked-list
(delq x thumbs-marked-list)))))))))