diff options
| author | Eli Zaretskii | 2014-10-14 22:29:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-10-14 22:29:47 +0300 |
| commit | 1d4795e86695a436ef8bcd065caeb448ea442a26 (patch) | |
| tree | 846240eac8014c5bfc47055e41000913eb5d695a | |
| parent | 3e19f95997c14bd6cfd09518bc848206ee3fd9f8 (diff) | |
| download | emacs-1d4795e86695a436ef8bcd065caeb448ea442a26.tar.gz emacs-1d4795e86695a436ef8bcd065caeb448ea442a26.zip | |
Fix display of R2L entries in tabulated-list-mode.
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.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 77ab12faaf9..6b99ae2f22f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-10-14 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/tabulated-list.el (tabulated-list-mode): Force | ||
| 4 | bidi-paragraph-direction to 'left-to-right'. This fixes | ||
| 5 | buffer-menu display when the first buffer happens to start with | ||
| 6 | R2L letter. | ||
| 7 | |||
| 1 | 2014-10-13 Glenn Morris <rgm@gnu.org> | 8 | 2014-10-13 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * emacs-lisp/authors.el (authors-aliases, authors-fixed-case) | 10 | * emacs-lisp/authors.el (authors-aliases, authors-fixed-case) |
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index d0d71ddb935..86701068c4e 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el | |||
| @@ -518,7 +518,10 @@ as the ewoc pretty-printer." | |||
| 518 | (setq-local buffer-read-only t) | 518 | (setq-local buffer-read-only t) |
| 519 | (setq-local buffer-undo-list t) | 519 | (setq-local buffer-undo-list t) |
| 520 | (setq-local revert-buffer-function #'tabulated-list-revert) | 520 | (setq-local revert-buffer-function #'tabulated-list-revert) |
| 521 | (setq-local glyphless-char-display tabulated-list-glyphless-char-display)) | 521 | (setq-local glyphless-char-display tabulated-list-glyphless-char-display) |
| 522 | ;; Avoid messing up the entries' display just because the first | ||
| 523 | ;; column of the first entry happens to begin with a R2L letter. | ||
| 524 | (setq bidi-paragraph-direction 'left-to-right)) | ||
| 522 | 525 | ||
| 523 | (put 'tabulated-list-mode 'mode-class 'special) | 526 | (put 'tabulated-list-mode 'mode-class 'special) |
| 524 | 527 | ||