mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Merge pull request #5284 from naistran/patch-4
Fix formatting ignoring buffer-local variables
This commit is contained in:
@ -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
|
;; buffer as possible, in case the formatter is an elisp
|
||||||
;; function, like `gofmt'.
|
;; function, like `gofmt'.
|
||||||
(cl-loop for (var . val)
|
(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
|
;; Making enable-multibyte-characters buffer-local
|
||||||
;; causes an error.
|
;; causes an error.
|
||||||
unless (eq var 'enable-multibyte-characters)
|
unless (eq var 'enable-multibyte-characters)
|
||||||
|
Reference in New Issue
Block a user