Function: image-dired--with-db-file

image-dired--with-db-file is a macro defined in image-dired-tags.el.gz.

Signature

(image-dired--with-db-file &rest BODY)

Documentation

Run BODY in a temp buffer containing image-dired-tags-db-file.

Return the value of last form in BODY.

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired-tags.el.gz
(defmacro image-dired--with-db-file (&rest body)
  "Run BODY in a temp buffer containing `image-dired-tags-db-file'.
Return the value of last form in BODY."
  (declare (indent 0) (debug t))
  `(with-temp-buffer
     (if (file-exists-p image-dired-tags-db-file)
         (insert-file-contents image-dired-tags-db-file))
     ,@body))