From: Richard M. Stallman Date: Sat, 14 Oct 1995 20:42:26 +0000 (+0000) Subject: (Finsert_file_contents): If replacing, X-Git-Tag: emacs-19.34~2639 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26fb39b5ef70defc0559f5f6b06b457afbf2cee7;p=emacs.git (Finsert_file_contents): If replacing, set selected_window->start_at_line_beg. --- diff --git a/src/fileio.c b/src/fileio.c index f8469cbd821..f6f99e5e305 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2971,6 +2971,10 @@ and (2) it puts less data in the undo list.") Otherwise loop around and scan the preceding bufferfull. */ if (bufpos != 0) break; + /* If display current starts at beginning of line, + keep it that way. */ + if (XBUFFER (XWINDOW (selected_window)->buffer) == current_buffer) + XWINDOW (selected_window)->start_at_line_beg = Fbolp (); } immediate_quit = 0;