Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ab145daf
Commit
ab145daf
authored
Aug 29, 2006
by
Chong Yidong
Browse files
* image-mode.el (image-mode): Fix last fix.
Suggested by Kim F. Storm.
parent
1a762140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/image-mode.el
lisp/image-mode.el
+13
-14
No files found.
lisp/ChangeLog
View file @
ab145daf
2006-08-29 Chong Yidong <cyd@stupidchicken.com>
* image-mode.el (image-mode): Fix last fix.
Suggested by Kim F. Storm.
2006-08-29 Michael Albinus <michael.albinus@gmx.de>
Sync with Tramp 2.0.54.
...
...
lisp/image-mode.el
View file @
ab145daf
...
...
@@ -60,20 +60,19 @@ 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
)
(
let
((
image-display-supported-p
(
memq
window-system
'
(
x
w32
mac
))))
(
if
(
and
image-display-supported-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
image-display-supported-p
(
message
"%s"
(
concat
(
substitute-command-keys
"Type \\[image-toggle-display] to view the image as "
)
(
if
(
get-text-property
(
point-min
)
'display
)
"text"
"an image"
)
"."
)))))
(
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 "
)
(
if
(
get-text-property
(
point-min
)
'display
)
"text"
"an image"
)
"."
))))
;;;###autoload
(
define-minor-mode
image-minor-mode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment