summaryrefslogtreecommitdiff
path: root/lisp/international
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-03-07 20:48:07 +0200
committerEli Zaretskii <eliz@gnu.org>2012-03-07 20:48:07 +0200
commit7a08ed357d4c747986457d3d1250335bb214a089 (patch)
tree59be0dc5a916a3ad0c236a3361ffdc819a06d458 /lisp/international
parent3266b56f817e562638f0ab7ca36fe5e01a44f831 (diff)
downloademacs-7a08ed357d4c747986457d3d1250335bb214a089.tar.gz
Fix direction of keyboard layout display for Arabic input method.
lisp/international/quail.el (quail-help): Force bidi-paragraph-direction be left-to-right. See discussion in http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00062.html for the reason.
Diffstat (limited to 'lisp/international')
-rw-r--r--lisp/international/quail.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 1dd5e3551c7..48aa013c674 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -2485,6 +2485,11 @@ package to describe."
;; the width of the window in which the buffer displayed.
(with-current-buffer (help-buffer)
(setq buffer-read-only nil)
+ ;; Without this, a keyboard layout with R2L characters might be
+ ;; displayed reversed, right to left. See the thread starting at
+ ;; http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00062.html
+ ;; for a description of one such situation.
+ (setq bidi-paragraph-direction 'left-to-right)
(insert "Input method: " (quail-name)
" (mode line indicator:"
(quail-title)