;ELC ;;; compiled by jwz@thalidomide on Tue Mar 29 01:59:05 1994 ;;; from file /th/jwz/emacs19/lisp/modes/view.el ;;; emacs version 19.10 Lucid (beta10). ;;; bytecomp version 2.22; 22-dec-93. ;;; 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 "This file was compiled for Emacs 19.")) (byte-code "!  \" ! # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #‡" [boundp view-mode-map nil make-keymap set-keymap-name suppress-keymap define-key "" view-exit "" suspend-emacs "q" "<" beginning-of-buffer ">" end-of-buffer "" View-scroll-lines-backward "" View-scroll-lines-forward " " "" backspace "\n" View-scroll-one-more-line " " "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 "?" (control h) Helper-help "s" isearch-forward "r" isearch-backward "/" View-search-regexp-forward "\\" View-search-regexp-backward "" "" "n" View-search-last-regexp-forward "p" View-search-last-regexp-backward] 4) (fset 'view-file #[(file-name &optional other-window) "p ! ! ! \" ? !?\"+" [get-file-buffer file-name find-file-noselect buf-to-view had-a-buf old-buf other-window pop-to-buffer switch-to-buffer t view-mode buffer-modified-p kill-buffer] 4 "\ View FILE in View mode, returning to previous buffer when done. With a prefix argument, view it in another window. 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. Calls the value of view-hook if that is non-nil." "fView file: \nP"]) (fset 'view-buffer #[(buffer-name &optional other-window) "p ! \"\")" [old-buf other-window pop-to-buffer buffer-name switch-to-buffer t view-mode nil] 3 "\ View BUFFER in View mode, returning to previous buffer when done. With a prefix argument, view it in another window. 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. Calls the value of view-hook if that is non-nil." "bView buffer: \nP"]) (fset 'view-file-other-window #[(file) " \"" [view-file file t] 3 "\ Find FILE in other window, and enter view mode."]) (fset 'view-buffer-other-window #[(buffer) " \"" [view-buffer buffer t] 3 "\ Switch to BUFFER in another window, and enter view mode."]) (fset 'view-mode #[(&optional prev-buffer action) "!\n! !!!  !!   ЪC ! \" !!! !! 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-prev-buffer 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-helpful-message] 4 "\ 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). C-h 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 calls the value of view-hook if non-nil. \\{view-mode-map}"]) (fset 'view-exit #[nil "\n  ! \nb\nˉp  !  !*" [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 current-local-map view-old-buffer-read-only buffer-read-only view-exit-position nil view-exit-action action viewed-buffer switch-to-buffer view-prev-buffer] 3 "\ 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." nil]) (byte-code "MMM" [view-helpful-message #[nil "!=!=!=Ȫ!!" [message key-binding "" Helper-help "?" Helper-describe-bindings "" view-exit "Type C-h for help, ? for commands, C-c to quit" substitute-command-keys "Type \\[Helper-help] for help, \\[Helper-describe-bindings] for commands, \\[exit-recursive-edit] to quit."] 3] view-window-size #[nil " S" [window-height] 1] view-scroll-size #[nil " ^" [view-window-size view-scroll-size] 2]] 2) (defvar view-hook nil "\ If non-nil, its value is called when viewing buffer or file.") (fset 'View-goto-line #[(&optional line) " \n! ƥ!" [push-mark goto-line line 1 recenter view-window-size 2] 3 "\ Move to LINE in View mode. Display is centered at LINE. Sets mark at starting position and pushes mark ring." "p"]) (fset 'View-scroll-lines-forward #[(&optional lines) "d! \n\n!  Y!\n[ Y!\n!d!db!!!!yLJ" [pos-visible-in-window-p exit-recursive-edit lines prefix-numeric-value view-scroll-size view-window-size scroll-up nil scroll-down recenter -1 message substitute-command-keys "End. Type \\[exit-recursive-edit] to quit viewing." move-to-window-line 0] 4 "\ 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." "P"]) (fset 'View-scroll-lines-forward-set-scroll-size #[(&optional lines) " !V[ ^!" [lines view-window-size view-scroll-size prefix-numeric-value 0 View-scroll-lines-forward] 3 "\ 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." "P"]) (fset 'View-scroll-one-more-line #[(&optional arg) " ª!" [View-scroll-lines-forward arg 1 -1] 2 "\ Scroll one more line up in View mode. With ARG scroll one line down." "P"]) (fset 'View-scroll-lines-backward #[(&optional lines) " ![ [!" [View-scroll-lines-forward lines prefix-numeric-value view-scroll-size] 3 "\ 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." "P"]) (fset 'View-search-regexp-forward #[(times regexp) "GV \"" [regexp 0 view-search times] 3 "\ Search forward for NTH occurrence of REGEXP in View mode. 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." "p\nsSearch forward (regexp): "]) (fset 'View-search-regexp-backward #[(times regexp) " [\n\"" [View-search-regexp-forward times regexp] 3 "\ Search backward from window start for NTH instance of REGEXP in View mode. 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." "p\nsSearch backward (regexp): "]) (fset 'View-search-last-regexp-forward #[(times) " \n\"" [View-search-regexp-forward times view-last-regexp] 3 "\ Search forward from window end for NTH instance of last regexp in View mode. Displays line found at center of window. Sets mark at starting position and pushes mark ring." "p"]) (fset 'View-search-last-regexp-backward #[(times) " \n\"" [View-search-regexp-backward times view-last-regexp] 3 "\ Search backward from window start for NTH instance of last regexp in View mode. Displays line found at center of window. Sets mark at starting position and pushes mark ring." "p"]) (fset 'View-back-to-mark #[(&optional ignore) " eb ĥ!" [mark pop-mark recenter view-window-size 2] 3 "\ 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." nil]) (byte-code "M!" [view-search #[(times regexp) " Wƪ! $`) 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 view] 2)