[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102535: Force left-to-right paragrap
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102535: Force left-to-right paragraph direction in echo area and prog-mode buffers. |
Date: |
Fri, 26 Nov 2010 21:10:26 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102535
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2010-11-26 21:10:26 +0200
message:
Force left-to-right paragraph direction in echo area and prog-mode buffers.
src/xdisp.c (set_message_1): Force paragraph direction in echo area
be left-to-right.
lisp/simple.el (prog-mode): Set bidi-paragraph-direction to left-to-right.
modified:
lisp/ChangeLog
lisp/simple.el
src/ChangeLog
src/xdisp.c
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-11-26 18:38:40 +0000
+++ b/lisp/ChangeLog 2010-11-26 19:10:26 +0000
@@ -1,5 +1,8 @@
2010-11-26 Eli Zaretskii <address@hidden>
+ * simple.el (prog-mode): Set bidi-paragraph-direction to
+ left-to-right.
+
* term/pc-win.el (x-get-selection-internal): Emulation for MS-DOS.
2010-11-26 Glenn Morris <address@hidden>
=== modified file 'lisp/simple.el'
--- a/lisp/simple.el 2010-11-18 03:54:14 +0000
+++ b/lisp/simple.el 2010-11-26 19:10:26 +0000
@@ -441,7 +441,9 @@
(define-derived-mode prog-mode fundamental-mode "Prog"
"Major mode for editing programming language source code."
(set (make-local-variable 'require-final-newline) mode-require-final-newline)
- (set (make-local-variable 'parse-sexp-ignore-comments) t))
+ (set (make-local-variable 'parse-sexp-ignore-comments) t)
+ ;; Any programming language is always written left to right.
+ (setq bidi-paragraph-direction 'left-to-right))
;; Making and deleting lines.
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-11-26 18:15:09 +0000
+++ b/src/ChangeLog 2010-11-26 19:10:26 +0000
@@ -1,5 +1,8 @@
2010-11-26 Eli Zaretskii <address@hidden>
+ * xdisp.c (set_message_1): Force paragraph direction in echo area
+ be left-to-right.
+
* keyboard.c (make_lispy_position): Put a meaningful value in yret
when the click is on the header or mode line.
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2010-11-25 18:38:09 +0000
+++ b/src/xdisp.c 2010-11-26 19:10:26 +0000
@@ -9384,6 +9384,8 @@
Fset_buffer_multibyte (message_enable_multibyte ? Qt : Qnil);
current_buffer->truncate_lines = message_truncate_lines ? Qt : Qnil;
+ if (!NILP (current_buffer->bidi_display_reordering))
+ current_buffer->bidi_paragraph_direction = Qleft_to_right;
/* Insert new message at BEG. */
TEMP_SET_PT_BOTH (BEG, BEG_BYTE);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102535: Force left-to-right paragraph direction in echo area and prog-mode buffers.,
Eli Zaretskii <=