From 3f2e77354eac82e0578242340825de48b631add5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 19 May 2010 20:16:07 +0300 Subject: [PATCH] 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. --- lisp/ChangeLog | 5 +++++ lisp/simple.el | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 879463d07db..9658ccb6f15 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-05-19 Eli Zaretskii + + * 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 * password-cache.el (password-cache-remove): Fix docstring. diff --git a/lisp/simple.el b/lisp/simple.el index 48e1148ae6b..608151e5dd2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4539,6 +4539,9 @@ rests." (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)))) -- 2.39.2