diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/term.el | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/term.el b/lisp/term.el index 7e44c57228e..562d9b0487c 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -1098,6 +1098,11 @@ Entry to this mode runs the hooks on `term-mode-hook'." | |||
| 1098 | (term-reset-size (cdr size) (car size))) | 1098 | (term-reset-size (cdr size) (car size))) |
| 1099 | size)) | 1099 | size)) |
| 1100 | 1100 | ||
| 1101 | ;; Without the below setting, term-mode and ansi-term behave | ||
| 1102 | ;; sluggishly when the buffer includes a lot of whitespace | ||
| 1103 | ;; characters. | ||
| 1104 | (setq bidi-paragraph-direction 'left-to-right) | ||
| 1105 | |||
| 1101 | (easy-menu-add term-terminal-menu) | 1106 | (easy-menu-add term-terminal-menu) |
| 1102 | (easy-menu-add term-signals-menu) | 1107 | (easy-menu-add term-signals-menu) |
| 1103 | (or term-input-ring | 1108 | (or term-input-ring |
| @@ -4138,17 +4143,7 @@ the process. Any more args are arguments to PROGRAM." | |||
| 4138 | ;; .emacs ... | 4143 | ;; .emacs ... |
| 4139 | (term-set-escape-char ?\C-x)) | 4144 | (term-set-escape-char ?\C-x)) |
| 4140 | 4145 | ||
| 4141 | (switch-to-buffer term-ansi-buffer-name) | 4146 | (switch-to-buffer term-ansi-buffer-name)) |
| 4142 | ;; For some reason, without the below setting, ansi-term behaves | ||
| 4143 | ;; sluggishly, not clear why, since the buffer is typically very | ||
| 4144 | ;; small. | ||
| 4145 | ;; | ||
| 4146 | ;; There's a larger problem here with supporting bidirectional text: | ||
| 4147 | ;; the application that writes to the terminal could have its own | ||
| 4148 | ;; ideas about displaying bidirectional text, and might not want us | ||
| 4149 | ;; reordering the text or deciding on base paragraph direction. One | ||
| 4150 | ;; such application is Emacs in TTY mode... FIXME. | ||
| 4151 | (setq bidi-paragraph-direction 'left-to-right)) | ||
| 4152 | 4147 | ||
| 4153 | 4148 | ||
| 4154 | ;;; Serial terminals | 4149 | ;;; Serial terminals |