diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-01-30 16:52:48 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-01-30 16:52:48 +0000 |
commit | 9f446ee9051ded164369423a437076b3e46205d1 (patch) | |
tree | e46cead2432da4f99ac15854df2d9fe5cb386100 /lisp/image-mode.el | |
parent | 28c0f07a3cf7e14593d07ee7e0a77de8819968cb (diff) | |
download | emacs-9f446ee9051ded164369423a437076b3e46205d1.tar.gz emacs-9f446ee9051ded164369423a437076b3e46205d1.tar.bz2 emacs-9f446ee9051ded164369423a437076b3e46205d1.zip |
(image-mode): Don't automatically view as image.
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r-- | lisp/image-mode.el | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 5b24aa316dd..97f1a7902dc 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -60,17 +60,11 @@ to toggle between display as an image and display as text." (setq major-mode 'image-mode) (use-local-map image-mode-map) (add-hook 'change-major-mode-hook 'image-toggle-display-text nil t) - (if (and (display-images-p) - (not (get-text-property (point-min) 'display))) - (image-toggle-display) - ;; Set next vars when image is already displayed but local - ;; variables were cleared by kill-all-local-variables - (setq cursor-type nil truncate-lines t)) (run-mode-hooks 'image-mode-hook) (if (display-images-p) (message "%s" (concat (substitute-command-keys - "Type \\[image-toggle-display] to view the image as ") + "Type \\[image-toggle-display] to view as ") (if (get-text-property (point-min) 'display) "text" "an image") ".")))) |