]> code.delx.au - gnu-emacs/blobdiff - lisp/mail/rmail.el
Fix bidi-paragraph-direction in Rmail view buffer
[gnu-emacs] / lisp / mail / rmail.el
index 2e441ec16d3c8dfa383ecfc849814016838546bf..70b0f232ce662c0a26c053d3be55c51f1ff0423c 100644 (file)
@@ -2797,7 +2797,12 @@ The current mail message becomes the message displayed."
          ;; rmail-header-style based on the binding in effect when
          ;; this function is called; `rmail-toggle-headers' can
          ;; inspect this value to determine how to toggle.
-         (set (make-local-variable 'rmail-header-style) header-style))
+         (set (make-local-variable 'rmail-header-style) header-style)
+          ;; In case viewing the previous message sets the paragraph
+          ;; direction non-nil, we reset it here to allow independent
+          ;; dynamic determination of paragraph direction in every
+          ;; message.
+          (setq bidi-paragraph-direction nil))
        (if (and rmail-enable-mime
                 rmail-show-mime-function
                 (re-search-forward "mime-version: 1.0" nil t))