Stefan Monnier
1a59edfc37
(image-forward-hscroll, image-next-line, image-eol)
...
(image-eob, image-mode, image-minor-mode, image-toggle-display-text)
(image-toggle-display): Take overlays into account and don't assume
point-min==1.
2007-10-30 17:09:41 +00:00
Juri Linkov
d487ca7d8e
(image-type): New variable.
...
(image-mode): Set default major mode name to "Image[text]".
(image-minor-mode): Change LIGHTER to display image-type in the
mode line.
(image-minor-mode): Set default image-type to "text".
(image-toggle-display): After switching to text mode, set
image-type to "text" and major mode name to "Image[text]".
After switching to image mode, set image-type to actual image
type, and add image type to major mode name. Let-bind the same
variable names as arguments of `image-type' and `create-image'.
Bind `type' to the result of `image-type' and use it as arg
of `create-image' to not determine the image type twice.
2007-08-28 22:32:07 +00:00
Juri Linkov
4a2f0e9922
Add autoloads to put associations in auto-mode-alist:
...
associate "\\.x[bp]m\\'" with c-mode and image-mode-maybe, and
"\\.svgz?\\'" with xml-mode and image-mode-maybe.
2007-08-25 14:08:44 +00:00
Chong Yidong
d1d45b92cc
(image-minor-mode): Use image-mode-text-map.
2007-08-22 22:28:01 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c
Switch license to GPLv3 or later.
2007-07-25 04:50:21 +00:00
Chong Yidong
736697e013
(image-forward-hscroll, image-backward-hscroll)
...
(image-next-line, image-previous-line, image-scroll-up)
(image-scroll-down, image-bol, image-eol, image-bob, image-eob):
New functions.
(image-mode-map): Remap motion commands.
(image-mode-text-map): New keymap for viewing images as text.
(image-mode): Use image-mode-map.
(image-toggle-display): Toggle auto-hscroll-mode and mode keymaps.
2007-06-08 03:01:25 +00:00
Chong Yidong
bb0cb41752
(image-forward-hscroll, image-backward-hscroll)
...
(image-next-line, image-previous-line, image-scroll-up)
(image-scroll-down, image-bol, image-eol, image-bob, image-eob):
New functions.
(image-mode-map): Remap motion commands.
(image-mode-text-map): New keymap for viewing images as text.
(image-mode): Use image-mode-map.
(image-toggle-display): Toggle auto-hscroll-mode and mode keymaps.
2007-05-24 23:12:53 +00:00
Chong Yidong
dc255b24e3
(image-toggle-display): Don't clear image cache. Only use filename in
...
image spec if the file is readable. Call image-refresh.
2007-05-21 23:05:20 +00:00
Chong Yidong
f992a935ed
(image-mode): Revert 2007-01-30 changes.
2007-02-09 16:50:29 +00:00
Chong Yidong
49f1a2f461
Use autoload to avoid overriding disabled setting applied in .emacs.
2007-02-03 01:01:01 +00:00
Jason Rumney
9fce2d717b
(image-mode-maybe): Prevent magic-mode-alist from
...
interfering with attempt to set major mode from modified
auto-mode-alist.
2007-01-31 12:37:08 +00:00
Chong Yidong
fd014ebf25
(image-toggle-display): Add `disabled' property.
2007-01-30 16:57:36 +00:00
Chong Yidong
9f446ee905
(image-mode): Don't automatically view as image.
2007-01-30 16:52:48 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Chong Yidong
ab145daf37
* image-mode.el (image-mode): Fix last fix.
...
Suggested by Kim F. Storm.
2006-08-29 13:02:53 +00:00
Chong Yidong
0e8b7151ca
* image-mode.el (image-mode): Display image as text on a terminal.
2006-08-28 22:49:25 +00:00
Richard M. Stallman
f2920ffe8e
(tar-superior-buffer, archive-superior-buffer):
...
Add defvars to silence warnings.
2006-07-17 20:55:07 +00:00
Chong Yidong
4d687160ec
* image-mode.el (image-toggle-display): Use buffer contents to
...
generate image for a remote file.
2006-05-26 03:34:33 +00:00
Richard M. Stallman
df5b8a5364
(image-toggle-display): Handle tar and arc subfiles.
2006-04-18 21:21:08 +00:00
Chong Yidong
fcfc4732e0
* image-mode.el (image-toggle-display): Clear image cache if using
...
filename.
2006-02-09 19:34:08 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Chong Yidong
2bd53dc071
* image-mode.el (image-toggle-display): Use file name if possible,
...
instead of unnecessarily allocating a (possibly huge) lisp string.
2006-01-30 20:44:44 +00:00
Deepak Goel
8a26c16552
Message format spec fixes (1)
2005-09-18 12:25:02 +00:00
Lute Kamstra
086add1519
Update FSF's address.
2005-07-04 23:32:44 +00:00
Juri Linkov
90d0be7d3f
(image-minor-mode): Set cursor-type' and
truncate-lines' if the
...
image is already displayed. Add turning image-minor-mode off to
`change-major-mode-hook'. Add message.
Call `image-toggle-display-text' after turning image-minor-mode off.
2005-03-25 21:45:47 +00:00
Juri Linkov
d90e651e6e
Optimize image filename extension regexps in
...
autoload cookies. Associate .x[bp]m with `image-mode-maybe'
in `auto-mode-alist'.
(image-mode): Add `image-toggle-display-text' to local hook
`change-major-mode-hook'. Display the image as an image by
default. Set `cursor-type' and `truncate-lines' if the image
is already displayed. Take into account the current mode (image
or text) in message.
(image-minor-mode): New minor mode.
(image-mode-maybe, image-toggle-display-text): New functions.
(image-toggle-display): Use called-interactively-p.
Let-bind `inhibit-read-only' to t.
2005-03-25 19:57:21 +00:00
Richard M. Stallman
837daa0d41
Handle .xpm files too.
...
(image-toggle-display): Preserve modification flag.
2005-03-21 17:42:36 +00:00
Miles Bader
8f7ee63901
Changes from arch/CVS synchronization
2005-03-18 02:53:44 +00:00
Richard M. Stallman
c7bd5d5712
*** empty log message ***
2005-03-18 00:15:23 +00:00