summaryrefslogtreecommitdiff
path: root/lisp/eshell
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-06-04 18:27:49 +0300
committerEli Zaretskii <eliz@gnu.org>2016-06-04 18:27:49 +0300
commitabfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc (patch)
tree54867820168974e744dbcd8d360a378d1aea4b5b /lisp/eshell
parent6b985764f07ae164d8142ba64774f2beb2856ca8 (diff)
downloademacs-abfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc.tar.gz
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)
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-mode.el5
1 files changed, 5 insertions, 0 deletions
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.