From ad24061a816a9eeaa7cf28fd44d903cccbea0b30 Mon Sep 17 00:00:00 2001 From: Nathan Tran Date: Sat, 24 Jul 2021 01:54:06 +1000 Subject: [PATCH] Fix formatting ignoring buffer-local variables --- modules/editor/format/autoload/format.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/format/autoload/format.el b/modules/editor/format/autoload/format.el index 729ed8779..2fef1836a 100644 --- a/modules/editor/format/autoload/format.el +++ b/modules/editor/format/autoload/format.el @@ -164,7 +164,7 @@ See `+format/buffer' for the interactive version of this function, and ;; buffer as possible, in case the formatter is an elisp ;; function, like `gofmt'. (cl-loop for (var . val) - in (cl-remove-if-not #'listp (buffer-local-variables (current-buffer))) + in (cl-remove-if-not #'listp (buffer-local-variables origin-buffer)) ;; Making enable-multibyte-characters buffer-local ;; causes an error. unless (eq var 'enable-multibyte-characters)