aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2004-09-03 20:43:38 +0000
committerRichard M. Stallman2004-09-03 20:43:38 +0000
commit70567d1c1806712039697abd19ccd39eabbefc62 (patch)
tree908ae0714f1b7f06a54ed209ed8261b786b7a20c /src
parentd85519bb21a368ca9d4be6a62b9197b898dec2be (diff)
downloademacs-70567d1c1806712039697abd19ccd39eabbefc62.tar.gz
emacs-70567d1c1806712039697abd19ccd39eabbefc62.zip
Fix line breaks to follow Emacs conventions.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index ad521e340ee..409d32449e5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11105,8 +11105,8 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
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
@@ -11385,8 +11385,7 @@ try_cursor_movement (window, startp, scroll_step)
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
@@ -11898,8 +11897,8 @@ redisplay_window (window, just_this_one_p)
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);
@@ -12028,8 +12027,8 @@ redisplay_window (window, just_this_one_p)
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
@@ -15694,7 +15693,8 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky)
15694 The mode_line_string_face face property is always added to the string. 15693 The mode_line_string_face face property is always added to the string.
15695 */ 15694 */
15696 15695
15697static int store_mode_line_string (string, lisp_string, copy_string, field_width, precision, props) 15696static int
15697store_mode_line_string (string, lisp_string, copy_string, field_width, precision, props)
15698 char *string; 15698 char *string;
15699 Lisp_Object lisp_string; 15699 Lisp_Object lisp_string;
15700 int copy_string; 15700 int copy_string;
@@ -15806,32 +15806,32 @@ If third optional arg NO-PROPS is non-nil, string is not propertized. */)
15806 15806
15807 if (NILP (format) || EQ (format, Qt)) 15807 if (NILP (format) || EQ (format, Qt))
15808 { 15808 {
15809 face_id = NILP (format) 15809 face_id = (NILP (format)
15810 ? CURRENT_MODE_LINE_FACE_ID (w) : 15810 ? CURRENT_MODE_LINE_FACE_ID (w)
15811 HEADER_LINE_FACE_ID; 15811 : HEADER_LINE_FACE_ID);
15812 format = NILP (format) 15812 format = (NILP (format)
15813 ? current_buffer->mode_line_format 15813 ? current_buffer->mode_line_format
15814 : current_buffer->header_line_format; 15814 : current_buffer->header_line_format);
15815 } 15815 }
15816 15816
15817 init_iterator (&it, w, -1, -1, NULL, face_id); 15817 init_iterator (&it, w, -1, -1, NULL, face_id);
15818 15818
15819 if (NILP (no_props)) 15819 if (NILP (no_props))
15820 { 15820 {
15821 mode_line_string_face = 15821 mode_line_string_face
15822 (face_id == MODE_LINE_FACE_ID ? Qmode_line : 15822 = (face_id == MODE_LINE_FACE_ID ? Qmode_line
15823 face_id == MODE_LINE_INACTIVE_FACE_ID ? Qmode_line_inactive : 15823 : face_id == MODE_LINE_INACTIVE_FACE_ID ? Qmode_line_inactive
15824 face_id == HEADER_LINE_FACE_ID ? Qheader_line : Qnil); 15824 : face_id == HEADER_LINE_FACE_ID ? Qheader_line : Qnil);
15825 15825
15826 mode_line_string_face_prop = 15826 mode_line_string_face_prop
15827 NILP (mode_line_string_face) ? Qnil : 15827 = (NILP (mode_line_string_face) ? Qnil
15828 Fcons (Qface, Fcons (mode_line_string_face, Qnil)); 15828 : Fcons (Qface, Fcons (mode_line_string_face, Qnil)));
15829 15829
15830 /* We need a dummy last element in mode_line_string_list to 15830 /* We need a dummy last element in mode_line_string_list to
15831 indicate we are building the propertized mode-line string. 15831 indicate we are building the propertized mode-line string.
15832 Using mode_line_string_face_prop here GC protects it. */ 15832 Using mode_line_string_face_prop here GC protects it. */
15833 mode_line_string_list = 15833 mode_line_string_list
15834 Fcons (mode_line_string_face_prop, Qnil); 15834 = Fcons (mode_line_string_face_prop, Qnil);
15835 frame_title_ptr = NULL; 15835 frame_title_ptr = NULL;
15836 } 15836 }
15837 else 15837 else