Fix formatting ignoring buffer-local variables
This commit is contained in:
parent
46732c0ada
commit
ad24061a81
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue