]> code.delx.au - gnu-emacs/commitdiff
Fix Eshell display when RTL characters are involved
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Jun 2016 15:27:49 +0000 (18:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Jun 2016 15:27:49 +0000 (18:27 +0300)
* lisp/eshell/esh-mode.el (eshell-mode): Set
'bidi-paragraph-direction' to 'left-to-right'.  (Bug#23652)

lisp/eshell/esh-mode.el

index 074b94cc75d7668a59dda815b6edf3e9f10a0de4..104841d999c24db9207d20b042cef2bd2d921b14 100644 (file)
@@ -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.