From: Chong Yidong Date: Sat, 3 Feb 2007 01:01:01 +0000 (+0000) Subject: Use autoload to avoid overriding disabled setting applied in .emacs. X-Git-Tag: emacs-pretest-22.0.94~436 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49f1a2f46131da62ae96be4d760c3ceae966a3e0;p=emacs.git Use autoload to avoid overriding disabled setting applied in .emacs. --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 13a689b6061..fdc331a08be 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -174,10 +174,15 @@ and showing the image as an image." (if (called-interactively-p) (message "Repeat this command to go back to displaying the file as text"))))) -(put 'image-toggle-display 'disabled "\ -WARNING: Displaying images can be a security risk. -Please make sure you're using up-to-date image libraries -and the images displayed come from a trusted source.") +;; Don't override the setting from .emacs. +;;;###autoload (put 'image-toggle-display 'disabled t) + +(if (get 'image-toggle-display 'disabled) + (put 'image-toggle-display 'disabled "\ + +Warning: Displaying images in Emacs could be a security risk. +Please ensure that you are using up-to-date image libraries +and that the images being displayed come from a trusted source.")) (provide 'image-mode)