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#11199: 24.0.95; killing right-to-left text at eob leads to inconsistent state Date: Sun, 08 Apr 2012 23:03:07 +0300 Message-ID: <831uny9ekk.fsf@gnu.org> References: <83bon2ad9z.fsf@gnu.org> <8762dacc3w.fsf@maru.md5i.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1333915580 12395 80.91.229.3 (8 Apr 2012 20:06:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2012 20:06:20 +0000 (UTC) Cc: 11199@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 08 22:06:18 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 1SGyNN-0001yV-A7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 22:06:17 +0200 Original-Received: from localhost ([::1]:60236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyNM-0005iV-BD for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 16:06:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyNJ-0005iM-2K for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:06:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGyNH-00060d-6O for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:06:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGyNH-00060V-3C for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:06:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SGyO6-0005i8-1C for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 16:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Apr 2012 20:07: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.133391556421885 (code B ref 11199); Sun, 08 Apr 2012 20:07:02 +0000 Original-Received: (at 11199) by debbugs.gnu.org; 8 Apr 2012 20:06:04 +0000 Original-Received: from localhost ([127.0.0.1]:44970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGyNA-0005gw-Ed for submit@debbugs.gnu.org; Sun, 08 Apr 2012 16:06:04 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:58541) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGyN6-0005gU-EN for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 16:06:02 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2600J00EN1EW00@a-mtaout23.012.net.il> for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 23:05:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2600JY2FSFAYB0@a-mtaout23.012.net.il>; Sun, 08 Apr 2012 23:05:04 +0300 (IDT) In-reply-to: <8762dacc3w.fsf@maru.md5i.com> X-012-Sender: halo1@inter.net.il 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:58594 Archived-At: > 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 cannot reproduce this with today's bzr, neither in the emacs-24 > > release branch nor with the trunk version. I cannot run a GUI session > > with a GTK build on GNU/Linux where I'm typing this, but I tried GUI > > and TTY sessions on MS-Windows and a TTY session on GNU/Linux, and > > they all work correctly: the Hebrew text is killed and C-p works as > > expected. (Btw, did you mean C-p or C-n?) > > > > Can you try reproducing this in a clean build, or on another system? > > > > Also, what happens on the system where you see the problem, if you > > switch to another buffer and then back to *scratch*, so that it is > > completely redrawn? does the killed text re-appear or not? > > > > Thanks. > > I have assertions turned on and get an assertion failure. My setup is > as follows: With the above recipe? Or with something different? 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"? 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 then post here everything printed by GDB. (These commands are available only if you start GDB from the src directory; if not, type "source /path/to/emacs/src/.gdbinit" before them.) TIA