diff options
| author | Karl Heuer | 1997-04-10 21:15:53 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-04-10 21:15:53 +0000 |
| commit | 8bb6ca14678335cde9f866c8194ece097f276612 (patch) | |
| tree | bc97214d0c35050bc06a998dc3f2b0dc65f1d8d9 /src | |
| parent | 5e33ba39fe60ea21cdca114fb6b10865814128ba (diff) | |
| download | emacs-8bb6ca14678335cde9f866c8194ece097f276612.tar.gz emacs-8bb6ca14678335cde9f866c8194ece097f276612.zip | |
(display_text_line): Don't use Lisp_Object as integer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index cabdf70f2ab..e777336e6c7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2867,7 +2867,8 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 2867 | /* Truncate the prompt a little before the | 2867 | /* Truncate the prompt a little before the |
| 2868 | margin, so user input can at least start | 2868 | margin, so user input can at least start |
| 2869 | on the first line. */ | 2869 | on the first line. */ |
| 2870 | w->width > 10 ? w->width - 4 : -1) | 2870 | (XFASTINT (w->width) > 10 |
| 2871 | ? XFASTINT (w->width) - 4 : -1)) | ||
| 2871 | - hpos); | 2872 | - hpos); |
| 2872 | hpos += minibuf_prompt_width; | 2873 | hpos += minibuf_prompt_width; |
| 2873 | taboffset -= minibuf_prompt_width; | 2874 | taboffset -= minibuf_prompt_width; |
| @@ -3285,7 +3286,7 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 3285 | if (p1 >= leftmargin) | 3286 | if (p1 >= leftmargin) |
| 3286 | *p1 = (fix_glyph | 3287 | *p1 = (fix_glyph |
| 3287 | (f, (dp && INTEGERP (DISP_ESCAPE_GLYPH (dp)) | 3288 | (f, (dp && INTEGERP (DISP_ESCAPE_GLYPH (dp)) |
| 3288 | && GLYPH_CHAR_VALID_P (DISP_ESCAPE_GLYPH (dp)) | 3289 | && GLYPH_CHAR_VALID_P (XINT (DISP_ESCAPE_GLYPH (dp))) |
| 3289 | ? XINT (DISP_ESCAPE_GLYPH (dp)) : '\\'), | 3290 | ? XINT (DISP_ESCAPE_GLYPH (dp)) : '\\'), |
| 3290 | current_face) | 3291 | current_face) |
| 3291 | | rev_dir_bit); | 3292 | | rev_dir_bit); |
| @@ -3533,7 +3534,7 @@ display_text_line (w, start, vpos, hpos, taboffset, ovstr_done) | |||
| 3533 | } | 3534 | } |
| 3534 | else if (!FRAME_HAS_VERTICAL_SCROLL_BARS (f)) | 3535 | else if (!FRAME_HAS_VERTICAL_SCROLL_BARS (f)) |
| 3535 | *p1++ = (dp && INTEGERP (DISP_BORDER_GLYPH (dp)) | 3536 | *p1++ = (dp && INTEGERP (DISP_BORDER_GLYPH (dp)) |
| 3536 | ? DISP_BORDER_GLYPH (dp) | 3537 | ? XINT (DISP_BORDER_GLYPH (dp)) |
| 3537 | : '|'); | 3538 | : '|'); |
| 3538 | } | 3539 | } |
| 3539 | desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos], | 3540 | desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos], |