diff options
| author | Paul Eggert | 2011-03-06 11:43:58 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 11:43:58 -0800 |
| commit | 367c19e58bd4ccf47dd0ce018002b2ae4e12f949 (patch) | |
| tree | 0a17d637c09053a92a564afaabb2c2ce106a85fd | |
| parent | 7831777b8a9e8d2f68bd17058359ea8849d66f70 (diff) | |
| download | emacs-367c19e58bd4ccf47dd0ce018002b2ae4e12f949.tar.gz emacs-367c19e58bd4ccf47dd0ce018002b2ae4e12f949.zip | |
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Add a FIXME comment, since the code still doesn't look right.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d0380e42e49..94ce2a9f6ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff. | ||
| 4 | Add a FIXME comment, since the code still doesn't look right. | ||
| 5 | |||
| 3 | current_column: Now returns EMACS_INT, fixing some iftc. | 6 | current_column: Now returns EMACS_INT, fixing some iftc. |
| 4 | * bytecode.c (Fbyte_code): Don't cast current_column () to int. | 7 | * bytecode.c (Fbyte_code): Don't cast current_column () to int. |
| 5 | * cmds.c (internal_self_insert): Likewise. | 8 | * cmds.c (internal_self_insert): Likewise. |
| @@ -10,6 +13,7 @@ | |||
| 10 | to int. | 13 | to int. |
| 11 | * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec): | 14 | * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec): |
| 12 | Likewise. | 15 | Likewise. |
| 16 | |||
| 13 | * cmds.c (internal_self_insert): Declare locals to be EMACS_INT, | 17 | * cmds.c (internal_self_insert): Declare locals to be EMACS_INT, |
| 14 | not int or double, if they might contain a column number. | 18 | not int or double, if they might contain a column number. |
| 15 | * indent.c (current_column, Findent_to, indented_beyond_p): | 19 | * indent.c (current_column, Findent_to, indented_beyond_p): |
diff --git a/src/xdisp.c b/src/xdisp.c index 44cb7130119..44a317b5785 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -22292,7 +22292,13 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym) | |||
| 22292 | if (metrics_upper.width >= metrics_lower.width) | 22292 | if (metrics_upper.width >= metrics_lower.width) |
| 22293 | lower_xoff = (width - metrics_lower.width) / 2; | 22293 | lower_xoff = (width - metrics_lower.width) / 2; |
| 22294 | else | 22294 | else |
| 22295 | upper_xoff = (width - metrics_upper.width) / 2; | 22295 | { |
| 22296 | /* FIXME: This code doesn't look right. It formerly was | ||
| 22297 | missing the "lower_xoff = 0;", which couldn't have | ||
| 22298 | been right since it left lower_xoff uninitialized. */ | ||
| 22299 | lower_xoff = 0; | ||
| 22300 | upper_xoff = (width - metrics_upper.width) / 2; | ||
| 22301 | } | ||
| 22296 | } | 22302 | } |
| 22297 | 22303 | ||
| 22298 | /* +5 is for horizontal bars of a box plus 1-pixel spaces at | 22304 | /* +5 is for horizontal bars of a box plus 1-pixel spaces at |