aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2011-06-18 23:17:29 +0300
committerEli Zaretskii2011-06-18 23:17:29 +0300
commitacb288185281f8030279fd81705bb54fa16ca84a (patch)
treeeb7d5f4c1a15e5a8e805dbc19db6d1e79d39d189 /lisp
parentca3122a07a44f375ef47dcec44b88b09dc981f47 (diff)
downloademacs-acb288185281f8030279fd81705bb54fa16ca84a.tar.gz
emacs-acb288185281f8030279fd81705bb54fa16ca84a.zip
Add comments for forced L2R directions of menu bar and tool bar.
GCPRO Lisp string inside bidi.c. Force L2R direction in buffer menu buffer. src/xdisp.c (tool_bar_lines_needed, redisplay_tool_bar) (display_menu_bar): Force left-to-right direction. Add a FIXME comment for making that be controlled by a user option. src/bidi.c (bidi_move_to_visually_next): GCPRO the Lisp string we are iterating. lisp/buff-menu.el (Buffer-menu-mode, list-buffers-noselect): Force left-to-right paragraph direction.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/buff-menu.el9
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 50c3022ba0a..ccfff545293 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-06-18 Eli Zaretskii <eliz@gnu.org>
2
3 * buff-menu.el (Buffer-menu-mode, list-buffers-noselect): Force
4 left-to-right paragraph direction.
5
12011-05-10 Glenn Morris <rgm@gnu.org> 62011-05-10 Glenn Morris <rgm@gnu.org>
2 Stefan Monnier <monnier@iro.umontreal.ca> 7 Stefan Monnier <monnier@iro.umontreal.ca>
3 8
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 9886b30d122..cd1c8d71243 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -266,7 +266,10 @@ Letters do not insert themselves; instead, they are commands.
266 (set (make-local-variable 'buffer-stale-function) 266 (set (make-local-variable 'buffer-stale-function)
267 (lambda (&optional _noconfirm) 'fast)) 267 (lambda (&optional _noconfirm) 'fast))
268 (setq truncate-lines t) 268 (setq truncate-lines t)
269 (setq buffer-read-only t)) 269 (setq buffer-read-only t)
270 ;; Force L2R direction, to avoid messing the display if the first
271 ;; buffer in the list happens to begin with a string R2L character.
272 (setq bidi-paragraph-direction 'left-to-right))
270 273
271(define-obsolete-variable-alias 'buffer-menu-mode-hook 274(define-obsolete-variable-alias 'buffer-menu-mode-hook
272 'Buffer-menu-mode-hook "23.1") 275 'Buffer-menu-mode-hook "23.1")
@@ -805,6 +808,10 @@ For more information, see the function `buffer-menu'."
805 (setq buffer-read-only nil) 808 (setq buffer-read-only nil)
806 (erase-buffer) 809 (erase-buffer)
807 (setq standard-output (current-buffer)) 810 (setq standard-output (current-buffer))
811 ;; Force L2R direction, to avoid messing the display if the
812 ;; first buffer in the list happens to begin with a string R2L
813 ;; character.
814 (setq bidi-paragraph-direction 'left-to-right)
808 (unless Buffer-menu-use-header-line 815 (unless Buffer-menu-use-header-line
809 ;; Use U+2014 (EM DASH) to underline if possible, else use ASCII 816 ;; Use U+2014 (EM DASH) to underline if possible, else use ASCII
810 ;; (i.e. U+002D, HYPHEN-MINUS). 817 ;; (i.e. U+002D, HYPHEN-MINUS).