comparison src/window.c @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents cc15677e0335
children a300bb07d72d
comparison
equal deleted inserted replaced
372:49e1ed2d7ed8 373:6240c7796c7a
1631 struct window *w = decode_window (window); 1631 struct window *w = decode_window (window);
1632 1632
1633 CHECK_INT_COERCE_MARKER (pos); 1633 CHECK_INT_COERCE_MARKER (pos);
1634 set_marker_restricted (w->start[CURRENT_DISP], pos, w->buffer); 1634 set_marker_restricted (w->start[CURRENT_DISP], pos, w->buffer);
1635 /* this is not right, but much easier than doing what is right. */ 1635 /* this is not right, but much easier than doing what is right. */
1636 w->start_at_line_beg = 0; 1636 /* w->start_at_line_beg = 0; */
1637 /* WTF is the above supposed to mean? GE */
1638 w->start_at_line_beg = beginning_of_line_p (XBUFFER (w->buffer), XINT (pos));
1637 if (NILP (noforce)) 1639 if (NILP (noforce))
1638 w->force_start = 1; 1640 w->force_start = 1;
1639 w->redo_modeline = 1; 1641 w->redo_modeline = 1;
1640 SET_LAST_MODIFIED (w, 0); 1642 SET_LAST_MODIFIED (w, 0);
1641 SET_LAST_FACECHANGE (w); 1643 SET_LAST_FACECHANGE (w);
3161 buffer); 3163 buffer);
3162 set_marker_restricted (w->start[CURRENT_DISP], 3164 set_marker_restricted (w->start[CURRENT_DISP],
3163 make_int (XBUFFER (buffer)->last_window_start), 3165 make_int (XBUFFER (buffer)->last_window_start),
3164 buffer); 3166 buffer);
3165 Fset_marker (w->sb_point, w->start[CURRENT_DISP], buffer); 3167 Fset_marker (w->sb_point, w->start[CURRENT_DISP], buffer);
3166 w->start_at_line_beg = 0; 3168 /* set start_at_line_beg correctly. GE */
3169 w->start_at_line_beg = beginning_of_line_p (XBUFFER (buffer),
3170 XBUFFER (buffer)->last_window_start);
3167 w->force_start = 0; /* Lucid fix */ 3171 w->force_start = 0; /* Lucid fix */
3168 SET_LAST_MODIFIED (w, 1); 3172 SET_LAST_MODIFIED (w, 1);
3169 SET_LAST_FACECHANGE (w); 3173 SET_LAST_FACECHANGE (w);
3170 MARK_WINDOWS_CHANGED (w); 3174 MARK_WINDOWS_CHANGED (w);
3171 recompute_all_cached_specifiers_in_window (w); 3175 recompute_all_cached_specifiers_in_window (w);