diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-11-24 23:18:22 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-11-24 23:18:22 +0000 |
commit | ebe90ae18eef445e231891ff9b58fb4f5cd24c46 (patch) | |
tree | 2f43eecde723640de57108f09ad5da86a812c58d /lisp/view.el | |
parent | f2137a2d1195a232a9d3ee3e55191a068f367243 (diff) | |
download | emacs-ebe90ae18eef445e231891ff9b58fb4f5cd24c46.tar.gz |
(view-mode, view-mode-enter): Doc changes.
(view-mode-map): Change h and ? to use describe-mode.
Delete binding of help char.
(view-mode-enter): Use describe-mode in message.
Diffstat (limited to 'lisp/view.el')
-rw-r--r-- | lisp/view.el | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/view.el b/lisp/view.el index d84198b8435..0823cc1e67b 100644 --- a/lisp/view.el +++ b/lisp/view.el @@ -87,9 +87,8 @@ This is local in each buffer, once it is used.") (define-key view-mode-map "'" 'View-back-to-mark) (define-key view-mode-map "@" 'View-back-to-mark) (define-key view-mode-map "x" 'exchange-point-and-mark) - (define-key view-mode-map "h" 'Helper-describe-bindings) - (define-key view-mode-map "?" 'Helper-describe-bindings) - (define-key view-mode-map (char-to-string help-char) 'help-command) + (define-key view-mode-map "h" 'describe-mode) + (define-key view-mode-map "?" 'describe-mode) (define-key view-mode-map "s" 'isearch-forward) (define-key view-mode-map "r" 'isearch-backward) (define-key view-mode-map "/" 'View-search-regexp-forward) @@ -185,20 +184,13 @@ This command runs the normal hook `view-mode-hook'." If you use this function to turn on View mode, \"exiting\" View mode does nothing except turn View mode off. The other way to turn View mode on is by calling -`view-mode-enter'." - (interactive "P") - (setq view-mode - (if (null arg) - (not view-mode) - (> (prefix-numeric-value arg) 0))) - (force-mode-line-update)) +`view-mode-enter'. -(defun view-mode-enter (&optional prev-buffer action) - "Minor mode for viewing text but not editing it. Letters do not insert themselves. Instead these commands are provided. Most commands take prefix arguments. Commands dealing with lines default to \"scroll size\" lines (initially size of window). Search commands default to a repeat count of one. + M-< or < move to beginning of buffer. M-> or > move to end of buffer. C-v or Space scroll forward lines. @@ -226,7 +218,17 @@ C-r or r do reverse incremental search. C-n moves down lines vertically. C-p moves upward lines vertically. C-l recenters the screen. -q exit view-mode and return to previous buffer. +q exit view-mode and return to previous buffer." + (interactive "P") + (setq view-mode + (if (null arg) + (not view-mode) + (> (prefix-numeric-value arg) 0))) + (force-mode-line-update)) + +(defun view-mode-enter (&optional prev-buffer action) + "Enter View mode, a Minor mode for viewing text but not editing it. +See the function `view-mode' for more details. This function runs the normal hook `view-mode-hook'. @@ -261,7 +263,7 @@ This function runs the normal hook `view-mode-hook'. (run-hooks 'view-mode-hook) (message (substitute-command-keys - "Type \\[help-command] for help, \\[Helper-describe-bindings] for commands, \\[view-exit] to quit."))) + "Type \\[help-command] for help, \\[describe-mode] for commands, \\[view-exit] to quit."))) (defun view-exit () "Exit from view-mode. |