From e5ff6c841882d371062d9a62a2c4592a67e930c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Thu, 4 Oct 2018 00:37:09 +0100 Subject: [PATCH] fix +format--set error path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In +format--set: ../modules/editor/format/autoload/settings.el:81:26:Warning: ‘error’ called with 0 args to fill 1 format field(s) Signed-off-by: Edwin Török --- modules/editor/format/autoload/settings.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/format/autoload/settings.el b/modules/editor/format/autoload/settings.el index 1e8b54cbb..31f0988b6 100644 --- a/modules/editor/format/autoload/settings.el +++ b/modules/editor/format/autoload/settings.el @@ -77,7 +77,7 @@ (cl-defun +format--set (name &key function modes unset) (declare (indent defun)) (when (and unset (not (gethash name format-all-format-table))) - (error "'%s' formatter does not exist to be unset")) + (error "'%s' formatter does not exist to be unset" name)) (puthash name function format-all-format-table) (dolist (mode (doom-enlist modes)) (cl-destructuring-bind (m &optional probe)