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.
This commit is contained in:
parent
3e19f95997
commit
1d4795e866
2 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue