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.
This commit is contained in:
Henrik Lissner 2018-06-24 20:03:17 +02:00
parent f784ed3cbd
commit aa70213f87
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -58,7 +58,7 @@ these properties:
;; ;;
;;;###autoload ;;;###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 "Auto insert a yasnippet snippet into current file and enter insert mode (if
evil is loaded and enabled)." evil is loaded and enabled)."
(when (and pred (not ignore)) (when (and pred (not ignore))