mu4e-mark: don't be too eager to avoid confirmation

Fixes: #1974.
This commit is contained in:
Dirk-Jan C. Binnema 2021-04-12 18:01:38 +03:00
parent 04f795cbd0
commit b68a12692f
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ user which one)."
(mu4e-error "Target dir %s does not exist " fulltarget) (mu4e-error "Target dir %s does not exist " fulltarget)
target))) target)))
(defun mu4e-mark-execute-all (&optional no-confirmation) (defun mu4e-mark-execute-all (no-confirmation)
"Execute the actions for all marked messages in this buffer. "Execute the actions for all marked messages in this buffer.
After the actions have been executed successfully, the affected After the actions have been executed successfully, the affected
messages are *hidden* from the current header list. Since the messages are *hidden* from the current header list. Since the
@ -389,7 +389,7 @@ flow. Therefore, we hide the message, which in practice seems to
work well. work well.
If NO-CONFIRMATION is non-nil, don't ask user for confirmation." If NO-CONFIRMATION is non-nil, don't ask user for confirmation."
(interactive "p") (interactive "P")
(mu4e~mark-in-context (mu4e~mark-in-context
(let* ((marknum (hash-table-count mu4e~mark-map)) (let* ((marknum (hash-table-count mu4e~mark-map))
(prompt (format "Are you sure you want to execute %d mark%s?" (prompt (format "Are you sure you want to execute %d mark%s?"