From 45ecfebce52457472fbb519968b62da99a06e82a Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Thu, 23 Feb 2023 09:13:38 -0500 Subject: [PATCH] mu4e--main-action: guard against nil ALT argument Otherwise, if ALT is not provided the initial binding of bindstr can fail with: Wrong type argument: characterp, nil --- mu4e/mu4e-main.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-main.el b/mu4e/mu4e-main.el index 69219fc1..3e1a24fd 100644 --- a/mu4e/mu4e-main.el +++ b/mu4e/mu4e-main.el @@ -192,7 +192,7 @@ use ALT as a substitute. If the first letter after the [@] is equal to the last letter of the binding representation, remove that first letter." - (let* ((bindstr (or bindstr (mu4e-key-description cmd) (string alt) + (let* ((bindstr (or bindstr (mu4e-key-description cmd) (and alt (string alt)) (mu4e-error "No binding for %s" cmd))) (bindstr (if (and alt (> (length bindstr) 1)) alt bindstr))