summaryrefslogtreecommitdiff
path: root/lisp/play/gametree.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/play/gametree.el')
-rw-r--r--lisp/play/gametree.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/play/gametree.el b/lisp/play/gametree.el
index de8abd7abe4..5b05ae13e2f 100644
--- a/lisp/play/gametree.el
+++ b/lisp/play/gametree.el
@@ -586,8 +586,7 @@ shogi, etc.) players, it is a slightly modified version of Outline mode.
\\{gametree-mode-map}"
(auto-fill-mode 0)
- (make-local-variable 'write-contents-hooks)
- (add-hook 'write-contents-hooks 'gametree-save-and-hack-layout))
+ (add-hook 'write-contents-functions 'gametree-save-and-hack-layout nil t))
;;;; Goodies for mousing users
(defun gametree-mouse-break-line-here (event)