]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of R2L entries in tabulated-list-mode.
authorEli Zaretskii <eliz@gnu.org>
Tue, 14 Oct 2014 19:29:47 +0000 (22:29 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 14 Oct 2014 19:29:47 +0000 (22:29 +0300)
 lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Force
 bidi-paragraph-direction to 'left-to-right'.  This fixes
 buffer-menu display when the first buffer happens to start with
 R2L letter.

lisp/ChangeLog
lisp/emacs-lisp/tabulated-list.el

index 77ab12faaf9d6b397c969d21d55ee3334c1cdfbc..6b99ae2f22f25eeaf097fe1f2de165178cdcebde 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * emacs-lisp/tabulated-list.el (tabulated-list-mode): Force
+       bidi-paragraph-direction to 'left-to-right'.  This fixes
+       buffer-menu display when the first buffer happens to start with
+       R2L letter.
+
 2014-10-13  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/authors.el (authors-aliases, authors-fixed-case)
index d0d71ddb935467327e625270f7da0fb6364ea9ec..86701068c4ec5e3930743f79f0f08c072f953789 100644 (file)
@@ -518,7 +518,10 @@ as the ewoc pretty-printer."
   (setq-local buffer-read-only t)
   (setq-local buffer-undo-list t)
   (setq-local revert-buffer-function #'tabulated-list-revert)
-  (setq-local glyphless-char-display tabulated-list-glyphless-char-display))
+  (setq-local glyphless-char-display tabulated-list-glyphless-char-display)
+  ;; Avoid messing up the entries' display just because the first
+  ;; column of the first entry happens to begin with a R2L letter.
+  (setq bidi-paragraph-direction 'left-to-right))
 
 (put 'tabulated-list-mode 'mode-class 'special)