diff options
| author | Glenn Morris | 2018-03-12 11:25:40 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-03-12 11:25:40 -0700 |
| commit | 6b80a585c7f3600805c8cced58aa1f196e679c7c (patch) | |
| tree | 9f632729c5f34093375bbea3c755d09e8a3d5c23 | |
| parent | e067f1fd9feabc9c83cfbba177616a46b28d058a (diff) | |
| download | emacs-6b80a585c7f3600805c8cced58aa1f196e679c7c.tar.gz 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.
| -rw-r--r-- | lisp/files.el | 1 | ||||
| -rw-r--r-- | lisp/play/gametree.el | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index fbd3425cbb5..8ec2bde5880 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -521,6 +521,7 @@ updates before the buffer is saved, use `before-save-hook'.") | |||
| 521 | (put 'local-write-file-hooks 'permanent-local t) | 521 | (put 'local-write-file-hooks 'permanent-local t) |
| 522 | (make-obsolete-variable 'local-write-file-hooks 'write-file-functions "22.1") | 522 | (make-obsolete-variable 'local-write-file-hooks 'write-file-functions "22.1") |
| 523 | 523 | ||
| 524 | ;; I found some files still using the obsolete form in 2018. | ||
| 524 | (define-obsolete-variable-alias 'write-contents-hooks | 525 | (define-obsolete-variable-alias 'write-contents-hooks |
| 525 | 'write-contents-functions "22.1") | 526 | 'write-contents-functions "22.1") |
| 526 | (defvar write-contents-functions nil | 527 | (defvar write-contents-functions nil |
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. | |||
| 586 | 586 | ||
| 587 | \\{gametree-mode-map}" | 587 | \\{gametree-mode-map}" |
| 588 | (auto-fill-mode 0) | 588 | (auto-fill-mode 0) |
| 589 | (make-local-variable 'write-contents-hooks) | 589 | (add-hook 'write-contents-functions 'gametree-save-and-hack-layout nil t)) |
| 590 | (add-hook 'write-contents-hooks 'gametree-save-and-hack-layout)) | ||
| 591 | 590 | ||
| 592 | ;;;; Goodies for mousing users | 591 | ;;;; Goodies for mousing users |
| 593 | (defun gametree-mouse-break-line-here (event) | 592 | (defun gametree-mouse-break-line-here (event) |