comparison lisp/ChangeLog @ 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 53d1b718f76a
children c1162f7a37aa
comparison
equal deleted inserted replaced
106408:53d1b718f76a 106409:87bc434475d4
1 2009-12-04 Juri Linkov <juri@jurta.org>
2
3 Change roles of modes and functions in image-mode.el (Bug#5062).
4
5 * image-mode.el: Replace `image-mode-maybe' with `image-mode'
6 in `auto-mode-alist'.
7 (image-mode-previous-major-mode): New variable.
8 (image-minor-mode-map): Rename from `image-mode-text-map'.
9 (image-mode): Move graceful error-handling code from
10 `image-minor-mode' to here. On errors call `image-mode-as-text'.
11 (image-minor-mode): Remove all image-handling code.
12 Replace `image-mode-text-map' with `image-minor-mode-map'.
13 Check for `image-type' in mode-line format string.
14 (image-mode-maybe): Make obsolete with an alias to `image-mode'.
15 (image-mode-as-text): New function with most code from
16 `image-mode-maybe'.
17 (image-toggle-display-text): Move code that removes image
18 properties from `image-toggle-display' to here.
19 (image-toggle-display-image): New function with code that adds
20 image properties copied from `image-toggle-display'.
21 (image-toggle-display): Remove most code with leaving only code
22 that toggles between `image-mode-as-text' and `image-mode'.
23
1 2009-12-04 Ulf Jasper <ulf.jasper@web.de> 24 2009-12-04 Ulf Jasper <ulf.jasper@web.de>
2 25
3 * net/newst-treeview.el 26 * net/newst-treeview.el
4 (newsticker--treeview-list-highlight-start): Restored call to 27 (newsticker--treeview-list-highlight-start): Restored call to
5 save-excursion: Selected item was stuck. 28 save-excursion: Selected item was stuck.