From c233aada0b3e8989b4be78f7f8cae540074b832b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 10 Apr 2025 19:12:51 -0400 Subject: [PATCH] fix(format): void-variable callback when formatting w/ lsp-mode Ref: #8182 --- modules/editor/format/autoload/lsp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/format/autoload/lsp.el b/modules/editor/format/autoload/lsp.el index c9cc5540c..2bf9127bf 100644 --- a/modules/editor/format/autoload/lsp.el +++ b/modules/editor/format/autoload/lsp.el @@ -51,7 +51,7 @@ mode unconditionally, call `+format-with-lsp-mode' instead." (funcall callback) (funcall callback "LSP server doesn't support formatting"))) -(cl-defun +format--with-lsp-mode (beg end &key buffer &allow-other-keys) +(cl-defun +format--with-lsp-mode (beg end &key buffer callback &allow-other-keys) "Format the current buffer or region with any available lsp-mode formatter. Won't forward the buffer to chained formatters if successful."