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:16:29 -0400 Message-ID: <87ty0uasiq.fsf@maru.md5i.com> References: <83bon2ad9z.fsf@gnu.org> <8762dacc3w.fsf@maru.md5i.com> <831uny9ekk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333916242 16523 80.91.229.3 (8 Apr 2012 20:17:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2012 20:17:22 +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:17:21 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 1SGyY1-0007uH-If for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 22:17:17 +0200 Original-Received: from localhost ([::1]:60826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyY0-0006S0-MZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 16:17:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyXx-0006Ru-9a for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:17:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGyXv-0008Uf-9O for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:17:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyXv-0008UY-3c for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:17:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SGyYk-0005xa-95 for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:18: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:18: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.133391624922870 (code B ref 11199); Sun, 08 Apr 2012 20:18:02 +0000 Original-Received: (at 11199) by debbugs.gnu.org; 8 Apr 2012 20:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:44979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGyYC-0005wp-RP for submit@debbugs.gnu.org; Sun, 08 Apr 2012 16:17:29 -0400 Original-Received: from md5i.com ([75.151.244.229]:46411 helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGyY9-0005wb-Jd for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 16:17:27 -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=gprRYPmH9apaXwlxmXulFCOe3jU8p/xCy3EQ0oj1VZU=; b=Xeo3UT6aAzERic700b3wzkWApxJ3GHSIVUsPKcHLMELBKFoCCMvbMMyYxt92Qd5U6TEV62L0qvlfVvI5VcA/wv+z66P+Y3KTqaB5DLuS+xCnQ4UoNmr0/2yNGicei/Jo; Original-Received: from md5i by maru.md5i.com with local (Exim 4.77) (envelope-from ) id 1SGyXF-00042r-UD; Sun, 08 Apr 2012 16:16:30 -0400 In-Reply-To: <831uny9ekk.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Apr 2012 23:03:07 +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:58596 Archived-At: Eli Zaretskii writes: >> From: Michael Welsh Duggan >> Cc: YAMAMOTO Mitsuharu , 11199@debbugs.gnu.org >> Date: Sun, 08 Apr 2012 14:28:03 -0400 >> >> Eli Zaretskii writes: >> >> >> Date: Sun, 08 Apr 2012 11:26:41 +0900 >> >> From: YAMAMOTO Mitsuharu >> >> >> >> Steps to reproduce: >> >> >> >> 1. emacs -Q >> >> 2. type the following text in the *scratch* buffer: >> >> >> >> (progn >> >> (delete-region (point) (point-max)) >> >> (insert (substring (get-language-info "Hebrew" 'sample-text) 7))) >> >> >> >> 3. move the cursor to the beginning of the next line of the above text. >> >> 4. C-x C-e >> >> 5. C-a >> >> 6. C-k >> >> >> >> Result: >> >> >> >> The Hebrew text is still shown, though it is internally killed. >> >> Typing C-p after the last step does not move the cursor. [...] >> I have assertions turned on and get an assertion failure. My setup is >> as follows: > > With the above recipe? Or with something different? With exactly the above recipe. > I have assertions turned on all the time, and I still cannot reproduce > this. Maybe I don't understand the recipe; can you describe exactly > where and how you type the Lisp code, and where you put the cursor > before "C-x C-e"? I typed in the list expression directly into the *scratch* buffer, then hit RET in order to get to the beginning of the next line. (This is how I interpreted step 3 above.) So, at the time I type C-x C-e, I am at the beginning of the line below the line containing the word "insert". > In any case, please go to this frame: > > #4 0x080a82f0 in try_window_id (w=0x88e30d0) at xdisp.c:17140 > > and type: > > (gdb) pgrowx last_unchanged_at_beg_row > (gdb) prowlims last_unchanged_at_beg_row (gdb) up #2 0x080794bb in init_from_display_pos (it=0xbfffa878, w=0x88e30d0, pos=0x8d6e6a8) at xdisp.c:2951 (gdb) up #3 0x08079810 in init_to_row_end (it=0xbfffa878, w=0x88e30d0, row=0x8d6e640) at xdisp.c:3054 (gdb) up #4 0x080a82f0 in try_window_id (w=0x88e30d0) at xdisp.c:17140 (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 1 8: CHAR[ ] pos=238 blev=0,btyp=L w=8 a+d=12+3 MB 2 16: CHAR[(] pos=239 blev=0,btyp=L w=8 a+d=12+3 MB 3 24: CHAR[i] pos=240 blev=0,btyp=L w=8 a+d=12+3 MB 4 32: CHAR[n] pos=241 blev=0,btyp=L w=8 a+d=12+3 MB 5 40: CHAR[s] pos=242 blev=0,btyp=L w=8 a+d=12+3 MB 6 48: CHAR[e] pos=243 blev=0,btyp=L w=8 a+d=12+3 MB 7 56: CHAR[r] pos=244 blev=0,btyp=L w=8 a+d=12+3 MB 8 64: CHAR[t] pos=245 blev=0,btyp=L w=8 a+d=12+3 MB 9 72: CHAR[ ] pos=246 blev=0,btyp=L w=8 a+d=12+3 MB 10 80: CHAR[(] pos=247 blev=0,btyp=L w=8 a+d=12+3 MB 11 88: CHAR[s] pos=248 blev=0,btyp=L w=8 a+d=12+3 MB 12 96: CHAR[u] pos=249 blev=0,btyp=L w=8 a+d=12+3 MB 13 104: CHAR[b] pos=250 blev=0,btyp=L w=8 a+d=12+3 MB 14 112: CHAR[s] pos=251 blev=0,btyp=L w=8 a+d=12+3 MB 15 120: CHAR[t] pos=252 blev=0,btyp=L w=8 a+d=12+3 MB 16 128: CHAR[r] pos=253 blev=0,btyp=L w=8 a+d=12+3 MB 17 136: CHAR[i] pos=254 blev=0,btyp=L w=8 a+d=12+3 MB 18 144: CHAR[n] pos=255 blev=0,btyp=L w=8 a+d=12+3 MB 19 152: CHAR[g] pos=256 blev=0,btyp=L w=8 a+d=12+3 MB 20 160: CHAR[ ] pos=257 blev=0,btyp=L w=8 a+d=12+3 MB 21 168: CHAR[(] pos=258 blev=0,btyp=L w=8 a+d=12+3 MB 22 176: CHAR[g] pos=259 blev=0,btyp=L w=8 a+d=12+3 MB 23 184: CHAR[e] pos=260 blev=0,btyp=L w=8 a+d=12+3 MB 24 192: CHAR[t] pos=261 blev=0,btyp=L w=8 a+d=12+3 MB 25 200: CHAR[-] pos=262 blev=0,btyp=L w=8 a+d=12+3 MB 26 208: CHAR[l] pos=263 blev=0,btyp=L w=8 a+d=12+3 MB 27 216: CHAR[a] pos=264 blev=0,btyp=L w=8 a+d=12+3 MB 28 224: CHAR[n] pos=265 blev=0,btyp=L w=8 a+d=12+3 MB 29 232: CHAR[g] pos=266 blev=0,btyp=L w=8 a+d=12+3 MB 30 240: CHAR[u] pos=267 blev=0,btyp=L w=8 a+d=12+3 MB 31 248: CHAR[a] pos=268 blev=0,btyp=L w=8 a+d=12+3 MB 32 256: CHAR[g] pos=269 blev=0,btyp=L w=8 a+d=12+3 MB 33 264: CHAR[e] pos=270 blev=0,btyp=L w=8 a+d=12+3 MB 34 272: CHAR[-] pos=271 blev=0,btyp=L w=8 a+d=12+3 MB 35 280: CHAR[i] pos=272 blev=0,btyp=L w=8 a+d=12+3 MB 36 288: CHAR[n] pos=273 blev=0,btyp=L w=8 a+d=12+3 MB 37 296: CHAR[f] pos=274 blev=0,btyp=L w=8 a+d=12+3 MB 38 304: CHAR[o] pos=275 blev=0,btyp=L w=8 a+d=12+3 MB 39 312: CHAR[ ] pos=276 blev=0,btyp=L w=8 a+d=12+3 MB 40 320: CHAR["] pos=277 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 41 328: CHAR[H] pos=278 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 42 336: CHAR[e] pos=279 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 43 344: CHAR[b] pos=280 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 44 352: CHAR[r] pos=281 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 45 360: CHAR[e] pos=282 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 46 368: CHAR[w] pos=283 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 47 376: CHAR["] pos=284 blev=0,btyp=L w=8 a+d=12+3 face=15 MB 48 384: CHAR[ ] pos=285 blev=0,btyp=L w=8 a+d=12+3 MB 49 392: CHAR['] pos=286 blev=0,btyp=L w=8 a+d=12+3 MB 50 400: CHAR[s] pos=287 blev=0,btyp=L w=8 a+d=12+3 MB 51 408: CHAR[a] pos=288 blev=0,btyp=L w=8 a+d=12+3 MB 52 416: CHAR[m] pos=289 blev=0,btyp=L w=8 a+d=12+3 MB 53 424: CHAR[p] pos=290 blev=0,btyp=L w=8 a+d=12+3 MB 54 432: CHAR[l] pos=291 blev=0,btyp=L w=8 a+d=12+3 MB 55 440: CHAR[e] pos=292 blev=0,btyp=L w=8 a+d=12+3 MB 56 448: CHAR[-] pos=293 blev=0,btyp=L w=8 a+d=12+3 MB 57 456: CHAR[t] pos=294 blev=0,btyp=L w=8 a+d=12+3 MB 58 464: CHAR[e] pos=295 blev=0,btyp=L w=8 a+d=12+3 MB 59 472: CHAR[x] pos=296 blev=0,btyp=L w=8 a+d=12+3 MB 60 480: CHAR[t] pos=297 blev=0,btyp=L w=8 a+d=12+3 MB 61 488: CHAR[)] pos=298 blev=0,btyp=L w=8 a+d=12+3 MB 62 496: CHAR[ ] pos=299 blev=0,btyp=L w=8 a+d=12+3 MB 63 504: CHAR[7] pos=300 blev=0,btyp=L w=8 a+d=12+3 MB 64 512: CHAR[)] pos=301 blev=0,btyp=L w=8 a+d=12+3 MB 65 520: CHAR[)] pos=302 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) -- Michael Welsh Duggan (md5i@md5i.com)