Mercurial > emacs
diff etc/NEWS @ 106409:87bc434475d4
Change roles of modes and functions in image-mode.el (Bug#5062).
* image-mode.el: Replace `image-mode-maybe' with `image-mode'
in `auto-mode-alist'.
(image-mode-previous-major-mode): New variable.
(image-minor-mode-map): Rename from `image-mode-text-map'.
(image-mode): Move graceful error-handling code from
`image-minor-mode' to here. On errors call `image-mode-as-text'.
(image-minor-mode): Remove all image-handling code.
Replace `image-mode-text-map' with `image-minor-mode-map'.
Check for `image-type' in mode-line format string.
(image-mode-maybe): Make obsolete with an alias to `image-mode'.
(image-mode-as-text): New function with most code from
`image-mode-maybe'.
(image-toggle-display-text): Move code that removes image
properties from `image-toggle-display' to here.
(image-toggle-display-image): New function with code that adds
image properties copied from `image-toggle-display'.
(image-toggle-display): Remove most code with leaving only code
that toggles between `image-mode-as-text' and `image-mode'.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Fri, 04 Dec 2009 21:43:07 +0000 |
parents | 31424b91531a |
children | c1162f7a37aa |
line wrap: on
line diff
--- a/etc/NEWS Fri Dec 04 19:27:42 2009 +0000 +++ b/etc/NEWS Fri Dec 04 21:43:07 2009 +0000 @@ -351,6 +351,17 @@ ** Support for generating Emacs 18 compatible bytecode (by setting the variable `byte-compile-compatibility') has been removed. +** In image-mode.el `image-mode-maybe' is obsolete. Instead, you can +either use `image-mode' that displays an image file as the actual image +inititally, or `image-mode-as-text' when you want to display an image file +as text inititally. `image-mode-as-text' is a combination of a non-image +mode from `auto-mode-alist' (or Fundamental mode) and `image-minor-mode'. +`image-minor-mode' provides `C-c C-c' key binding to toggle image display. +`image-toggle-display-text' removes image properties. +`image-toggle-display-image' adds image properties. +`image-toggle-display' toggles between `image-mode-as-text' and +`image-mode'. + * Lisp changes in Emacs 23.2