Space scrolls forward, Delete scrolls backward.
For list of all View commands, type ? or h while viewing.
-This command runs the normal hook `view-hook'."
+This command runs the normal hook `view-mode-hook'."
(interactive "fView file: ")
(let ((old-buf (current-buffer))
(had-a-buf (get-file-buffer file-name))
Space scrolls forward, Delete scrolls backward.
For list of all View commands, type ? or h while viewing.
-This command runs the normal hook `view-hook'."
+This command runs the normal hook `view-mode-hook'."
(interactive "fView file: ")
(let ((old-arrangement (current-window-configuration))
(had-a-buf (get-file-buffer file-name))
Space scrolls forward, Delete scrolls backward.
For list of all View commands, type ? or h while viewing.
-This command runs the normal hook `view-hook'."
+This command runs the normal hook `view-mode-hook'."
(interactive "bView buffer: ")
(let ((old-buf (current-buffer)))
(switch-to-buffer buffer-name t)
Space scrolls forward, Delete scrolls backward.
For list of all View commands, type ? or h while viewing.
-This command runs the normal hook `view-hook'."
+This command runs the normal hook `view-mode-hook'."
(interactive "bView buffer:\nP")
(let ((return-to (and not-return (current-window-configuration))))
(switch-to-buffer-other-window buffer-name)
C-l recenters the screen.
q or C-c exit view-mode and return to previous buffer.
-Entry to this mode runs the normal hook `view-hook'.
+Entry to this mode runs the normal hook `view-mode-hook'.
\\{view-mode-map}"
; Not interactive because dangerous things happen
(setq goal-column nil)
(use-local-map view-mode-map)
- (run-hooks 'view-hook)
+ (run-hooks 'view-hook 'view-mode-hook)
(view-helpful-message))
\f
(defvar view-hook nil
"Normal hook run when starting to view a buffer or file.")
+(defvar view-mode-hook nil
+ "Normal hook run when starting to view a buffer or file.")
+
;(defun view-last-command (&optional who what)
; (setq view-last-command-entry this-command)
; (setq view-last-command who)