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
5db881d0
Commit
5db881d0
authored
Feb 21, 2013
by
Glenn Morris
Browse files
* lisp/image-mode.el (image-mode): Add mouse bindings for mode-line-process.
parent
153dd4d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/image-mode.el
lisp/image-mode.el
+16
-5
No files found.
lisp/ChangeLog
View file @
5db881d0
2013-02-22 Glenn Morris <rgm@gnu.org>
* image-mode.el (image-mode): Add mouse bindings for mode-line-process.
* htmlfontify.el (hfy-default-header): Encode title string. (Bug#7457)
2013-02-21 Bastien Guerry <bzg@gnu.org>
...
...
lisp/image-mode.el
View file @
5db881d0
...
...
@@ -476,11 +476,22 @@ to toggle between display as an image and display as text."
((
setq
animated
(
image-multi-frame-p
image
))
(
setq
image-multi-frame
t
mode-line-process
`
(
:eval
(
propertize
(
format
" [%s/%s]"
(
1+
(
image-current-frame
',image
))
,
(
car
animated
))
'help-echo
"Frame number"
)))
`
(
:eval
(
concat
" "
(
propertize
(
format
"[%s/%s]"
(
1+
(
image-current-frame
',image
))
,
(
car
animated
))
'help-echo
"Frames
mouse-1: Next frame
mouse-3: Previous frame"
'mouse-face
'mode-line-highlight
'local-map
'
(
keymap
(
mode-line
keymap
(
down-mouse-1
.
image-next-frame
)
(
down-mouse-3
.
image-previous-frame
)))))))
(
message
"%s"
(
concat
msg1
"text. This image has multiple frames."
)))
;;; (substitute-command-keys
...
...
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