From 497dd16d7b8313aa9719138372e3d6eb8ad0b09f Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 29 Apr 2022 10:27:13 +0200 Subject: [PATCH] Add support for List-Id completion (list:) --- mu4e/mu4e-search.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-search.el b/mu4e/mu4e-search.el index 2edb9aaa..74c46855 100644 --- a/mu4e/mu4e-search.el +++ b/mu4e/mu4e-search.el @@ -442,7 +442,11 @@ status, STATUS." (match-end 2) mu4e--contacts-hash :exit-function - #'mu4e--search-completion-contacts-action)))) + #'mu4e--search-completion-contacts-action)) + ((looking-back "list:\\([a-zA-Z0-9/.@]*\\)" nil) + (list (match-beginning 1) + (match-end 1) + mu4e--lists-hash)))) (define-minor-mode mu4e-search-minor-mode "Mode for searching for messages."