diff options
| author | Juri Linkov | 2009-12-04 21:43:07 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-12-04 21:43:07 +0000 |
| commit | 9b9debd1fbccfba419e7b6b66ae8e3df2c076674 (patch) | |
| tree | c6869158333c9f6171c6c3b62c06e29ccf39d5f4 /etc | |
| parent | 0c74a3010d0df673d26eeed71ebd11944140df85 (diff) | |
| download | emacs-9b9debd1fbccfba419e7b6b66ae8e3df2c076674.tar.gz emacs-9b9debd1fbccfba419e7b6b66ae8e3df2c076674.zip | |
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'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -351,6 +351,17 @@ be in use: | |||
| 351 | ** Support for generating Emacs 18 compatible bytecode (by setting | 351 | ** Support for generating Emacs 18 compatible bytecode (by setting |
| 352 | the variable `byte-compile-compatibility') has been removed. | 352 | the variable `byte-compile-compatibility') has been removed. |
| 353 | 353 | ||
| 354 | ** In image-mode.el `image-mode-maybe' is obsolete. Instead, you can | ||
| 355 | either use `image-mode' that displays an image file as the actual image | ||
| 356 | inititally, or `image-mode-as-text' when you want to display an image file | ||
| 357 | as text inititally. `image-mode-as-text' is a combination of a non-image | ||
| 358 | mode from `auto-mode-alist' (or Fundamental mode) and `image-minor-mode'. | ||
| 359 | `image-minor-mode' provides `C-c C-c' key binding to toggle image display. | ||
| 360 | `image-toggle-display-text' removes image properties. | ||
| 361 | `image-toggle-display-image' adds image properties. | ||
| 362 | `image-toggle-display' toggles between `image-mode-as-text' and | ||
| 363 | `image-mode'. | ||
| 364 | |||
| 354 | 365 | ||
| 355 | * Lisp changes in Emacs 23.2 | 366 | * Lisp changes in Emacs 23.2 |
| 356 | 367 | ||