]> code.delx.au - gnu-emacs/blobdiff - lisp/image.el
There's no reason not to compile version.el
[gnu-emacs] / lisp / image.el
index 348c208781e601e3a7e227962a16b4b19c0457e7..27e41a57efec308a3e6e2b156b2006da6747a415 100644 (file)
@@ -282,7 +282,9 @@ be determined."
                  types nil)
          (setq types (cdr types)))))
     (goto-char opoint)
-    type))
+    (and type
+        (memq type image-types)
+        type)))
 
 
 ;;;###autoload