From abfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Jun 2016 18:27:49 +0300 Subject: [PATCH] Fix Eshell display when RTL characters are involved * lisp/eshell/esh-mode.el (eshell-mode): Set 'bidi-paragraph-direction' to 'left-to-right'. (Bug#23652) --- lisp/eshell/esh-mode.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 074b94cc75d..104841d999c 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -380,6 +380,11 @@ and the hook `eshell-exit-hook'." (make-local-variable 'eshell-modules-list) (setq eshell-modules-list modules-list)) + ;; This is to avoid making the paragraph base direction + ;; right-to-left if the first word just happens to start with a + ;; strong R2L character. + (setq bidi-paragraph-direction 'left-to-right) + ;; load extension modules into memory. This will cause any global ;; variables they define to be visible, since some of the core ;; modules sometimes take advantage of their functionality if used. -- 2.39.2