]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "* lisp/image-dired.el: Remove unnecessary 'declare-function'."
authorStefan Kangas <stefan@marxist.se>
Wed, 17 Nov 2021 23:58:26 +0000 (00:58 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 18 Nov 2021 00:00:57 +0000 (01:00 +0100)
This reverts commit e0261d4a0cf2a23d32b51b84870a3a75f8273c7c.

This commit gives warnings on builds --without-x.
Problem pointed out by Glenn Morris <rgm@gnu.org> in:
https://lists.gnu.org/r/emacs-devel/2021-11/msg01278.html

lisp/image-dired.el

index 047be5a21569549468283ac55973958160f50f61..852ef0f1035ea58e33456de3181dfcb6747a5c31 100644 (file)
@@ -1739,6 +1739,8 @@ Note that n, p and <down> and <up> will be hijacked and bound to
 `image-dired-dired-next-line' and `image-dired-dired-previous-line'."
   :keymap image-dired-minor-mode-map)
 
+(declare-function clear-image-cache "image.c" (&optional filter))
+
 (defun image-dired-create-thumbs (&optional arg)
   "Create thumbnail images for all marked files in Dired.
 With prefix argument ARG, create thumbnails even if they already exist