Mercurial > emacs
comparison lisp/image-mode.el @ 75547:570ac6b1951a
(image-toggle-display): Add `disabled' property.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 30 Jan 2007 16:57:36 +0000 |
parents | 4f14c21e4f44 |
children | 146ba0f8974c |
comparison
equal
deleted
inserted
replaced
75546:96ca40f6d5d9 | 75547:570ac6b1951a |
---|---|
171 ;; area look correct when the image is wider than the window. | 171 ;; area look correct when the image is wider than the window. |
172 (setq truncate-lines t) | 172 (setq truncate-lines t) |
173 (if (called-interactively-p) | 173 (if (called-interactively-p) |
174 (message "Repeat this command to go back to displaying the file as text"))))) | 174 (message "Repeat this command to go back to displaying the file as text"))))) |
175 | 175 |
176 (put 'image-toggle-display 'disabled "\ | |
177 WARNING: Displaying images can be a security risk. | |
178 Please make sure you're using up-to-date image libraries | |
179 and the images displayed come from a trusted source.") | |
180 | |
176 (provide 'image-mode) | 181 (provide 'image-mode) |
177 | 182 |
178 ;; arch-tag: b5b2b7e6-26a7-4b79-96e3-1546b5c4c6cb | 183 ;; arch-tag: b5b2b7e6-26a7-4b79-96e3-1546b5c4c6cb |
179 ;;; image-mode.el ends here | 184 ;;; image-mode.el ends here |