branch: elpa/magit
commit 649bc9dc328b8cb7519292be4f5c9cac13cf3466
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-section-mode: Set font-lock-keywords-only locally
[1: 9e6791796f] appears to assume that this variable automatically
becomes buffer-local when set, which still would make sense to me,
but isn't the case.
Closes #5420.
1: 2025-07-24 9e6791796facd87d6d46abca2628e802edf01ec4
Set font-lock-keywords-only to disable syntactic fontification
---
lisp/magit-section.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 5f10b034625..9f25e208c37 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -432,7 +432,7 @@ Magit-Section is documented in info node `(magit-section)'."
;; Turn off syntactic font locking, but not by setting
;; `font-lock-defaults' because that would enable font locking, and
;; not all magit plugins may be ready for that (see #3950).
- (setq font-lock-keywords-only t)
+ (setq-local font-lock-keywords-only t)
(setq show-trailing-whitespace nil)
(setq-local symbol-overlay-inhibit-map t)
(setq list-buffers-directory (abbreviate-file-name default-directory))