From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9771: 24.0.90; Redisplay problems with control characters Date: Wed, 19 Oct 2011 13:49:54 +0200 Message-ID: <831uu9urod.fsf@gnu.org> References: <871uucr2w1.fsf@gnu.org> <874nz79vo1.fsf@gnu.org> <87ipnlzt6m.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1319025078 17535 80.91.229.12 (19 Oct 2011 11:51:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 11:51:18 +0000 (UTC) Cc: 9771-done@debbugs.gnu.org To: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 13:51:11 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGUfs-0002Pi-Dr for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 13:51:08 +0200 Original-Received: from localhost ([::1]:34441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGUfr-0006d5-PL for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 07:51:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGUfl-0006cG-Pt for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 07:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGUfk-0000fb-9h for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 07:51:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGUfk-0000fM-2m for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 07:51:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGUgj-0006iL-UH for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 07:52:01 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 11:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9771@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 9771-done@debbugs.gnu.org id=D9771.131902507125743 (code D ref 9771); Wed, 19 Oct 2011 11:52:01 +0000 Original-Received: (at 9771-done) by debbugs.gnu.org; 19 Oct 2011 11:51:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGUfs-0006h6-1N for submit@debbugs.gnu.org; Wed, 19 Oct 2011 07:51:10 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGUfo-0006gZ-Aj for 9771-done@debbugs.gnu.org; Wed, 19 Oct 2011 07:51:06 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LTB00900A40S300@a-mtaout20.012.net.il> for 9771-done@debbugs.gnu.org; Wed, 19 Oct 2011 13:49:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTB008X0A74Z6B0@a-mtaout20.012.net.il>; Wed, 19 Oct 2011 13:49:53 +0200 (IST) In-reply-to: <87ipnlzt6m.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Oct 2011 07:52:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52847 Archived-At: > From: Johan Bockg=E5rd > Cc: handa@m17n.org, 9771@debbugs.gnu.org > Date: Wed, 19 Oct 2011 03:06:09 +0200 >=20 > emacs -Q >=20 > C-u 2000 C-q 0 RET >=20 > Notice that the lines visible in the window start with "@^". >=20 > Press until the top of the buffer just scrolls into view. >=20 > Notice that lines before point start with "^@", and lines after > point start with "@^". Thanks for the test case. > Change BUFFER_POS_REACHED_P (or something) so that dpvec_index = =3D=3D 0 is > an acceptable stop position and this problem doesn't happen. I'm not sure a change in BUFFER_POS_REACHED_P is the right fix for this particular problem. Even if it is, I'm reluctant to make in move_it_in_display_line_to a change that could have effect in many unrelated places, since this function is such a central piece of the display engine. I'd rather make a change that targets this specific problem, certainly while we are in a pretest. I think I found such a change. The problem is that when we start a new redisplay cycle of a window, we begin drawing the window's first line at the last glyph of the display vector used to display the firs= t character position visible in the window. I made a simple change tha= t should fix this (in revision 106131), please see if it resolves the issue. Another problem I found was that one of the redisplay optimizations would redraw too few lines of a window, when the last redrawn line ends in glyphs from a display vector. I fixed that in revision 106133. With all the 4 parts of the original report being addressed now, I'm closing this bug report. If there are any left-overs, please submit separate bug reports about them. Thanks.