Merge pull request #2494 from stardiviner/patch-1

Fix asking maildir reading completing candidate is text-property
This commit is contained in:
Dirk-Jan C. Binnema 2023-05-28 08:39:34 +03:00 committed by GitHub
commit d9795f5874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -307,12 +307,13 @@ from all maildirs under `mu4e-maildir'."
(mu4e-read-option prompt
(append options
'(("oOther..." . other)))))))
(if (eq response 'other)
(progn
(funcall mu4e-completing-read-function prompt
(mu4e-get-maildirs) nil nil
mu4e-maildir-initial-input))
response)))
(substring-no-properties
(if (eq response 'other)
(progn
(funcall mu4e-completing-read-function prompt
(mu4e-get-maildirs) nil nil
mu4e-maildir-initial-input))
response))))
(defun mu4e-ask-maildir-check-exists (prompt)
"Like `mu4e-ask-maildir', PROMPT for existence of the maildir.