diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-20 23:25:40 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-20 23:25:40 -0500 |
| commit | 0e1b39ab0f446b74c20decfe126cead06b1c79e5 (patch) | |
| tree | d7e91462702bebaddb26a4996fd0a555cfa13ec3 | |
| parent | 5613eeae080b4f97746fa8ef41b34fe75807fe62 (diff) | |
| download | dotemacs-0e1b39ab0f446b74c20decfe126cead06b1c79e5.tar.gz dotemacs-0e1b39ab0f446b74c20decfe126cead06b1c79e5.zip | |
refactor(mu4e): collapse dead completion conditional
| -rw-r--r-- | modules/mu4e-org-contacts-integration.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/mu4e-org-contacts-integration.el b/modules/mu4e-org-contacts-integration.el index fc0a7325..a143bdc4 100644 --- a/modules/mu4e-org-contacts-integration.el +++ b/modules/mu4e-org-contacts-integration.el @@ -60,13 +60,10 @@ In email header fields (To, Cc, Bcc), complete using org-contacts. Elsewhere, perform the default TAB action." (interactive) (cond - ;; In email header fields, use completion-at-point + ;; In email header fields, use completion-at-point (it both starts a new + ;; completion and cycles an in-progress one, so no mode check is needed). ((mail-abbrev-in-expansion-header-p) - (if (and (boundp 'completion-in-region-mode) completion-in-region-mode) - ;; If we're already in completion mode, cycle through candidates - (completion-at-point) - ;; Start new completion - (completion-at-point))) + (completion-at-point)) ;; In org-msg-edit-mode body, use org-cycle ((and (eq major-mode 'org-msg-edit-mode) (not (mail-abbrev-in-expansion-header-p))) |
