comparison src/scrollbar.c @ 1708:a19b0eb5dfc1

[xemacs-hg @ 2003-09-22 04:21:42 by james] Add new pos-visible-in-window-p parameter for Emacs compatibility.
author james
date Mon, 22 Sep 2003 04:21:43 +0000
parents b531bf8658e9
children 04bc9d2f42c7
comparison
equal deleted inserted replaced
1707:fca75a427ae3 1708:a19b0eb5dfc1
690 if (selected) 690 if (selected)
691 Fgoto_char (make_int (start_pos), buf); 691 Fgoto_char (make_int (start_pos), buf);
692 else 692 else
693 Fset_window_point (win, make_int (start_pos)); 693 Fset_window_point (win, make_int (start_pos));
694 } 694 }
695 else if (!point_would_be_visible (XWINDOW (win), start_pos, ptint)) 695 else if (!point_would_be_visible (XWINDOW (win), start_pos, ptint, 0))
696 { 696 {
697 Fmove_to_window_line (make_int (-1), win); 697 Fmove_to_window_line (make_int (-1), win);
698 698
699 if (selected) 699 if (selected)
700 Fbeginning_of_line (Qnil, buf); 700 Fbeginning_of_line (Qnil, buf);