From 9fb96f9eeb4ff8747c84a653404d1f7f8d5b5cf2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Jun 2021 22:45:36 -0400 Subject: [PATCH] Fix 'setting-constant enable-multibyte-characters' error Regression caused by 78dde6efd. Mentioned in #5133 --- 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 6015cc7d72d..729ed87793d 100644 --- a/modules/editor/format/autoload/format.el +++ b/modules/editor/format/autoload/format.el @@ -167,7 +167,7 @@ See `+format/buffer' for the interactive version of this function, and in (cl-remove-if-not #'listp (buffer-local-variables (current-buffer))) ;; Making enable-multibyte-characters buffer-local ;; causes an error. - unless (eq var enable-multibyte-characters) + unless (eq var 'enable-multibyte-characters) ;; Fixes #5133: don't deal with complicated hook ;; functionality! This isn't a real buffer anyway. unless (string-match-p (symbol-name var) "-\\(hook\\|functions\\)$")