X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=e9b76f103c01d832bb3bd9eaae84dba047f28f4e;hb=47f5871aff404990cb059b3da9976971da922b00;hp=acb7dbf0e2202e065e31e55a64c35bad3fbc05a3;hpb=8af8b6f8de968c3920df9ab0f910f4be7366449a;p=obsolete%2Fnotmuch-old diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index acb7dbf0..e9b76f10 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -72,12 +72,16 @@ (setq headers (mail-header-extract))))) (forward-line 1) (setq body (buffer-substring (point) (point-max)))) - (notmuch-mua-mail (mail-header 'to headers) - (mail-header 'subject headers) - (loop for header in headers - if (not (or (eq 'to (car header)) - (eq 'subject (car header)))) - collect header)) + (let + ;; Overlay the composition window on that being used to read + ;; the original message. + ((same-window-regexps '("\\*mail .*"))) + (notmuch-mua-mail (mail-header 'to headers) + (mail-header 'subject headers) + (loop for header in headers + if (not (or (eq 'to (car header)) + (eq 'subject (car header)))) + collect header))) (message-sort-headers) (message-hide-headers) (save-excursion