diff options
| author | Eli Zaretskii | 2011-09-03 11:44:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-09-03 11:44:16 +0300 |
| commit | a3cf097fd06591ad03de58b85fce803cb8617e65 (patch) | |
| tree | 2936b5c9f51da3a0556a57fc05d9b28958b4d0df | |
| parent | 3d03de90fb6e847d1d395dfdfdde85cf8f70f148 (diff) | |
| download | emacs-a3cf097fd06591ad03de58b85fce803cb8617e65.tar.gz emacs-a3cf097fd06591ad03de58b85fce803cb8617e65.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmailmm.el | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 599c383ef13..781833d309c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-09-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra | ||
| 4 | newline before and after the tag line, so it doesn't interfere | ||
| 5 | with determining the paragraph direction of bidirectional text. | ||
| 6 | |||
| 1 | 2011-09-03 Leo Liu <sdl.web@gmail.com> | 7 | 2011-09-03 Leo Liu <sdl.web@gmail.com> |
| 2 | 8 | ||
| 3 | * files.el (find-file-not-true-dirname-list): Remove. (Bug#9422) | 9 | * 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. | |||
| 4482 | 4482 | ||
| 4483 | ;;;*** | 4483 | ;;;*** |
| 4484 | 4484 | ||
| 4485 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "a7d3e7205efa4e20ca9038c9b260ce83") | 4485 | ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "2c8675d7c069c68bc36a4003b15448d1") |
| 4486 | ;;; Generated autoloads from rmailmm.el | 4486 | ;;; Generated autoloads from rmailmm.el |
| 4487 | 4487 | ||
| 4488 | (autoload 'rmail-mime "rmailmm" "\ | 4488 | (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 | |||
| 426 | "Insert a tag line for MIME-entity ENTITY. | 426 | "Insert a tag line for MIME-entity ENTITY. |
| 427 | ITEM-LIST is a list of strings or button-elements (list) to be added | 427 | ITEM-LIST is a list of strings or button-elements (list) to be added |
| 428 | to the tag line." | 428 | to the tag line." |
| 429 | (insert "[") | 429 | (insert "\n[") |
| 430 | (let ((tag (aref (rmail-mime-entity-tagline entity) 0))) | 430 | (let ((tag (aref (rmail-mime-entity-tagline entity) 0))) |
| 431 | (if (> (length tag) 0) (insert (substring tag 1) ":"))) | 431 | (if (> (length tag) 0) (insert (substring tag 1) ":"))) |
| 432 | (insert (car (rmail-mime-entity-type entity)) " ") | 432 | (insert (car (rmail-mime-entity-type entity)) " ") |
| @@ -439,7 +439,7 @@ to the tag line." | |||
| 439 | (if (stringp item) | 439 | (if (stringp item) |
| 440 | (insert item) | 440 | (insert item) |
| 441 | (apply 'insert-button item)))) | 441 | (apply 'insert-button item)))) |
| 442 | (insert "]\n")) | 442 | (insert "]\n\n")) |
| 443 | 443 | ||
| 444 | (defun rmail-mime-update-tagline (entity) | 444 | (defun rmail-mime-update-tagline (entity) |
| 445 | "Update the current tag line for MIME-entity ENTITY." | 445 | "Update the current tag line for MIME-entity ENTITY." |