diff options
| author | Eli Zaretskii | 2016-06-04 18:27:49 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-06-04 18:27:49 +0300 |
| commit | abfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc (patch) | |
| tree | 54867820168974e744dbcd8d360a378d1aea4b5b /lisp/eshell | |
| parent | 6b985764f07ae164d8142ba64774f2beb2856ca8 (diff) | |
| download | emacs-abfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc.tar.gz emacs-abfe07ad61d6f95c3dc0b1aee179a397f1d0f9fc.zip | |
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.el | 5 |
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'." | |||
| 380 | (make-local-variable 'eshell-modules-list) | 380 | (make-local-variable 'eshell-modules-list) |
| 381 | (setq eshell-modules-list modules-list)) | 381 | (setq eshell-modules-list modules-list)) |
| 382 | 382 | ||
| 383 | ;; This is to avoid making the paragraph base direction | ||
| 384 | ;; right-to-left if the first word just happens to start with a | ||
| 385 | ;; strong R2L character. | ||
| 386 | (setq bidi-paragraph-direction 'left-to-right) | ||
| 387 | |||
| 383 | ;; load extension modules into memory. This will cause any global | 388 | ;; load extension modules into memory. This will cause any global |
| 384 | ;; variables they define to be visible, since some of the core | 389 | ;; variables they define to be visible, since some of the core |
| 385 | ;; modules sometimes take advantage of their functionality if used. | 390 | ;; modules sometimes take advantage of their functionality if used. |