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 14:28:03 -0400 Message-ID: <8762dacc3w.fsf@maru.md5i.com> References: <83bon2ad9z.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333909765 8626 80.91.229.3 (8 Apr 2012 18:29:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Apr 2012 18:29:25 +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 20:29:24 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 1SGwrW-0001Sn-06 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 20:29:18 +0200 Original-Received: from localhost ([::1]:50647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGwrV-0005Db-B4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Apr 2012 14:29:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGwrS-0005DH-2X for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 14:29:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGwrQ-0002Iw-8c for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 14:29:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGwrQ-0002Is-2V for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 14:29:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SGwsE-0003W2-KV for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2012 14:30: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 18:30: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.133390974313431 (code B ref 11199); Sun, 08 Apr 2012 18:30:02 +0000 Original-Received: (at 11199) by debbugs.gnu.org; 8 Apr 2012 18:29:03 +0000 Original-Received: from localhost ([127.0.0.1]:44920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGwrF-0003UJ-Sy for submit@debbugs.gnu.org; Sun, 08 Apr 2012 14:29:02 -0400 Original-Received: from md5i.com ([75.151.244.229]:45906 helo=maru.md5i.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGwrC-0003UA-T6 for 11199@debbugs.gnu.org; Sun, 08 Apr 2012 14:29:00 -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=GrONLa4I6zrrlovBnpMvWLS1q8Ydbu7nfFuX4EJoA9A=; b=rRb9wFESeoTj/gRwtufo5v4BXflw+/ZtW0wL4jqbW4tllVnm6lnxmwe4VFBNgVvzLXIdGW3iophplbaJv8quEi73Os1xZ5RmXHjHAbgXs/dDknTUWVcqMfC7QVsVnd3t; Original-Received: from md5i by maru.md5i.com with local (Exim 4.77) (envelope-from ) id 1SGwqJ-0000Nh-NX; Sun, 08 Apr 2012 14:28:03 -0400 In-Reply-To: <83bon2ad9z.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Apr 2012 10:33:28 +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:58592 Archived-At: 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: In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, X toolkit) of 2012-04-08 on maru Bzr revision: 107799 eliz@gnu.org-20120408170903-4aew3wl3022qvr3e Windowing system distributor `The X.Org Foundation', version 11.0.11104000 Configured using: `configure '--without-gconf' '--without-gsettings' '--without-toolkit-scroll-bars' '--with-x-toolkit=lucid' 'CFLAGS=-O0 -ggdb' '--enable-asserts' '--with-wide-int'' Build is from today's trunk. Here is the backtrace: #0 abort () at emacs.c:390 #1 0x080779e7 in init_iterator (it=0xbfffa878, w=0x88e30d0, charpos=308, bytepos=311, row=0x0, base_face_id=DEFAULT_FACE_ID) at xdisp.c:2507 #2 0x080794bb in init_from_display_pos (it=0xbfffa878, w=0x88e30d0, pos=0x8dccc58) at xdisp.c:2951 #3 0x08079810 in init_to_row_end (it=0xbfffa878, w=0x88e30d0, row=0x8dccbf0) at xdisp.c:3054 #4 0x080a82f0 in try_window_id (w=0x88e30d0) at xdisp.c:17140 #5 0x080a11fc in redisplay_window (window=-6917529027497545520, just_this_one_p=1) at xdisp.c:15463 #6 0x0809a6e8 in redisplay_window_1 (window=-6917529027497545520) at xdisp.c:13645 #7 0x0828b89f in internal_condition_case_1 ( bfun=0x809a6a2 , arg=-6917529027497545520, handlers=-4611686018286052816, hfun=0x809a619 ) at eval.c:1553 #8 0x080996ee in redisplay_internal () at xdisp.c:13270 #9 0x08096754 in redisplay () at xdisp.c:12417 #10 0x081c9d36 in read_char (commandflag=1, nmaps=2, maps=0xbfffed60, prev_event=4611686018568752328, used_mouse_menu=0xbfffeeac, end_time=0x0) at keyboard.c:2448 #11 0x081dad15 in read_key_sequence (keybuf=0xbffff0f8, bufsize=30, prompt=4611686018568752328, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9328 #12 0x081c6c32 in command_loop_1 () at keyboard.c:1449 #13 0x0828b710 in internal_condition_case (bfun=0x81c667f , handlers=4611686018568799048, hfun=0x81c5c48 ) at eval.c:1515 #14 0x081c6255 in command_loop_2 (ignore=4611686018568752328) at keyboard.c:1160 #15 0x0828af33 in internal_catch (tag=4611686018568792336, func=0x81c621a , arg=4611686018568752328) at eval.c:1272 #16 0x081c61e0 in command_loop () at keyboard.c:1139 #17 0x081c56eb in recursive_edit_1 () at keyboard.c:759 #18 0x081c590f in Frecursive_edit () at keyboard.c:823 #19 0x081c34c1 in main (argc=2, argv=0xbffff964) at emacs.c:1711 -- Michael Welsh Duggan (md5i@md5i.com)