Changeset 4161 for trunk/lisp/image-mode.el
- Timestamp:
- 09/09/06 16:30:10 (2 years ago)
- Files:
-
- trunk/lisp/image-mode.el (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/image-mode.el
r4131 r4161 61 61 (use-local-map image-mode-map) 62 62 (add-hook 'change-major-mode-hook 'image-toggle-display-text nil t) 63 (if (not (get-text-property (point-min) 'display)) 63 (if (and (display-images-p) 64 (not (get-text-property (point-min) 'display))) 64 65 (image-toggle-display) 65 66 ;; Set next vars when image is already displayed but local … … 67 68 (setq cursor-type nil truncate-lines t)) 68 69 (run-mode-hooks 'image-mode-hook) 69 (message "%s" (concat (substitute-command-keys 70 "Type \\[image-toggle-display] to view the image as ") 71 (if (get-text-property (point-min) 'display) 72 "text" "an image") "."))) 70 (if (display-images-p) 71 (message "%s" (concat 72 (substitute-command-keys 73 "Type \\[image-toggle-display] to view the image as ") 74 (if (get-text-property (point-min) 'display) 75 "text" "an image") ".")))) 73 76 74 77 ;;;###autoload
