From: Eli Zaretskii Date: Sun, 26 Jun 2016 16:51:22 +0000 (+0300) Subject: Don't set 'bidi-paragraph-direction' in 'ansi-term' X-Git-Tag: emacs-26.0.90~1840^2~164 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e26931cba81539673756f042472f723cdf28f97d;p=emacs.git 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) --- diff --git a/lisp/term.el b/lisp/term.el index 28be8c8c530..87f600cdf72 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