Mercurial > emacs
comparison src/xdisp.c @ 56906:8f5fa45d791e
Fix line breaks to follow Emacs conventions.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 03 Sep 2004 20:42:04 +0000 |
parents | 8beec197715e |
children | 9a6afeebca32 |
comparison
equal
deleted
inserted
replaced
56905:661d52db56de | 56906:8f5fa45d791e |
---|---|
11103 | 11103 |
11104 /* Compute new window start. */ | 11104 /* Compute new window start. */ |
11105 start_display (&it, w, startp); | 11105 start_display (&it, w, startp); |
11106 | 11106 |
11107 if (scroll_conservatively) | 11107 if (scroll_conservatively) |
11108 amount_to_scroll = | 11108 amount_to_scroll |
11109 max (dy, FRAME_LINE_HEIGHT (f) * max (scroll_step, temp_scroll_step)); | 11109 = max (dy, FRAME_LINE_HEIGHT (f) * max (scroll_step, temp_scroll_step)); |
11110 else if (scroll_step || temp_scroll_step) | 11110 else if (scroll_step || temp_scroll_step) |
11111 amount_to_scroll = scroll_max; | 11111 amount_to_scroll = scroll_max; |
11112 else | 11112 else |
11113 { | 11113 { |
11114 aggressive = current_buffer->scroll_down_aggressively; | 11114 aggressive = current_buffer->scroll_down_aggressively; |
11383 scroll_p = 1; | 11383 scroll_p = 1; |
11384 } | 11384 } |
11385 else if (PT < XFASTINT (w->last_point)) | 11385 else if (PT < XFASTINT (w->last_point)) |
11386 { | 11386 { |
11387 /* Cursor has to be moved backward. Note that PT >= | 11387 /* Cursor has to be moved backward. Note that PT >= |
11388 CHARPOS (startp) because of the outer | 11388 CHARPOS (startp) because of the outer if-statement. */ |
11389 if-statement. */ | |
11390 while (!row->mode_line_p | 11389 while (!row->mode_line_p |
11391 && (MATRIX_ROW_START_CHARPOS (row) > PT | 11390 && (MATRIX_ROW_START_CHARPOS (row) > PT |
11392 || (MATRIX_ROW_START_CHARPOS (row) == PT | 11391 || (MATRIX_ROW_START_CHARPOS (row) == PT |
11393 && MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P (row))) | 11392 && MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P (row))) |
11394 && (row->y > top_scroll_margin | 11393 && (row->y > top_scroll_margin |
11896 /* Don't use try_window_reusing_current_matrix in this case | 11895 /* Don't use try_window_reusing_current_matrix in this case |
11897 because a window scroll function can have changed the | 11896 because a window scroll function can have changed the |
11898 buffer. */ | 11897 buffer. */ |
11899 || !NILP (Vwindow_scroll_functions) | 11898 || !NILP (Vwindow_scroll_functions) |
11900 || MINI_WINDOW_P (w) | 11899 || MINI_WINDOW_P (w) |
11901 || !(used_current_matrix_p = | 11900 || !(used_current_matrix_p |
11902 try_window_reusing_current_matrix (w))) | 11901 = try_window_reusing_current_matrix (w))) |
11903 { | 11902 { |
11904 IF_DEBUG (debug_method_add (w, "1")); | 11903 IF_DEBUG (debug_method_add (w, "1")); |
11905 try_window (window, startp); | 11904 try_window (window, startp); |
11906 } | 11905 } |
11907 | 11906 |
12026 /* Don't use try_window_reusing_current_matrix in this case | 12025 /* Don't use try_window_reusing_current_matrix in this case |
12027 because it can have changed the buffer. */ | 12026 because it can have changed the buffer. */ |
12028 || !NILP (Vwindow_scroll_functions) | 12027 || !NILP (Vwindow_scroll_functions) |
12029 || !just_this_one_p | 12028 || !just_this_one_p |
12030 || MINI_WINDOW_P (w) | 12029 || MINI_WINDOW_P (w) |
12031 || !(used_current_matrix_p = | 12030 || !(used_current_matrix_p |
12032 try_window_reusing_current_matrix (w))) | 12031 = try_window_reusing_current_matrix (w))) |
12033 try_window (window, startp); | 12032 try_window (window, startp); |
12034 | 12033 |
12035 /* If new fonts have been loaded (due to fontsets), give up. We | 12034 /* If new fonts have been loaded (due to fontsets), give up. We |
12036 have to start a new redisplay since we need to re-adjust glyph | 12035 have to start a new redisplay since we need to re-adjust glyph |
12037 matrices. */ | 12036 matrices. */ |
15804 set_buffer_internal_1 (XBUFFER (w->buffer)); | 15803 set_buffer_internal_1 (XBUFFER (w->buffer)); |
15805 } | 15804 } |
15806 | 15805 |
15807 if (NILP (format) || EQ (format, Qt)) | 15806 if (NILP (format) || EQ (format, Qt)) |
15808 { | 15807 { |
15809 face_id = NILP (format) | 15808 face_id = (NILP (format) |
15810 ? CURRENT_MODE_LINE_FACE_ID (w) : | 15809 ? CURRENT_MODE_LINE_FACE_ID (w) |
15811 HEADER_LINE_FACE_ID; | 15810 : HEADER_LINE_FACE_ID); |
15812 format = NILP (format) | 15811 format = (NILP (format) |
15813 ? current_buffer->mode_line_format | 15812 ? current_buffer->mode_line_format |
15814 : current_buffer->header_line_format; | 15813 : current_buffer->header_line_format); |
15815 } | 15814 } |
15816 | 15815 |
15817 init_iterator (&it, w, -1, -1, NULL, face_id); | 15816 init_iterator (&it, w, -1, -1, NULL, face_id); |
15818 | 15817 |
15819 if (NILP (no_props)) | 15818 if (NILP (no_props)) |
15820 { | 15819 { |
15821 mode_line_string_face = | 15820 mode_line_string_face |
15822 (face_id == MODE_LINE_FACE_ID ? Qmode_line : | 15821 = (face_id == MODE_LINE_FACE_ID ? Qmode_line |
15823 face_id == MODE_LINE_INACTIVE_FACE_ID ? Qmode_line_inactive : | 15822 : face_id == MODE_LINE_INACTIVE_FACE_ID ? Qmode_line_inactive |
15824 face_id == HEADER_LINE_FACE_ID ? Qheader_line : Qnil); | 15823 : face_id == HEADER_LINE_FACE_ID ? Qheader_line : Qnil); |
15825 | 15824 |
15826 mode_line_string_face_prop = | 15825 mode_line_string_face_prop |
15827 NILP (mode_line_string_face) ? Qnil : | 15826 = (NILP (mode_line_string_face) ? Qnil |
15828 Fcons (Qface, Fcons (mode_line_string_face, Qnil)); | 15827 : Fcons (Qface, Fcons (mode_line_string_face, Qnil))); |
15829 | 15828 |
15830 /* We need a dummy last element in mode_line_string_list to | 15829 /* We need a dummy last element in mode_line_string_list to |
15831 indicate we are building the propertized mode-line string. | 15830 indicate we are building the propertized mode-line string. |
15832 Using mode_line_string_face_prop here GC protects it. */ | 15831 Using mode_line_string_face_prop here GC protects it. */ |
15833 mode_line_string_list = | 15832 mode_line_string_list |
15834 Fcons (mode_line_string_face_prop, Qnil); | 15833 = Fcons (mode_line_string_face_prop, Qnil); |
15835 frame_title_ptr = NULL; | 15834 frame_title_ptr = NULL; |
15836 } | 15835 } |
15837 else | 15836 else |
15838 { | 15837 { |
15839 mode_line_string_face_prop = Qnil; | 15838 mode_line_string_face_prop = Qnil; |