comparison lisp/zone-mode.el @ 22248:70d9ba94ce39

(zone-mode): Don't require zone-mode. Use make-local-hook on a hook, not make-variable-buffer-local.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 May 1998 05:16:17 +0000
parents a353553581b6
children
comparison
equal deleted inserted replaced
22247:7db7ffb27feb 22248:70d9ba94ce39
88 - automatically update the serial number for a zone 88 - automatically update the serial number for a zone
89 when saving the file 89 when saving the file
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)
98 (zone-mode-load-time-setup)) ;; should have been run at load-time 97 (zone-mode-load-time-setup)) ;; should have been run at load-time
99 98