From: Eli Zaretskii Date: Wed, 19 May 2010 17:16:07 +0000 (+0300) Subject: Fix C-e when bidi reordering is in effect. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~205^2~53 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f2e77354eac82e0578242340825de48b631add5;p=emacs.git 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. --- 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))))