Merge pull request #1627 from haji-ali/misc-fixes

mu4e: updater info-handler and compose
This commit is contained in:
Dirk-Jan C. Binnema 2020-04-04 12:11:58 +03:00 committed by GitHub
commit 89ab9f7351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -314,8 +314,8 @@ Message-ID."
(mu4e~compose-set-friendly-buffer-name)
(mu4e~draft-insert-mail-header-separator)
;; hide some headers again
(mu4e~compose-hide-headers)
(widen)
(mu4e~compose-hide-headers)
(set-buffer-modified-p nil)
(mu4e-message "Saved (%d lines)" (count-lines (point-min) (point-max)))
;; update the file on disk -- ie., without the separator

View File

@ -655,8 +655,9 @@ process."
(zerop (plist-get info :updated)))
(mu4e~request-contacts-maybe))
(when (and (buffer-live-p mainbuf) (get-buffer-window mainbuf))
(select-window (get-buffer-window mainbuf))
(mu4e~main-view 'refresh)))))
(save-window-excursion
(select-window (get-buffer-window mainbuf))
(mu4e~main-view 'refresh))))))
((plist-get info :message)
(mu4e-index-message "%s" (plist-get info :message))))))