diff options
author | Glenn Morris <rgm@gnu.org> | 2018-03-12 11:25:40 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2018-03-12 11:25:40 -0700 |
commit | 6b80a585c7f3600805c8cced58aa1f196e679c7c (patch) | |
tree | 9f632729c5f34093375bbea3c755d09e8a3d5c23 /lisp/play | |
parent | e067f1fd9feabc9c83cfbba177616a46b28d058a (diff) | |
download | emacs-6b80a585c7f3600805c8cced58aa1f196e679c7c.tar.gz emacs-6b80a585c7f3600805c8cced58aa1f196e679c7c.tar.bz2 emacs-6b80a585c7f3600805c8cced58aa1f196e679c7c.zip |
Replace use of the obsolete write-contents-hooks
* lisp/play/gametree.el (gametree-mode):
Replace write-contents-hooks, obsolete since 22.1,
with write-contents-functions.
; * lisp/files.el: Related comment.
Diffstat (limited to 'lisp/play')
-rw-r--r-- | lisp/play/gametree.el | 3 |
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) |