From e26931cba81539673756f042472f723cdf28f97d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 26 Jun 2016 19:51:22 +0300 Subject: [PATCH] Don't set 'bidi-paragraph-direction' in 'ansi-term' * lisp/term.el (ansi-term): Remove unnecessary setting of 'bidi-paragraph-direction'. The underlying problem is solved in bidi.c by changing the regexps that define the paragraph beginning and end. (Bug#20611) --- lisp/term.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lisp/term.el b/lisp/term.el index 28be8c8c53..87f600cdf7 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -4150,17 +4150,7 @@ the process. Any more args are arguments to PROGRAM." ;; .emacs ... (term-set-escape-char ?\C-x)) - (switch-to-buffer term-ansi-buffer-name) - ;; For some reason, without the below setting, ansi-term behaves - ;; sluggishly, not clear why, since the buffer is typically very - ;; small. - ;; - ;; There's a larger problem here with supporting bidirectional text: - ;; the application that writes to the terminal could have its own - ;; ideas about displaying bidirectional text, and might not want us - ;; reordering the text or deciding on base paragraph direction. One - ;; such application is Emacs in TTY mode... FIXME. - (setq bidi-paragraph-direction 'left-to-right)) + (switch-to-buffer term-ansi-buffer-name)) ;;; Serial terminals -- 2.39.2