view-mode-enter
view-mode-enter is an autoloaded compiled Lisp function in `view.el
'.
(view-mode-enter &optional QUIT-RESTORE EXIT-ACTION)
Enter View mode and set up exit from view mode depending on optional arguments.
Optional argument QUIT-RESTORE if non-nil must specify a valid
entry for quitting and restoring any window showing the current
buffer. This entry replaces any parameter installed by
`display-buffer' and is used by `view-mode-exit'.
Optional argument EXIT-ACTION, if non-nil, must specify a
function that takes a buffer as argument. This function will be
called by `view-mode-exit'.
For a list of all View commands, type H or h while viewing.
This function runs the normal hook `view-mode-hook'.