Subject: 24.0.95; killing right-to-left text at eob leads to inconsistent state
From: YAMAMOTO Mitsuharu <[email-masked]>
To: [email-masked]
Date: Sun, 08 Apr 2012 11:26:41 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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.

				     YAMAMOTO Mitsuharu
				[email-masked]

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/home/mituharu/src/bzr/emacs/trunk/etc/DEBUG.

In GNU Emacs 24.0.95.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6)
 of 2012-04-07 on mituharu-MacBookAir
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
Configured using:
 `configure '--enable-checking' 'CFLAGS=-g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: ja_JP.UTF-8
  value of $LC_CTYPE: ja_JP.UTF-8
  value of $LC_MESSAGES: ja_JP.UTF-8
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t