From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#11199: 24.0.95; killing right-to-left text at eob leads to inconsistent state Date: Sun, 08 Apr 2012 16:49:14 -0400 Message-ID: <87hawuar05.fsf@maru.md5i.com> References: <83bon2ad9z.fsf@gnu.org> <8762dacc3w.fsf@maru.md5i.com> <831uny9ekk.fsf@gnu.org> <87ty0uasiq.fsf@maru.md5i.com> <83y5q67z7h.fsf@gnu.org> <87lim6as39.fsf@maru.md5i.com> <83wr5q7yf1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333918223 28673 80.91.229.3 (8 Apr 2012 20:50:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2012 20:50:23 +0000 (UTC) Cc: 11199@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 22:50:22 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SGz3x-0000nB-PX for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 22:50:17 +0200 Original-Received: from localhost ([::1]:33962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGz3x-0008Qg-2Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 16:50:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGz3t-0008QP-Nd for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:50:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGz3r-0007S0-RU for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:50:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGz3r-0007Rt-M2 for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:50:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SGz4g-0006kw-Fm for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Apr 2012 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11199 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11199-submit@debbugs.gnu.org id=B11199.133391821325912 (code B ref 11199); Sun, 08 Apr 2012 20:51:02 +0000 Original-Received: (at 11199) by debbugs.gnu.org; 8 Apr 2012 20:50:13 +0000 Original-Received: from localhost ([127.0.0.1]:45005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGz3s-0006jt-P4 for submit@debbugs.gnu.org; Sun, 08 Apr 2012 16:50:13 -0400 Original-Received: from md5i.com ([75.151.244.229]:46492 helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGz3q-0006jl-4d for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 16:50:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=kpAbMOfodQuiqiJS6Uc5gaOZKrtE8fd7eiq64rHiFTE=; b=qy0mbXvOuor4z8HAtSK4HPmc04/WhmIisCg58P4c8lFBuKH6LNCqKZP+ZXHYoVcLVa22Za1v1DkWA78PlHpPJDyHK3BtvqvEjugjmnED0QyhSOZYhbzwnjuC/BOswtmM; Original-Received: from md5i by maru.md5i.com with local (Exim 4.77) (envelope-from ) id 1SGz2x-00056j-85; Sun, 08 Apr 2012 16:49:15 -0400 In-Reply-To: <83wr5q7yf1.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Apr 2012 23:37:22 +0300") User-Agent: Gnus/5.11002 (No Gnus v0.20) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:58601 Archived-At: Eli Zaretskii writes: >> From: Michael Welsh Duggan >> Cc: mituharu@math.s.chiba-u.ac.jp, 11199@debbugs.gnu.org >> Date: Sun, 08 Apr 2012 16:25:46 -0400 >> >> >> (gdb) pgrowx last_unchanged_at_beg_row >> >> TEXT: 68 glyphs >> >> 0 0: CHAR[ ] pos=237 blev=0,btyp=L w=8 a+d=12+3 MB >> >> ... >> >> 66 528: CHAR[)] pos=303 blev=0,btyp=L w=8 a+d=12+3 MB >> >> 67 536: CHAR[ ] pos=0 blev=0,btyp=B w=8 a+d=12+3 MB >> >> (gdb) prowlims last_unchanged_at_beg_row >> >> edges=(237,305),r2l=0,cont=0,trunc=(0,0),at_zv=0 >> >> (gdb) >> > >> > And what does the following produce in this frame? >> > >> > (gdb) p row->end >> >> (gdb) p row->end >> $8 = { >> pos = { >> charpos = 309, >> bytepos = 313 >> }, > > That's the problem: the end position does not correspond to the actual > buffer positions of the characters in the glyph row (which are 237 to > 303). But how could that happen?.. And why doesn't it happen to me? > I cannot even make init_to_row_end be called when I type C-k. > > Btw, if you set bidi-display-reordering nil in *scratch* before typing > the recipe, does the crash still happen? It does not. If you need me to poke around just point me in the right direction. -- Michael Welsh Duggan (md5i@md5i.com)