]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of keyboard layouts for right-to-left scripts
authorMichael Vehrs <Michael.Burschik@gmx.de>
Sat, 2 May 2015 14:08:54 +0000 (17:08 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 May 2015 14:08:54 +0000 (17:08 +0300)
* lisp/international/quail.el (quail-insert-kbd-layout): Force
left-to-right paragraph direction.

lisp/international/quail.el

index 5e422bf5fdb162433f124a991e97152ddef13a15..90a540aae304b793d8149cf45b00d2011cf54180 100644 (file)
@@ -793,9 +793,10 @@ you type is correctly handled."
                 keyseq)))
 
 (defun quail-insert-kbd-layout (kbd-layout)
-"Insert the visual keyboard layout table according to KBD-LAYOUT.
+  "Insert the visual keyboard layout table according to KBD-LAYOUT.
 The format of KBD-LAYOUT is the same as `quail-keyboard-layout'."
   (let (done-list layout i ch)
+    (setq bidi-paragraph-direction 'left-to-right)
     ;; At first, convert KBD-LAYOUT to the same size vector that
     ;; contains translated character or string.
     (setq layout (string-to-vector kbd-layout)