editor/format: fix wrong-number-of-args error

+format|buffer takes no arguments
This commit is contained in:
Henrik Lissner 2018-09-10 08:22:21 -04:00
parent e38e79e6d7
commit e0f8325f45
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -172,7 +172,7 @@ See `+format/buffer' for the interactive version of this function, and
"Format the source code in the current buffer."
(interactive "P")
(let ((+format-with (if arg (+format-completing-read))))
(+format|buffer arg)))
(+format|buffer)))
;;;###autoload
(defun +format/region (beg end &optional arg)