diff options
| author | Ken Raeburn | 2000-04-01 12:59:53 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-04-01 12:59:53 +0000 |
| commit | 6fc556fdb41c112247d113d46cc215e73c9e2b3c (patch) | |
| tree | a20ad3402c54ab221bcb86ca383107f584e237d6 /src/ChangeLog | |
| parent | 3578db3c162c8a5b948ca7936bdaf596a83e49a4 (diff) | |
| download | emacs-6fc556fdb41c112247d113d46cc215e73c9e2b3c.tar.gz emacs-6fc556fdb41c112247d113d46cc215e73c9e2b3c.zip | |
Fix Lisp_Object/int type confusion revealed by making Lisp_Object a union type:
* xdisp.c (compute_string_pos): Fix order of arguments to
string_pos_nchars_ahead.
(handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
count arg to variable-arg routines like Frun_hook_with_args and Fformat.
(back_to_previous_visible_line_start, build_desired_tool_bar_string):
Pass Lisp_Object, not int, to fixed-arg routines like
Fget_char_property and Fmake_string.
(reconsider_clip_changes): Use XINT when comparing integer lisp
objects, or passing them as int arguments.
(mark_window_display_accurate, insert_left_trunc_glyphs, append_space,
extend_face_to_end_of_line): Use make_number when storing or passing
integer values as lisp objects.
(set_cursor_from_row, highlight_trailing_whitespace): Use INTEGERP,
not implicit test against zero, for glyph object.
(try_window_id): Don't use make_number when we want an int value.
* xfaces.c (xlfd_symbolic_value): Make last argument a Lisp_Object, to
be consistent with callers.
(Fbitmap_spec_p): Use XINT to get numeric value of height.
(lface_hash): Apply XFASTINT to lisp values before folding in.
* xfns.c (Fx_show_tip): Use make_number to get lisp objects to fill in window
width and height. Pass an int, not a lisp object, as first arg to Finsert.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d493cc7ae1..1bfc02e5d8b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -8,6 +8,32 @@ | |||
| 8 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. | 8 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. |
| 9 | (grow_mini_window): Fix typo getting int value of root->height. | 9 | (grow_mini_window): Fix typo getting int value of root->height. |
| 10 | 10 | ||
| 11 | * xdisp.c (compute_string_pos): Fix order of arguments to | ||
| 12 | string_pos_nchars_ahead. | ||
| 13 | (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as | ||
| 14 | count arg to variable-arg routines like Frun_hook_with_args and | ||
| 15 | Fformat. | ||
| 16 | (back_to_previous_visible_line_start, | ||
| 17 | build_desired_tool_bar_string): Pass Lisp_Object, not int, to | ||
| 18 | fixed-arg routines like Fget_char_property and Fmake_string. | ||
| 19 | (reconsider_clip_changes): Use XINT when comparing integer lisp | ||
| 20 | objects, or passing them as int arguments. | ||
| 21 | (mark_window_display_accurate, insert_left_trunc_glyphs, | ||
| 22 | append_space, extend_face_to_end_of_line): Use make_number when | ||
| 23 | storing or passing integer values as lisp objects. | ||
| 24 | (set_cursor_from_row, highlight_trailing_whitespace): Use | ||
| 25 | INTEGERP, not implicit test against zero, for glyph object. | ||
| 26 | (try_window_id): Don't use make_number when we want an int value. | ||
| 27 | |||
| 28 | * xfaces.c (xlfd_symbolic_value): Make last argument a | ||
| 29 | Lisp_Object, to be consistent with callers. | ||
| 30 | (Fbitmap_spec_p): Use XINT to get numeric value of height. | ||
| 31 | (lface_hash): Apply XFASTINT to lisp values before folding in. | ||
| 32 | |||
| 33 | * xfns.c (Fx_show_tip): Use make_number to get lisp objects to | ||
| 34 | fill in window width and height. Pass an int, not a lisp object, | ||
| 35 | as first arg to Finsert. | ||
| 36 | |||
| 11 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> | 37 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
| 12 | 38 | ||
| 13 | * xfaces.c (realize_basic_faces): Block input while realizing | 39 | * xfaces.c (realize_basic_faces): Block input while realizing |