Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
367c19e5
Commit
367c19e5
authored
Mar 06, 2011
by
Paul Eggert
Browse files
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Add a FIXME comment, since the code still doesn't look right.
parent
7831777b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/xdisp.c
src/xdisp.c
+7
-1
No files found.
src/ChangeLog
View file @
367c19e5
2011-03-06 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Add a FIXME comment, since the code still doesn't look right.
current_column: Now returns EMACS_INT, fixing some iftc.
* bytecode.c (Fbyte_code): Don't cast current_column () to int.
* cmds.c (internal_self_insert): Likewise.
...
...
@@ -10,6 +13,7 @@
to int.
* xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
Likewise.
* cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
not int or double, if they might contain a column number.
* indent.c (current_column, Findent_to, indented_beyond_p):
src/xdisp.c
View file @
367c19e5
...
...
@@ -22292,7 +22292,13 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
if (metrics_upper.width >= metrics_lower.width)
lower_xoff = (width - metrics_lower.width) / 2;
else
upper_xoff = (width - metrics_upper.width) / 2;
{
/* FIXME: This code doesn't look right. It formerly was
missing the "lower_xoff = 0;", which couldn't have
been right since it left lower_xoff uninitialized. */
lower_xoff = 0;
upper_xoff = (width - metrics_upper.width) / 2;
}
}
/* +5 is for horizontal bars of a box plus 1-pixel spaces at
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment