]> code.delx.au - gnu-emacs/blobdiff - lisp/image-file.el
*** empty log message ***
[gnu-emacs] / lisp / image-file.el
index 87fd48a55f280b82e3de0618d57b157a162f74dd..11676021afd276df0fc33a8b87d3a7ecba124f5f 100644 (file)
@@ -135,6 +135,7 @@ the command `insert-file-contents'."
          (setq truncate-lines t))))
     rval))
 
+(put 'image-file-handler 'safe-magic t)
 (defun image-file-handler (operation &rest args)
   "Filename handler for inserting image files.
 OPERATION is the operation to perform, on ARGS.
@@ -156,10 +157,6 @@ Optional argument ARGS are the arguments to call FUNCTION with."
     (apply function args)))
 
 
-;;; Note this definition must be at the end of the file, because
-;;; `define-minor-mode' actually calls the mode-function if the
-;;; associated variable is non-nil, which requires that all needed
-;;; functions be already defined.  [This is arguably a bug in d-m-m]
 ;;;###autoload
 (define-minor-mode auto-image-file-mode
   "Toggle visiting of image files as images.
@@ -185,4 +182,5 @@ Image files are those whose name has an extension in
 
 (provide 'image-file)
 
+;;; arch-tag: 04cafe36-f7ba-4c80-9f47-4cb656520ce1
 ;;; image-file.el ends here