From 1d4795e86695a436ef8bcd065caeb448ea442a26 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 14 Oct 2014 22:29:47 +0300 Subject: 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. --- lisp/emacs-lisp/tabulated-list.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') 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." (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) -- cgit v1.2.3 From 6d81466ac65eb84cb77eaa73e589628b5afcb963 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 14 Oct 2014 22:00:20 -0400 Subject: * lisp/emacs-lisp/lisp.el (lisp--local-variables-1): Handle `quote'. Backported. Fixes: debbugs:18688 --- lisp/ChangeLog | 9 +++++++-- lisp/emacs-lisp/lisp.el | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6b99ae2f22f..7e09336183c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,12 @@ +2014-10-15 Stefan Monnier + + * emacs-lisp/lisp.el (lisp--local-variables-1): Handle `quote'. + Backported (bug#18688). + 2014-10-14 Eli Zaretskii - * emacs-lisp/tabulated-list.el (tabulated-list-mode): Force - bidi-paragraph-direction to 'left-to-right'. This fixes + * 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. diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 80366db33d5..a7de1bd255e 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -711,6 +711,7 @@ considered." (`(condition-case ,v ,_ . ,catches) (lisp--local-variables-1 (cons v vars) (cdr (car (last catches))))) + (`(quote . ,_) (setq sexp nil)) (`(,_ . ,_) (lisp--local-variables-1 vars (car (last sexp)))) (`lisp--witness--lisp (or vars '(nil))) -- cgit v1.2.3