From c4d9b0d99628043079d7bdcabe1a0f033db96a61 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 17 Nov 2001 00:00:26 +0000 Subject: [PATCH] (view-mode-enable): Don't use make-local-hook. --- lisp/view.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/view.el b/lisp/view.el index 474e3cbb381..0932be3903b 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -441,7 +441,6 @@ Entry to view-mode runs the normal hook `view-mode-hook'." "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) -- 2.39.5