changeset 75547:570ac6b1951a

(image-toggle-display): Add `disabled' property.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 30 Jan 2007 16:57:36 +0000
parents 96ca40f6d5d9
children 857424505d72
files lisp/image-mode.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/image-mode.el	Tue Jan 30 16:57:18 2007 +0000
+++ b/lisp/image-mode.el	Tue Jan 30 16:57:36 2007 +0000
@@ -173,6 +173,11 @@
       (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.")
+
 (provide 'image-mode)
 
 ;; arch-tag: b5b2b7e6-26a7-4b79-96e3-1546b5c4c6cb