Fix 'setting-constant enable-multibyte-characters' error

Regression caused by 78dde6efd.

Mentioned in #5133
This commit is contained in:
Henrik Lissner 2021-06-04 22:45:36 -04:00
parent 78dde6efdd
commit 9fb96f9eeb

View File

@ -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))) in (cl-remove-if-not #'listp (buffer-local-variables (current-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)
;; Fixes #5133: don't deal with complicated hook ;; Fixes #5133: don't deal with complicated hook
;; functionality! This isn't a real buffer anyway. ;; functionality! This isn't a real buffer anyway.
unless (string-match-p (symbol-name var) "-\\(hook\\|functions\\)$") unless (string-match-p (symbol-name var) "-\\(hook\\|functions\\)$")