diff options
| author | Paul Eggert | 2012-08-19 12:22:41 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-19 12:22:41 -0700 |
| commit | 32bd425074e32184d3d4d9f985fd1a60814d78b2 (patch) | |
| tree | 5977abec524b84fda9932c0bb9813c5a5034139d /src | |
| parent | 7cef3569a3d872ea5be07a529b68910bf1d8b790 (diff) | |
| download | emacs-32bd425074e32184d3d4d9f985fd1a60814d78b2.tar.gz emacs-32bd425074e32184d3d4d9f985fd1a60814d78b2.zip | |
* xdisp.c (handle_invisible_prop): Make it a bit faster
and avoid a gcc -Wmaybe-uninitialized diagnostic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 63b968c8bb5..7f15a1a7921 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * xdisp.c (handle_invisible_prop): Make it a bit faster | ||
| 4 | and avoid a gcc -Wmaybe-uninitialized diagnostic. | ||
| 5 | |||
| 1 | 2012-08-19 Chong Yidong <cyd@gnu.org> | 6 | 2012-08-19 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (handle_invisible_prop): Fix ellipses at overlay string | 8 | * xdisp.c (handle_invisible_prop): Fix ellipses at overlay string |
diff --git a/src/xdisp.c b/src/xdisp.c index aab643f9fe8..e41783d03c1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4094,7 +4094,7 @@ handle_invisible_prop (struct it *it) | |||
| 4094 | 4094 | ||
| 4095 | /* Get the position at which the next visible text can be | 4095 | /* Get the position at which the next visible text can be |
| 4096 | found in IT->string, if any. */ | 4096 | found in IT->string, if any. */ |
| 4097 | len = SCHARS (it->string); | 4097 | endpos = len = SCHARS (it->string); |
| 4098 | XSETINT (limit, len); | 4098 | XSETINT (limit, len); |
| 4099 | do | 4099 | do |
| 4100 | { | 4100 | { |
| @@ -4109,12 +4109,12 @@ handle_invisible_prop (struct it *it) | |||
| 4109 | display_ellipsis_p = 1; | 4109 | display_ellipsis_p = 1; |
| 4110 | } | 4110 | } |
| 4111 | } | 4111 | } |
| 4112 | while (invis_p && INTEGERP (end_charpos) && endpos < len); | 4112 | while (invis_p && endpos < len); |
| 4113 | 4113 | ||
| 4114 | if (display_ellipsis_p) | 4114 | if (display_ellipsis_p) |
| 4115 | it->ellipsis_p = 1; | 4115 | it->ellipsis_p = 1; |
| 4116 | 4116 | ||
| 4117 | if (INTEGERP (end_charpos) && endpos < len) | 4117 | if (endpos < len) |
| 4118 | { | 4118 | { |
| 4119 | /* Text at END_CHARPOS is visible. Move IT there. */ | 4119 | /* Text at END_CHARPOS is visible. Move IT there. */ |
| 4120 | struct text_pos old; | 4120 | struct text_pos old; |