summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-04-16 13:08:30 +0300
committerEli Zaretskii <eliz@gnu.org>2016-04-16 13:08:30 +0300
commitd6ffd645a83d38a1e59321f8c73b4fd19e84b4c5 (patch)
tree9bd7b44d9ed06ed4f7a027bc8860dca8d6f970d5 /lisp/term.el
parent4ab671c48c6dbec0515797186081cb96cc387c10 (diff)
downloademacs-d6ffd645a83d38a1e59321f8c73b4fd19e84b4c5.tar.gz
Speed up redisplay in ansi-term mode
* lisp/term.el (ansi-term): Force L2R 'bidi-paragraph-direction'. (Bug#20611)
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 6fd3a5e6261..8cdf0c0e77c 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -4151,7 +4151,17 @@ the process. Any more args are arguments to PROGRAM."
;; .emacs ...
(term-set-escape-char ?\C-x))
- (switch-to-buffer term-ansi-buffer-name))
+ (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))
;;; Serial terminals