Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c4d9b0d9
Commit
c4d9b0d9
authored
Nov 17, 2001
by
Stefan Monnier
Browse files
(view-mode-enable): Don't use make-local-hook.
parent
c979fbdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
lisp/view.el
lisp/view.el
+0
-1
No files found.
lisp/view.el
View file @
c4d9b0d9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment