From eb12eefda57d64f00a538aa44910ed9a79574ef0 Mon Sep 17 00:00:00 2001 From: Peterpaul Taekele Klein Haneveld Date: Tue, 12 Feb 2019 22:07:31 +0100 Subject: [PATCH] Use unwind-protect to ensure action chain is inactive afterwards --- espuds.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/espuds.el b/espuds.el index 915b7fd..627b0fb 100644 --- a/espuds.el +++ b/espuds.el @@ -279,8 +279,9 @@ The value of the face PROPERTY must be one of VALID-VALUES." (When "^I execute the action chain$" "Executes the action chain." (lambda () - (execute-kbd-macro espuds-action-chain) - (setq espuds-chain-active nil))) + (unwind-protect + (execute-kbd-macro espuds-action-chain) + (setq espuds-chain-active nil)))) (When "^I call \"\\(.+\\)\"$" "Call the provided COMMAND"