diff options
| author | Karoly Lorentey | 2005-12-11 22:42:40 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-12-11 22:42:40 +0000 |
| commit | be3d2d66d2dff979604134c5dc5fb506ded4aa54 (patch) | |
| tree | 683fc7324392d0023e995b593a627c294375aba1 /src/indent.c | |
| parent | 16986fcfcca94e88e620c38775e15f758aa44935 (diff) | |
| parent | ac8fcf0f17ab5d81f3b30db5599337d000ad12d9 (diff) | |
| download | emacs-be3d2d66d2dff979604134c5dc5fb506ded4aa54.tar.gz emacs-be3d2d66d2dff979604134c5dc5fb506ded4aa54.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-667
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-668
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-669
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-670
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-157
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-158
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-159
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-160
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-161
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-162
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-163
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-164
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-165
Update from CVS: texi/message.texi: Fix default values.
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-166
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-167
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-168
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-448
Diffstat (limited to 'src/indent.c')
| -rw-r--r-- | src/indent.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/indent.c b/src/indent.c index 68544e8059d..6ca15c67345 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2076,7 +2076,7 @@ whether or not it is currently displayed in some window. */) | |||
| 2076 | { | 2076 | { |
| 2077 | int it_start; | 2077 | int it_start; |
| 2078 | int oselective; | 2078 | int oselective; |
| 2079 | int start_on_image_p; | 2079 | int start_on_image_or_stretch_p; |
| 2080 | 2080 | ||
| 2081 | SET_TEXT_POS (pt, PT, PT_BYTE); | 2081 | SET_TEXT_POS (pt, PT, PT_BYTE); |
| 2082 | start_display (&it, w, pt); | 2082 | start_display (&it, w, pt); |
| @@ -2088,7 +2088,8 @@ whether or not it is currently displayed in some window. */) | |||
| 2088 | while the end position is really at some X > 0, the same X that | 2088 | while the end position is really at some X > 0, the same X that |
| 2089 | PT had. */ | 2089 | PT had. */ |
| 2090 | it_start = IT_CHARPOS (it); | 2090 | it_start = IT_CHARPOS (it); |
| 2091 | start_on_image_p = (it.method == GET_FROM_IMAGE); | 2091 | start_on_image_or_stretch_p = (it.method == GET_FROM_IMAGE |
| 2092 | || it.method == GET_FROM_STRETCH); | ||
| 2092 | reseat_at_previous_visible_line_start (&it); | 2093 | reseat_at_previous_visible_line_start (&it); |
| 2093 | it.current_x = it.hpos = 0; | 2094 | it.current_x = it.hpos = 0; |
| 2094 | /* Temporarily disable selective display so we don't move too far */ | 2095 | /* Temporarily disable selective display so we don't move too far */ |
| @@ -2099,9 +2100,10 @@ whether or not it is currently displayed in some window. */) | |||
| 2099 | 2100 | ||
| 2100 | /* Move back if we got too far. This may happen if | 2101 | /* Move back if we got too far. This may happen if |
| 2101 | truncate-lines is on and PT is beyond right margin. | 2102 | truncate-lines is on and PT is beyond right margin. |
| 2102 | It may also happen if it_start is on an image -- | 2103 | It may also happen if it_start is on an image or a stretch |
| 2103 | in that case, don't go back. */ | 2104 | glyph -- in that case, don't go back. */ |
| 2104 | if (IT_CHARPOS (it) > it_start && XINT (lines) > 0 && !start_on_image_p) | 2105 | if (IT_CHARPOS (it) > it_start && XINT (lines) > 0 |
| 2106 | && !start_on_image_or_stretch_p) | ||
| 2105 | move_it_by_lines (&it, -1, 0); | 2107 | move_it_by_lines (&it, -1, 0); |
| 2106 | 2108 | ||
| 2107 | it.vpos = 0; | 2109 | it.vpos = 0; |