From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Line Continuation Bugs & Patch Date: Sun, 26 May 2002 16:25:19 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200205262225.g4QMPJ506407@aztec.santafe.edu> References: <20020520033228O.applause@elfmimi.jp> <200205201448.g4KEmIl25419@aztec.santafe.edu> <20020522071929B.applause@elfmimi.jp> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1022452012 31730 127.0.0.1 (26 May 2002 22:26:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 May 2002 22:26:52 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17C6TU-0008Ff-00 for ; Mon, 27 May 2002 00:26:52 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17C6kX-0004ZF-00 for ; Mon, 27 May 2002 00:44:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17C6Tv-0005L0-00; Sun, 26 May 2002 18:27:19 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17C6S1-0005FO-00; Sun, 26 May 2002 18:25:21 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g4QMPJK01939; Sun, 26 May 2002 16:25:19 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4QMPJ506407; Sun, 26 May 2002 16:25:19 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: applause@elfmimi.jp In-Reply-To: <20020522071929B.applause@elfmimi.jp> (message from Ein Terakawa on Wed, 22 May 2002 07:19:29 +0900) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4402 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4402 That is the follwing line in window_scroll_pixel_based of window.c . w->start_at_line_beg = Fbolp (); I think we can't say PT == window-start here. Am I right? You are right. So it is a bug to use Fbolp there. Does this fix it? *** window.c.~1.414.~ Sat Apr 27 15:54:02 2002 --- window.c Sun May 26 14:30:50 2002 *************** *** 4162,4171 **** if (! vscrolled) { /* Set the window start, and set up the window for redisplay. */ ! set_marker_restricted (w->start, make_number (IT_CHARPOS (it)), w->buffer); ! w->start_at_line_beg = Fbolp (); w->update_mode_line = Qt; XSETFASTINT (w->last_modified, 0); XSETFASTINT (w->last_overlay_modified, 0); --- 4162,4175 ---- if (! vscrolled) { + int pos = IT_CHARPOS (it); + int bytepos; /* Set the window start, and set up the window for redisplay. */ ! set_marker_restricted (w->start, make_number (pos), w->buffer); ! bytepos = XMARKER (w->start)->bytepos; ! w->start_at_line_beg = ((pos == BEGV || FETCH_BYTE (bytepos - 1) == '\n') ! ? Qt : Qnil); w->update_mode_line = Qt; XSETFASTINT (w->last_modified, 0); XSETFASTINT (w->last_overlay_modified, 0);