aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorKim F. Storm2003-05-24 22:07:03 +0000
committerKim F. Storm2003-05-24 22:07:03 +0000
commit90022f5a3e142d08696bd4d73ac26c308aa762fd (patch)
tree9fabbb30a80273beb5fa8c0ebb1cd5325faa2dd9 /src/indent.c
parent03e4639645519fba65b1413339f741705bb79078 (diff)
downloademacs-90022f5a3e142d08696bd4d73ac26c308aa762fd.tar.gz
emacs-90022f5a3e142d08696bd4d73ac26c308aa762fd.zip
Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/indent.c b/src/indent.c
index 22039ebca6b..10831c2c941 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1159,18 +1159,18 @@ struct position val_compute_motion;
1159 1159
1160 window_width - 1 1160 window_width - 1
1161 - (has_vertical_scroll_bars 1161 - (has_vertical_scroll_bars
1162 ? FRAME_SCROLL_BAR_COLS (XFRAME (window->frame)) 1162 ? WINDOW_CONFIG_SCROLL_BAR_COLS (window)
1163 : (window_width + window_left != frame_width)) 1163 : (window_width + window_left != frame_cols))
1164 1164
1165 where 1165 where
1166 window_width is XFASTINT (w->width), 1166 window_width is XFASTINT (w->total_cols),
1167 window_left is XFASTINT (w->left), 1167 window_left is XFASTINT (w->left_col),
1168 has_vertical_scroll_bars is 1168 has_vertical_scroll_bars is
1169 FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (WINDOW_FRAME (window))) 1169 WINDOW_HAS_VERTICAL_SCROLL_BAR (window)
1170 and frame_width = FRAME_WIDTH (XFRAME (window->frame)) 1170 and frame_cols = FRAME_COLS (XFRAME (window->frame))
1171 1171
1172 Or you can let window_internal_width do this all for you, and write: 1172 Or you can let window_box_text_cols do this all for you, and write:
1173 window_internal_width (w) - 1 1173 window_box_text_cols (w) - 1
1174 1174
1175 The `-1' accounts for the continuation-line backslashes; the rest 1175 The `-1' accounts for the continuation-line backslashes; the rest
1176 accounts for window borders if the window is split horizontally, and 1176 accounts for window borders if the window is split horizontally, and
@@ -1366,7 +1366,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
1366 { 1366 {
1367 if (hscroll 1367 if (hscroll
1368 || (truncate_partial_width_windows 1368 || (truncate_partial_width_windows
1369 && width + 1 < FRAME_WIDTH (XFRAME (WINDOW_FRAME (win)))) 1369 && width + 1 < FRAME_COLS (XFRAME (WINDOW_FRAME (win))))
1370 || !NILP (current_buffer->truncate_lines)) 1370 || !NILP (current_buffer->truncate_lines))
1371 { 1371 {
1372 /* Truncating: skip to newline, unless we are already past 1372 /* Truncating: skip to newline, unless we are already past
@@ -1834,7 +1834,9 @@ vmotion (from, vtarget, w)
1834 register int from, vtarget; 1834 register int from, vtarget;
1835 struct window *w; 1835 struct window *w;
1836{ 1836{
1837 int width = window_internal_width (w) - 1; 1837 /* We don't need to make room for continuation marks (we have fringes now),
1838 so hould we really subtract 1 here if FRAME_WINDOW_P ? ++KFS */
1839 int width = window_box_text_cols (w) - 1;
1838 int hscroll = XINT (w->hscroll); 1840 int hscroll = XINT (w->hscroll);
1839 struct position pos; 1841 struct position pos;
1840 /* vpos is cumulative vertical position, changed as from is changed */ 1842 /* vpos is cumulative vertical position, changed as from is changed */