fix +format--set error path
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 <edwin@etorok.net>
This commit is contained in:
parent
cd314a1188
commit
e5ff6c8418
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
||||||
(cl-defun +format--set (name &key function modes unset)
|
(cl-defun +format--set (name &key function modes unset)
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(when (and unset (not (gethash name format-all-format-table)))
|
(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)
|
(puthash name function format-all-format-table)
|
||||||
(dolist (mode (doom-enlist modes))
|
(dolist (mode (doom-enlist modes))
|
||||||
(cl-destructuring-bind (m &optional probe)
|
(cl-destructuring-bind (m &optional probe)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue