changeset 41169:bda8f2e0fcc9

(view-mode-enable): Don't use make-local-hook.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 17 Nov 2001 00:00:26 +0000
parents d647c8dc631c
children e4b5d4e63bd3
files lisp/view.el
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/view.el	Fri Nov 16 23:59:51 2001 +0000
+++ b/lisp/view.el	Sat Nov 17 00:00:26 2001 +0000
@@ -441,7 +441,6 @@
   "Turn on View mode."
   ;; Always leave view mode before changing major mode.
   ;; This is to guarantee that the buffer-read-only variable is restored.
-  (make-local-hook 'change-major-mode-hook)
   (add-hook 'change-major-mode-hook 'view-mode-disable nil t)
   (setq view-mode t
 	view-page-size (view-page-size-default view-page-size)