* fix mu4e-sent-messages-behavior for 'delete when user hasn't saved draft

This commit is contained in:
djcb
2012-03-30 09:15:52 +03:00
parent 5daa703678
commit 79f3289a25
2 changed files with 17 additions and 19 deletions

View File

@ -139,11 +139,11 @@ the current list of headers."
(let* ((marker (gethash docid mu4e-msg-map))
(pos (and marker (marker-position marker)))
(docid-at-pos (and pos (mu4e-hdrs-get-docid pos))))
(unless marker (error "Message %d not found" docid))
(unless (eq docid docid-at-pos)
(error "At point %d, expected docid %d, but got %S"
pos docid docid-at-pos))
(mu4e-hdrs-remove-header docid pos)))))
(when marker
(unless (eq docid docid-at-pos)
(error "At point %d, expected docid %d, but got %S"
pos docid docid-at-pos))
(mu4e-hdrs-remove-header docid pos))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -242,7 +242,7 @@ after the end of the search results."
(unless (= 0 count)
(message "Found %d matching message%s"
count (if (= 1 count) "" "s"))))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;