]> code.delx.au - gnu-emacs/commitdiff
Don't set 'bidi-paragraph-direction' in 'ansi-term'
authorEli Zaretskii <eliz@gnu.org>
Sun, 26 Jun 2016 16:51:22 +0000 (19:51 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 26 Jun 2016 16:51:22 +0000 (19:51 +0300)
* 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

index 28be8c8c5301018dde8c573e85042186ff2dd01d..87f600cdf727b1f96316a3913ff73c0e9445be11 100644 (file)
@@ -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))
 
 \f
 ;;; Serial terminals