;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Mon Apr 17 19:55:04 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/view.el ;;; emacs version 19.28.90.26. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/view.el' was compiled for Emacs 19")) (byte-code "! B   A@\" # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @A# BA# CD# EF# GF# HI!J# KL# MN# OP# QR# SP# TR# UV# WX# YV# ZX# [\\# ]^#‡" [boundp view-mode-map nil current-load-list make-keymap fillarray View-undefined define-key "" view-exit "q" "-" negative-argument "0" digit-argument "1" "2" "3" "4" "5" "6" "7" "8" "9" "" universal-argument "" "" Control-X-prefix "-" "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "<" beginning-of-buffer ">" end-of-buffer "v" View-scroll-lines-backward "" View-scroll-lines-forward " " "" "\n" View-scroll-one-more-line " " "\f" recenter "z" View-scroll-lines-forward-set-scroll-size "g" View-goto-line "=" what-line "." set-mark-command "" "'" View-back-to-mark "@" "x" exchange-point-and-mark "h" Helper-describe-bindings "?" char-to-string help-char Helper-help "" next-line "" previous-line "" isearch-forward "" isearch-backward "s" "r" "/" View-search-regexp-forward "\\" View-search-regexp-backward "" "" "n" View-search-last-regexp-forward "p" View-search-last-regexp-backward] 4) #@381 View FILE in View mode, returning to previous buffer when done. The usual Emacs commands are not available; instead, a special set of commands (mostly letters and punctuation) are defined for moving around in the buffer. Space scrolls forward, Delete scrolls backward. For list of all View commands, type ? or h while viewing. This command runs the normal hook `view-mode-hook'. (defalias 'view-file #[(file-name) "p ! ! \f\" \f? !?\"+" [get-file-buffer file-name find-file-noselect buf-to-view had-a-buf old-buf switch-to-buffer view-mode buffer-modified-p kill-buffer] 4 (#$ . 1862) "fView file: "]) #@394 View FILE in View mode in other window. Return to previous buffer when done. The usual Emacs commands are not available; instead, a special set of commands (mostly letters and punctuation) are defined for moving around in the buffer. Space scrolls forward, Delete scrolls backward. For list of all View commands, type ? or h while viewing. This command runs the normal hook `view-mode-hook'. (defalias 'view-file-other-window #[(file-name) " \n!\n!  ?\f!?\"+" [current-window-configuration get-file-buffer file-name find-file-noselect buf-to-view had-a-buf old-arrangement switch-to-buffer-other-window view-mode buffer-modified-p kill-buffer] 4 (#$ . 2489) "fView file: "]) #@383 View BUFFER in View mode, returning to previous buffer when done. The usual Emacs commands are not available; instead, a special set of commands (mostly letters and punctuation) are defined for moving around in the buffer. Space scrolls forward, Delete scrolls backward. For list of all View commands, type ? or h while viewing. This command runs the normal hook `view-mode-hook'. (defalias 'view-buffer #[(buffer-name) "p\n\"\")" [old-buf switch-to-buffer buffer-name t view-mode nil] 3 (#$ . 3193) "bView buffer: "]) #@483 View BUFFER in View mode in another window, returning to original buffer when done *only* if prefix argument NOT-RETURN is nil (which is the default). The usual Emacs commands are not available in View mode; instead, a special set of commands (mostly letters and punctuation) are defined for moving around in the buffer. Space scrolls forward, Delete scrolls backward. For list of all View commands, type ? or h while viewing. This command runs the normal hook `view-mode-hook'. (defalias 'view-buffer-other-window #[(buffer-name not-return) " \f!\n!)" [not-return current-window-configuration return-to switch-to-buffer-other-window buffer-name view-mode] 2 (#$ . 3728) "bView buffer:\nP"]) #@1625 Major 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. M-v or DEL scroll backward lines. CR or LF scroll forward one line (backward with prefix argument). z like Space except set number of lines for further scrolling commands to scroll by. C-u and Digits provide prefix arguments. `-' denotes negative argument. = prints the current line number. g goes to line given by prefix argument. / or M-C-s searches forward for regular expression \ or M-C-r searches backward for regular expression. n searches forward for last regular expression. p searches backward for last regular expression. C-@ or . set the mark. x exchanges point and mark. C-s or s do forward incremental search. C-r or r do reverse incremental search. @ or ' return to mark and pops mark ring. Mark ring is pushed at start of every successful search and when jump to line to occurs. The mark is set on jump to buffer start or end. ? or h provide help message (list of commands). \[Helper-help] provides help (list of commands or description of a command). C-n moves down lines vertically. C-p moves upward lines vertically. 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-mode-hook'. \{view-mode-map} (defalias 'view-mode #[(&optional prev-buffer action) "!\n!\f!!!  !!/   <Ђ=C S !U \" !!! !! y\"$!\" " [make-local-variable view-old-mode-line-buffer-identification mode-line-buffer-identification view-old-buffer-read-only buffer-read-only view-old-mode-name mode-name view-old-major-mode major-mode view-old-local-map current-local-map view-old-Helper-return-blurb boundp Helper-return-blurb t buffer-file-name "Viewing %f" "Viewing %b" "View" view-mode format "continue viewing %s" file-name-nondirectory buffer-name view-exit-action action view-return-here prev-buffer view-exit-position point-marker view-scroll-size nil view-last-regexp 0 goal-column use-local-map view-mode-map run-hooks view-hook view-mode-hook view-helpful-message] 4 (#$ . 4441)]) #@172 Exit from view-mode. If you viewed an existing buffer, that buffer returns to its previous mode. If you viewed a file that was not present in Emacs, its buffer is killed. (defalias 'view-exit #[nil "\n\f! \nb\nˉp\f !/!;!;! E !*" [view-old-mode-line-buffer-identification mode-line-buffer-identification view-old-major-mode major-mode view-old-mode-name mode-name use-local-map view-old-local-map view-old-buffer-read-only buffer-read-only view-exit-position nil view-exit-action action viewed-buffer bufferp view-return-here switch-to-buffer window-configuration-p set-window-configuration] 3 (#$ . 6933) nil]) (defalias 'view-helpful-message #[nil "!!" [message substitute-command-keys "Type \\[Helper-help] for help, \\[Helper-describe-bindings] for commands, \\[view-exit] to quit."] 3]) (defalias 'View-undefined #[nil " " [ding view-helpful-message] 1 nil nil]) (defalias 'view-window-size #[nil " S" [window-height] 1]) (defalias 'view-scroll-size #[nil "  ^" [view-window-size view-scroll-size] 2]) #@57 Normal hook run when starting to view a buffer or file. (defvar view-hook nil (#$ . 8011)) #@57 Normal hook run when starting to view a buffer or file. (defvar view-mode-hook nil (#$ . 8108)) #@116 Move to line LINE in View mode. Display is centered at LINE. Sets mark at starting position and pushes mark ring. (defalias 'View-goto-line #[(&optional line) " \n ! ƥ!" [push-mark goto-line line 1 recenter view-window-size 2] 3 (#$ . 8211) "p"]) #@203 Scroll forward in View mode, or exit if end of text is visible. No arg means whole window full, or number of lines set by \[View-scroll-lines-forward-set-scroll-size]. Arg is number of lines to scroll. (defalias 'View-scroll-lines-forward #[(&optional lines) "d!  V  !  Y.!A [ Y=!A !d!Tdb!!!!yȇ" [pos-visible-in-window-p lines 0 view-exit prefix-numeric-value view-scroll-size view-window-size scroll-up nil scroll-down recenter -1 message substitute-command-keys "End. Type \\[view-exit] to quit viewing." move-to-window-line] 4 (#$ . 8477) "P"]) #@487 Scroll forward LINES lines in View mode, setting the "scroll size". This is the number of lines which \[View-scroll-lines-forward] and \[View-scroll-lines-backward] scroll by default. The absolute value of LINES is used, so this command can be used to scroll backwards (but "scroll size" is always positive). If LINES is greater than window height or omitted, then window height is assumed. If LINES is less than window height then scrolling context is provided from previous screen. (defalias 'View-scroll-lines-forward-set-scroll-size #[(&optional lines) "\n !V[ ^!" [lines view-window-size view-scroll-size prefix-numeric-value 0 View-scroll-lines-forward] 3 (#$ . 9092) "P"]) #@70 Scroll one more line up in View mode. With ARG scroll one line down. (defalias 'View-scroll-one-more-line #[(&optional arg) " ‚\n!" [View-scroll-lines-forward arg 1 -1] 2 (#$ . 9806) "P"]) #@169 Scroll backward in View mode. No arg means whole window full, or number of lines set by \[View-scroll-lines-forward-set-scroll-size]. Arg is number of lines to scroll. (defalias 'View-scroll-lines-backward #[(&optional lines) " \f ![ [!" [View-scroll-lines-forward lines prefix-numeric-value view-scroll-size] 3 (#$ . 10010) "P"]) #@258 Search forward for Nth occurrence of REGEXP. Displays line found at center of window. REGEXP is remembered for searching with \[View-search-last-regexp-forward] and \[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring. (defalias 'View-search-regexp-forward #[(n regexp) "GV \"" [regexp 0 view-search n] 3 (#$ . 10357) "p\nsSearch forward (regexp): "]) #@275 Search backward from window start for Nth instance of REGEXP. Displays line found at center of window. REGEXP is remembered for searching with \[View-search-last-regexp-forward] and \[View-search-last-regexp-backward]. Sets mark at starting position and pushes mark ring. (defalias 'View-search-regexp-backward #[(n regexp) " [\n\"" [View-search-regexp-forward n regexp] 3 (#$ . 10762) "p\nsSearch backward (regexp): "]) #@160 Search forward from window end for Nth instance of last regexp. Displays line found at center of window. Sets mark at starting position and pushes mark ring. (defalias 'View-search-last-regexp-forward #[(n) " \n\"" [View-search-regexp-forward n view-last-regexp] 3 (#$ . 11194) "p"]) #@163 Search backward from window start for Nth instance of last regexp. Displays line found at center of window. Sets mark at starting position and pushes mark ring. (defalias 'View-search-last-regexp-backward #[(n) " \n\"" [View-search-regexp-backward n view-last-regexp] 3 (#$ . 11488) "p"]) #@165 Return to last mark set in View mode, else beginning of file. Displays line at center of window. Pops mark ring so successive invocations return to earlier marks. (defalias 'View-back-to-mark #[(&optional ignore) " eb ĥ!" [mark pop-mark recenter view-window-size 2] 3 (#$ . 11787) nil]) (defalias 'view-search #[(times regexp) " WƂ! $`) 5 by ͥ!> #!)" [regexp view-last-regexp nil where move-to-window-line times 0 -1 re-search-forward t push-mark recenter view-window-size 2 message "Can't find occurrence %d of %s" sit-for 4] 5]) (provide (quote view))