;ELC ;;; compiled by kwzh@psilocin.gnu.ai.mit.edu on Sat Jul 20 03:17:36 1996 ;;; from file /gd/gnu/emacs/19.0/lisp/view.el ;;; emacs version 19.31.96.1. ;;; 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.29"))) (error "`view.el' was compiled for Emacs 19.29 or later")) #@78 *The overlay face used for highlighting the match found by View mode search. (defvar view-highlight-face (quote highlight) (#$ . -472)) #@34 Non-nil if View mode is enabled. (defvar view-mode nil (#$ . 614)) (make-variable-buffer-local (quote view-mode)) #@199 Non-nil means scrolling past the end of buffer exits View mode. Some commands, such as \[view-file], set this to t locally; the only way to override that is to set it to nil using `view-mode-hook'. (defvar view-mode-auto-exit nil (#$ . 735)) (byte-code "ÀÁ!ˆÂÃ!„\fÄà BÀÃ!ˆÆ BÀÆ!ˆÂÇ!„%ÄÇ BÀÇ!ˆÂÈ!„6ÄÈ BÀÈ!ˆÂÉ!„GÄ É BÀÉ!ˆÂÊ!„XÄ\nÊ BÀÊ!ˆÂË!„iÄ Ë BÀË!‡" [make-variable-buffer-local view-mode-auto-exit boundp view-old-buffer-read-only nil current-load-list view-old-Helper-return-blurb view-scroll-size view-last-regexp view-exit-action view-return-here view-exit-position] 2) #@114 Overlay used to display where a search operation found its match. This is local in each buffer, once it is used. (defvar view-overlay nil (#$ . 1336)) (byte-code "ÀÁ!ˆÂ ž„Ä BÅÆ!„ÇÆB„ÜÉ ÊËÌ#ˆÊÍÎ#ˆÊÏÐ#ˆÊÑÒ#ˆÊÓÔ#ˆÊÕÔ#ˆÊÖÒ#ˆÊר#ˆÊÙØ#ˆÊÚÛ#ˆÊÜÝ#ˆÊÞß#ˆÊàá#ˆÊâã#ˆÊäã#ˆÊåæ#ˆÊçè#ˆÊéè#ˆÊêë#ˆÊìí#ˆÊîï#ˆÊðñ#ˆÊòï#ˆÊóñ#ˆÊôõ#ˆÊö÷#ˆÂ8ž„ìÂB8B8LJ" [make-variable-buffer-local view-overlay view-mode minor-mode-alist (view-mode " View") boundp view-mode-map nil current-load-list make-keymap define-key "q" view-exit "<" beginning-of-buffer ">" end-of-buffer "v" View-scroll-lines-backward "" View-scroll-lines-forward " " "" "\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" describe-mode "?" "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 minor-mode-map-alist] 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-enter buffer-modified-p kill-buffer] 4 (#$ . 2450) "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!ˆÈ ?… É\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-enter buffer-modified-p kill-buffer] 4 (#$ . 3083) "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-enter nil] 3 (#$ . 3795) "bView buffer: "]) #@442 View BUFFER in View mode in another window. Return to previous buffer when done, unless NOT-RETURN is non-nil. 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-enter] 2 (#$ . 4336) "bView buffer:\nP"]) #@1841 Toggle View mode. With a prefix argument, turn View mode on if the argument is >= zero and off if it is not. If you use this function to turn on View mode, then subsequently "exiting" View mode does nothing except turn View mode off. The other way to turn View mode on is by calling `view-mode-enter'; that is what Lisp programs usually use. 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). \[help-command] 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 exit view-mode and return to previous buffer. (defalias 'view-mode #[(&optional arg) "„ ?‚Â!ÃVÄ ‡" [arg view-mode prefix-numeric-value 0 force-mode-line-update] 2 (#$ . 5014) "P"]) #@187 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'. \{view-mode-map} (defalias 'view-mode-enter #[(&optional prev-buffer action) "ÂÃ!… ÅÅÅÈÉÊ ƒ ËÊ !‚\"Ì \" Ñ ÓyˆÔÖ×!ˆØÙÚÛ!\"‡" [buffer-read-only view-old-buffer-read-only boundp Helper-return-blurb view-old-Helper-return-blurb t view-mode-auto-exit view-mode format "continue viewing %s" buffer-file-name file-name-nondirectory buffer-name action view-exit-action prev-buffer view-return-here point-marker view-exit-position 0 nil goal-column run-hooks view-mode-hook message "%s" substitute-command-keys "Type \\[help-command] for help, \\[describe-mode] for commands, \\[view-exit] to quit."] 4 (#$ . 7003)]) #@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ƒ\nÃ\n!ˆÄ ˆ …NÀbˆÀ‰“ˆp \n Ì !ƒ7Î !ˆ‚CÏ !ƒCÐ !ˆ\n…M\n !*‡" [nil view-mode view-overlay delete-overlay force-mode-line-update view-mode-auto-exit view-old-buffer-read-only buffer-read-only view-exit-position view-exit-action action viewed-buffer bufferp view-return-here switch-to-buffer window-configuration-p set-window-configuration] 3 (#$ . 7811) 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-mode-hook nil (#$ . 8548)) #@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 #[(line) "À ˆÁ\n!ˆÃÄ Å¥!‡" [push-mark goto-line line recenter view-window-size 2] 3 (#$ . 8651) "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) "ƒ\nÁ!‚\f Ãd!ƒ ÄVƒ ƒ Æ ‡Ç Yƒ.ÈÉ!ˆ‚A[Ç Yƒ=ÊÉ!ˆ‚AÈ!ˆÃd!ƒQdbˆËÌÍÎ!\"ˆÏÐ!ˆÄyˆÉ‡" [lines prefix-numeric-value view-scroll-size pos-visible-in-window-p 0 view-mode-auto-exit view-exit view-window-size scroll-up nil scroll-down message "%s" substitute-command-keys "End. Type \\[view-exit] to quit viewing." move-to-window-line -1] 4 (#$ . 8901) "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 (#$ . 9532) "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 (#$ . 10246) "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 (#$ . 10451) "P"]) #@367 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. The variable `view-highlight-face' controls the face that is used for highlighting the match that is found. (defalias 'View-search-regexp-forward #[(n regexp) "À \nÚƒ\f\f‚ \n\"‡" [view-search n regexp "" view-last-regexp] 4 (#$ . 10798) "p\nsSearch forward (regexp): "]) #@384 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. The variable `view-highlight-face' controls the face that is used for highlighting the match that is found. (defalias 'View-search-regexp-backward #[(n regexp) "À [\nÚƒ \f‚\n\"‡" [View-search-regexp-forward n regexp "" view-last-regexp] 4 (#$ . 11337) "p\nsSearch backward (regexp): "]) #@269 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. The variable `view-highlight-face' controls the face that is used for highlighting the match that is found. (defalias 'View-search-last-regexp-forward #[(n) "ƒ Á\n\"‡ÃÄ!‡" [view-last-regexp View-search-regexp-forward n error "No previous View-mode search"] 3 (#$ . 11910) "p"]) #@272 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. The variable `view-highlight-face' controls the face that is used for highlighting the match that is found. (defalias 'View-search-last-regexp-backward #[(n) "ƒ Á\n\"‡ÃÄ!‡" [view-last-regexp View-search-regexp-backward n error "No previous View-mode search"] 3 (#$ . 12358) "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 t pop-mark recenter view-window-size 2] 3 (#$ . 12811) nil]) (defalias 'view-search #[(times regexp) "ÂŠÄ ÆWƒÆ‚Ç!ˆÈÂÉ $ƒ`) ƒVÊ ˆ bˆ ƒ:Ì Ɣƕ#ˆ‚BÍÆ”Æ•\" Î Ï#ˆÆyˆÑÒ Ó¥!‚_ÔÕ #ˆÖ×!)‡" [regexp view-last-regexp nil where move-to-window-line times 0 -1 re-search-forward t push-mark view-overlay move-overlay make-overlay overlay-put face view-highlight-face recenter view-window-size 2 message "Can't find occurrence %d of %s" sit-for 4] 5]) (provide (quote view))