From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#9771: 24.0.90; Redisplay problems with control characters Date: Wed, 19 Oct 2011 03:06:09 +0200 Message-ID: <87ipnlzt6m.fsf@gnu.org> References: <871uucr2w1.fsf@gnu.org> <874nz79vo1.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318986431 6286 80.91.229.12 (19 Oct 2011 01:07:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 01:07:11 +0000 (UTC) Cc: 9771@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 03:07:07 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 1RGKcc-0002ph-LZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 03:07:06 +0200 Original-Received: from localhost ([::1]:56848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGKcb-0003a8-TU for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 21:07:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGKcZ-0003a0-7Q for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 21:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGKcX-0007mg-T8 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 21:07:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGKcX-0007mc-Na for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 21:07:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGKdV-0006h1-GX for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 21:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9771-submit@debbugs.gnu.org id=B9771.131898643925679 (code B ref 9771); Wed, 19 Oct 2011 01:08:01 +0000 Original-Received: (at 9771) by debbugs.gnu.org; 19 Oct 2011 01:07:19 +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 1RGKco-0006g8-Hh for submit@debbugs.gnu.org; Tue, 18 Oct 2011 21:07:18 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGKcl-0006ft-Pg for 9771@debbugs.gnu.org; Tue, 18 Oct 2011 21:07:16 -0400 Original-Received: from iph3.telenor.se (iph3.telenor.se [195.54.127.134]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 92768EA359 for <9771@debbugs.gnu.org>; Wed, 19 Oct 2011 03:06:10 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.202.48] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtNTAKghnk5V5MowPGdsb2JhbABEiTyfMxkBAQEBNzKBbgEBBAFWIwULCyEUEQ8BBBgBDAoaE4gAArV5iBsEpVU X-IronPort-AV: E=Sophos;i="4.69,368,1315173600"; d="scan'208";a="133002681" Original-Received: from c-30cae455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.202.48]) by iph3.telenor.se with ESMTP; 19 Oct 2011 03:06:10 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 733974841C3; Wed, 19 Oct 2011 03:06:09 +0200 (CEST) In-Reply-To: (Eli Zaretskii's message of "Tue, 18 Oct 2011 08:56:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 18 Oct 2011 21:08: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:52822 Archived-At: Eli Zaretskii writes: > Consuming the last glyph of a display vector means that the next call > to set_iterator_to_next will detect that the display vector is > exhausted, and will advance to the next buffer position, the one after > the position which we just passed by consuming all the glyphs from the > display vector used to display the character at that position. Thus, > "buffer position reached". It seems that BUFFER_POS_REACHED_P at least misses the opportunity to stop immediately before *any* glyph in the display vector has been consumed, i.e. when dpvec_index == 0. (Or the problem is not with BUFFER_POS_REACHED_P but with how it's being used.) [...] > In practice, after correcting the bug that caused the assertion > violation, I can no longer reproduce the situation where we stop in > the middle of the ^@ character. If you can show me a recipe for > winding up in the middle of a display vector under these or similar > circumstances, I will have another look. emacs -Q C-u 2000 C-q 0 RET Notice that the lines visible in the window start with "@^". Press until the top of the buffer just scrolls into view. Notice that lines before point start with "^@", and lines after point start with "@^". Change BUFFER_POS_REACHED_P (or something) so that dpvec_index == 0 is an acceptable stop position and this problem doesn't happen.