diff options
| author | Richard M. Stallman | 1998-05-26 05:16:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-26 05:16:17 +0000 |
| commit | dc8b84506685bf6624b91e3bd7f147a09f18ad68 (patch) | |
| tree | a009c78592b4304f60a43136d05eae1a2fa05fc9 | |
| parent | fc89daeeaf4b6ceada3750aeaff89a773b5c918c (diff) | |
| download | emacs-dc8b84506685bf6624b91e3bd7f147a09f18ad68.tar.gz emacs-dc8b84506685bf6624b91e3bd7f147a09f18ad68.zip | |
(zone-mode): Don't require zone-mode.
Use make-local-hook on a hook, not make-variable-buffer-local.
| -rw-r--r-- | lisp/zone-mode.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/zone-mode.el b/lisp/zone-mode.el index 345fd22e53d..2a534d8a6d0 100644 --- a/lisp/zone-mode.el +++ b/lisp/zone-mode.el | |||
| @@ -90,8 +90,7 @@ Zone-mode does two things: | |||
| 90 | 90 | ||
| 91 | - fontification" | 91 | - fontification" |
| 92 | 92 | ||
| 93 | (require 'zone-mode) | 93 | (make-local-hook 'write-file-hooks) |
| 94 | (make-variable-buffer-local 'write-file-hooks) | ||
| 95 | (add-hook 'write-file-hooks 'zone-mode-update-serial-hook) | 94 | (add-hook 'write-file-hooks 'zone-mode-update-serial-hook) |
| 96 | 95 | ||
| 97 | (if (null zone-mode-syntax-table) | 96 | (if (null zone-mode-syntax-table) |