[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 02/03: [gnugo int] Don't make ‘font-lock-defaults’ buffer-local.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] 02/03: [gnugo int] Don't make ‘font-lock-defaults’ buffer-local. |
Date: |
Thu, 17 Apr 2014 15:58:24 +0000 |
ttn pushed a commit to branch master
in repository elpa.
commit 6c04d0f97c2d66ff6a662652b2a50844af01e226
Author: Thien-Thi Nguyen <address@hidden>
Date: Thu Apr 17 15:45:41 2014 +0200
[gnugo int] Don't make ‘font-lock-defaults’ buffer-local.
* packages/gnugo/gnugo.el (gnugo-board-mode):
...here, as it automatically becomes buffer-local when set.
---
packages/gnugo/gnugo.el | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index 28fcec5..8811142 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -2386,9 +2386,8 @@ In this mode, keys do not self insert.
\\{gnugo-board-mode-map}"
(buffer-disable-undo) ; todo: undo undo undoing
(setq buffer-read-only nil) ; todo: make everything else DTRT
- (set (make-local-variable 'font-lock-defaults)
- '(gnugo-font-lock-keywords t))
- (setq truncate-lines t)
+ (setq font-lock-defaults '(gnugo-font-lock-keywords t)
+ truncate-lines t)
(add-hook 'kill-buffer-hook 'gnugo-cleanup nil t)
(set (make-local-variable 'gnugo-state)
(gnugo--mkht :size (1- 42)))