changeset 108701:126aa20e97d5

Fix C-e when bidi reordering is in effect. simple.el (move-end-of-line): Make sure we are at line beginning before backing up to end of previous line.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 19 May 2010 20:16:07 +0300
parents acad6349cba4
children a0b236a315d5
files lisp/ChangeLog lisp/simple.el
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed May 19 14:52:27 2010 +0200
+++ b/lisp/ChangeLog	Wed May 19 20:16:07 2010 +0300
@@ -1,3 +1,8 @@
+2010-05-19  Eli Zaretskii  <eliz@gnu.org>
+
+	* simple.el (move-end-of-line): Make sure we are at line beginning
+	before backing up to end of previous line.
+
 2010-05-19  Michael Albinus  <michael.albinus@gmx.de>
 
 	* password-cache.el (password-cache-remove): Fix docstring.
--- a/lisp/simple.el	Wed May 19 14:52:27 2010 +0200
+++ b/lisp/simple.el	Wed May 19 20:16:07 2010 +0300
@@ -4539,6 +4539,9 @@
 	       (let ((goal-column 0)
 		     (line-move-visual nil))
 		 (and (line-move arg t)
+		      ;; With bidi reordering, we may not be at bol,
+		      ;; so make sure we are.
+		      (skip-chars-backward "^\n")
 		      (not (bobp))
 		      (progn
 			(while (and (not (bobp)) (invisible-p (1- (point))))