diff options
| author | Chong Yidong | 2007-01-30 16:57:36 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-01-30 16:57:36 +0000 |
| commit | fd014ebf25216662c06644d820a165ab5af3fbfd (patch) | |
| tree | 2bb682a0e0a1bbd15b607a1be69880f4d6cb67b0 | |
| parent | caf39874e03fc8d6d878063cc7db8b88cc599a35 (diff) | |
| download | emacs-fd014ebf25216662c06644d820a165ab5af3fbfd.tar.gz emacs-fd014ebf25216662c06644d820a165ab5af3fbfd.zip | |
(image-toggle-display): Add `disabled' property.
| -rw-r--r-- | lisp/image-mode.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 97f1a7902dc..3e10afcbfeb 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -173,6 +173,11 @@ and showing the image as an image." | |||
| 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 |