diff options
| author | Joakim Verona | 2010-10-18 22:05:07 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-10-18 22:05:07 +0200 |
| commit | 13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (patch) | |
| tree | 723f254768f9e503504ab4c8b68801f80a56591a /src/window.c | |
| parent | 35f4b80a934b299b3b18e62f5db44f64c240e65b (diff) | |
| parent | e48eb34332dc91de823314090451459ba2ffacbf (diff) | |
| download | emacs-13cfe8df462ab8da9f0028e16cc84dcaceaca3d1.tar.gz emacs-13cfe8df462ab8da9f0028e16cc84dcaceaca3d1.zip | |
merge from upstream
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/window.c b/src/window.c index 0ec72168ace..103324e424e 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -313,7 +313,7 @@ display row, and VPOS is the row number (0-based) containing POS. */) | |||
| 313 | (Lisp_Object pos, Lisp_Object window, Lisp_Object partially) | 313 | (Lisp_Object pos, Lisp_Object window, Lisp_Object partially) |
| 314 | { | 314 | { |
| 315 | register struct window *w; | 315 | register struct window *w; |
| 316 | register int posint; | 316 | register EMACS_INT posint; |
| 317 | register struct buffer *buf; | 317 | register struct buffer *buf; |
| 318 | struct text_pos top; | 318 | struct text_pos top; |
| 319 | Lisp_Object in_window = Qnil; | 319 | Lisp_Object in_window = Qnil; |
| @@ -2502,7 +2502,7 @@ window-start value is reasonable when this function is called. */) | |||
| 2502 | (Lisp_Object window) | 2502 | (Lisp_Object window) |
| 2503 | { | 2503 | { |
| 2504 | struct window *w; | 2504 | struct window *w; |
| 2505 | int startpos; | 2505 | EMACS_INT startpos; |
| 2506 | int top, new_top; | 2506 | int top, new_top; |
| 2507 | 2507 | ||
| 2508 | if (NILP (window)) | 2508 | if (NILP (window)) |
| @@ -3631,7 +3631,7 @@ selected window before each command. */) | |||
| 3631 | redisplay_window has altered point after scrolling, | 3631 | redisplay_window has altered point after scrolling, |
| 3632 | because it makes the change only in the window. */ | 3632 | because it makes the change only in the window. */ |
| 3633 | { | 3633 | { |
| 3634 | register int new_point = marker_position (w->pointm); | 3634 | register EMACS_INT new_point = marker_position (w->pointm); |
| 3635 | if (new_point < BEGV) | 3635 | if (new_point < BEGV) |
| 3636 | SET_PT (BEGV); | 3636 | SET_PT (BEGV); |
| 3637 | else if (new_point > ZV) | 3637 | else if (new_point > ZV) |
| @@ -4851,7 +4851,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 4851 | /* Maybe modify window start instead of scrolling. */ | 4851 | /* Maybe modify window start instead of scrolling. */ |
| 4852 | if (rbot > 0 || w->vscroll < 0) | 4852 | if (rbot > 0 || w->vscroll < 0) |
| 4853 | { | 4853 | { |
| 4854 | int spos; | 4854 | EMACS_INT spos; |
| 4855 | 4855 | ||
| 4856 | Fset_window_vscroll (window, make_number (0), Qt); | 4856 | Fset_window_vscroll (window, make_number (0), Qt); |
| 4857 | /* If there are other text lines above the current row, | 4857 | /* If there are other text lines above the current row, |
| @@ -4905,7 +4905,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 4905 | start_display (&it, w, start); | 4905 | start_display (&it, w, start); |
| 4906 | if (whole) | 4906 | if (whole) |
| 4907 | { | 4907 | { |
| 4908 | int start_pos = IT_CHARPOS (it); | 4908 | EMACS_INT start_pos = IT_CHARPOS (it); |
| 4909 | int dy = WINDOW_FRAME_LINE_HEIGHT (w); | 4909 | int dy = WINDOW_FRAME_LINE_HEIGHT (w); |
| 4910 | dy = max ((window_box_height (w) | 4910 | dy = max ((window_box_height (w) |
| 4911 | - next_screen_context_lines * dy), | 4911 | - next_screen_context_lines * dy), |
| @@ -4984,8 +4984,8 @@ window_scroll_pixel_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 4984 | 4984 | ||
| 4985 | if (! vscrolled) | 4985 | if (! vscrolled) |
| 4986 | { | 4986 | { |
| 4987 | int pos = IT_CHARPOS (it); | 4987 | EMACS_INT pos = IT_CHARPOS (it); |
| 4988 | int bytepos; | 4988 | EMACS_INT bytepos; |
| 4989 | 4989 | ||
| 4990 | /* If in the middle of a multi-glyph character move forward to | 4990 | /* If in the middle of a multi-glyph character move forward to |
| 4991 | the next character. */ | 4991 | the next character. */ |
| @@ -5055,7 +5055,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, int whole, int noerror) | |||
| 5055 | } | 5055 | } |
| 5056 | else if (n < 0) | 5056 | else if (n < 0) |
| 5057 | { | 5057 | { |
| 5058 | int charpos, bytepos; | 5058 | EMACS_INT charpos, bytepos; |
| 5059 | int partial_p; | 5059 | int partial_p; |
| 5060 | 5060 | ||
| 5061 | /* Save our position, for the | 5061 | /* Save our position, for the |
| @@ -5125,13 +5125,13 @@ static void | |||
| 5125 | window_scroll_line_based (Lisp_Object window, int n, int whole, int noerror) | 5125 | window_scroll_line_based (Lisp_Object window, int n, int whole, int noerror) |
| 5126 | { | 5126 | { |
| 5127 | register struct window *w = XWINDOW (window); | 5127 | register struct window *w = XWINDOW (window); |
| 5128 | register int opoint = PT, opoint_byte = PT_BYTE; | 5128 | register EMACS_INT opoint = PT, opoint_byte = PT_BYTE; |
| 5129 | register int pos, pos_byte; | 5129 | register EMACS_INT pos, pos_byte; |
| 5130 | register int ht = window_internal_height (w); | 5130 | register int ht = window_internal_height (w); |
| 5131 | register Lisp_Object tem; | 5131 | register Lisp_Object tem; |
| 5132 | int lose; | 5132 | int lose; |
| 5133 | Lisp_Object bolp; | 5133 | Lisp_Object bolp; |
| 5134 | int startpos; | 5134 | EMACS_INT startpos; |
| 5135 | Lisp_Object original_pos = Qnil; | 5135 | Lisp_Object original_pos = Qnil; |
| 5136 | 5136 | ||
| 5137 | /* If scrolling screen-fulls, compute the number of lines to | 5137 | /* If scrolling screen-fulls, compute the number of lines to |
| @@ -5576,7 +5576,7 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5576 | struct buffer *buf = XBUFFER (w->buffer); | 5576 | struct buffer *buf = XBUFFER (w->buffer); |
| 5577 | struct buffer *obuf = current_buffer; | 5577 | struct buffer *obuf = current_buffer; |
| 5578 | int center_p = 0; | 5578 | int center_p = 0; |
| 5579 | int charpos, bytepos; | 5579 | EMACS_INT charpos, bytepos; |
| 5580 | int iarg; | 5580 | int iarg; |
| 5581 | int this_scroll_margin; | 5581 | int this_scroll_margin; |
| 5582 | 5582 | ||
| @@ -5917,7 +5917,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 5917 | Lisp_Object new_current_buffer; | 5917 | Lisp_Object new_current_buffer; |
| 5918 | Lisp_Object frame; | 5918 | Lisp_Object frame; |
| 5919 | FRAME_PTR f; | 5919 | FRAME_PTR f; |
| 5920 | int old_point = -1; | 5920 | EMACS_INT old_point = -1; |
| 5921 | 5921 | ||
| 5922 | CHECK_WINDOW_CONFIGURATION (configuration); | 5922 | CHECK_WINDOW_CONFIGURATION (configuration); |
| 5923 | 5923 | ||