From: Eli Zaretskii Date: Sat, 3 Sep 2011 08:44:16 +0000 (+0300) Subject: Fix display by Rmail of bidirectional text in MIME email messages. X-Git-Tag: emacs-pretest-24.0.90~104^2~155^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a3cf097fd06591ad03de58b85fce803cb8617e65;p=emacs.git Fix display by Rmail of bidirectional text in MIME email messages. lisp/mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra newline before and after the tag line, so it doesn't interfere with determining the paragraph direction of bidirectional text. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 599c383ef13..781833d309c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2011-09-03 Eli Zaretskii + + * mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra + newline before and after the tag line, so it doesn't interfere + with determining the paragraph direction of bidirectional text. + 2011-09-03 Leo Liu * files.el (find-file-not-true-dirname-list): Remove. (Bug#9422) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 252fb112a5d..ac07f07a76b 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -4482,7 +4482,7 @@ With prefix argument N moves forward N messages with these labels. ;;;*** -;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "a7d3e7205efa4e20ca9038c9b260ce83") +;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "2c8675d7c069c68bc36a4003b15448d1") ;;; Generated autoloads from rmailmm.el (autoload 'rmail-mime "rmailmm" "\ diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index 597068562b5..d3351255583 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el @@ -426,7 +426,7 @@ The value is a vector [ INDEX HEADER TAGLINE BODY END], where "Insert a tag line for MIME-entity ENTITY. ITEM-LIST is a list of strings or button-elements (list) to be added to the tag line." - (insert "[") + (insert "\n[") (let ((tag (aref (rmail-mime-entity-tagline entity) 0))) (if (> (length tag) 0) (insert (substring tag 1) ":"))) (insert (car (rmail-mime-entity-type entity)) " ") @@ -439,7 +439,7 @@ to the tag line." (if (stringp item) (insert item) (apply 'insert-button item)))) - (insert "]\n")) + (insert "]\n\n")) (defun rmail-mime-update-tagline (entity) "Update the current tag line for MIME-entity ENTITY."