From aa70213f870fef940e435140475f3e3dd0f4e7c2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 24 Jun 2018 20:03:17 +0200 Subject: [PATCH] Fix "Keyword argument :when not one of" error Occurs when expanding file templates with a :when clause. +file-templates--expand wasn't anticipating it; throwing that error. --- modules/feature/file-templates/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature/file-templates/autoload.el b/modules/feature/file-templates/autoload.el index ce4976584..731edb9bb 100644 --- a/modules/feature/file-templates/autoload.el +++ b/modules/feature/file-templates/autoload.el @@ -58,7 +58,7 @@ these properties: ;; ;;;###autoload -(cl-defun +file-templates--expand (pred &key project mode trigger ignore) +(cl-defun +file-templates--expand (pred &key project mode trigger ignore _when) "Auto insert a yasnippet snippet into current file and enter insert mode (if evil is loaded and enabled)." (when (and pred (not ignore))