?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/follow.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:18 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/follow.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\306\310&\210\311\312\304\313\314\315\306\303&\210\311\316\317\320\314\321\306\303&\207" [require easymenu custom-declare-group follow nil "Synchronize windows showing the same buffer." :group windows convenience custom-declare-variable follow-mode-hook "Normal hook run by `follow-mode'." :type hook follow-mode-prefix "." "Prefix key to use for follow commands in Follow mode.\nThe value of this variable is checked as part of loading Follow mode.\nAfter that, changing the prefix key requires manipulating keymaps." string] 8) #@36 Minor mode keymap for Follow mode. (defvar follow-mode-map (byte-code "\303 \303 \304\305\306#\210\304\307\310#\210\304\311\310#\210\304\312\313#\210\304\314\315#\210\304\316\317#\210\304\320\321#\210\304\322\323#\210\304\324\325#\210\304\326\327#\210\304\330\331#\210\304 \n#\210\304 \332\333#\210\304 \334\335#\210\304 \336\337#\210\304 \340\341#\210\304 \342\343#\210\304 \344\345#\210 *\207" [map mainmap follow-mode-prefix make-sparse-keymap define-key "" follow-scroll-up "\366" follow-scroll-down "v" "1" follow-delete-other-windows-and-split "b" follow-switch-to-buffer "" follow-switch-to-buffer-all "\f" follow-recenter "<" follow-first-window ">" follow-last-window "n" follow-next-window "p" follow-previous-window [remap end-of-buffer] follow-end-of-buffer [remap scroll-bar-toolkit-scroll] follow-scroll-bar-toolkit-scroll [remap scroll-bar-drag] follow-scroll-bar-drag [remap scroll-bar-scroll-up] follow-scroll-bar-scroll-up [remap scroll-bar-scroll-down] follow-scroll-bar-scroll-down [remap mwheel-scroll] follow-mwheel-scroll] 4) (#$ . 1132)) (defalias 'follow-menu-filter #[(menu) "\302\300!\203\f \203\f \207\303\207" [follow-mode menu boundp (["Follow mode" follow-mode :style toggle :selected follow-mode])] 2]) (byte-code "\300\301\302\303#\210\304\305\306\307\310\311\312\313&\210\304\314\301\315\310\316\312\313\317\320& \207" [easy-menu-add-item nil ("Tools") ("Follow" :filter follow-menu-filter ["Scroll Up" follow-scroll-up follow-mode] ["Scroll Down" follow-scroll-down follow-mode] "--" ["Delete Other Windows and Split" follow-delete-other-windows-and-split follow-mode] "--" ["Switch To Buffer" follow-switch-to-buffer follow-mode] ["Switch To Buffer (all windows)" follow-switch-to-buffer-all follow-mode] "--" ["First Window" follow-first-window follow-mode] ["Last Window" follow-last-window follow-mode] ["Next Window" follow-next-window follow-mode] ["Previous Window" follow-previous-window follow-mode] "--" ["Recenter" follow-recenter follow-mode] "--" ["Follow mode" follow-mode :style toggle :selected follow-mode]) custom-declare-variable follow-mode-line-text " Follow" "Text shown in the mode line when Follow mode is active.\nDefaults to \" Follow\". Examples of other values\nare \" Fw\", or simply \"\"." :type string :group follow follow-auto "Non-nil activates Follow mode whenever a file is loaded." boolean :set #[(symbol value) "\203 \302\303\304\305#\210\202 \306\303\304\"\210\307 \"\207" [value symbol add-hook find-file-hook follow-find-file-hook t remove-hook set-default] 4]] 10) #@365 List of commands that don't require recalculation. In order to be able to use the cache, a command should not change the contents of the buffer, nor should it change selected window or current buffer. The commands in this list are checked at load time. To mark other commands as suitable for caching, set the symbol property `follow-mode-use-cache' to non-nil. (defvar follow-cache-command-list '(next-line previous-line forward-char backward-char) (#$ . 3704)) #@50 If non-nil, emit Follow mode debugging messages. (custom-declare-variable 'follow-debug nil '(#$ . 4175) :type 'boolean :group 'follow) #@53 True when Follow mode should redisplay the windows. (defvar follow-internal-force-redisplay nil (#$ . 4317)) #@46 The menu visible when Follow mode is active. (defvar follow-active-menu nil (#$ . 4432)) #@48 The menu visible when Follow mode is inactive. (defvar follow-inactive-menu nil (#$ . 4527)) #@92 Non-nil when inside Follow modes `post-command-hook'. Used by `follow-window-size-change'. (defvar follow-inside-post-command-hook nil (#$ . 4626)) #@42 Cache used by `follow-window-start-end'. (defvar follow-windows-start-end-cache nil (#$ . 4780)) #@65 Like `message', but only active when `follow-debug' is non-nil. (defalias 'follow-debug-message #[(&rest args) "\302\300!\205 \205 \303\304 \"\207" [follow-debug args boundp apply message] 3 (#$ . 4883)]) (byte-code "\303\304\305\306#\210\307\211\203 \n@\303 \310\311#\210\nA\211\204 *\307\207" [follow-cache-command-list cmd --dolist-tail-- put follow-debug-message byte-optimizer byte-compile-inline-expand nil follow-mode-use-cache t] 5) #@62 Turn on Follow mode. Please see the function `follow-mode'. (defalias 'turn-on-follow-mode #[nil "\300\301!\207" [follow-mode 1] 2 (#$ . 5340)]) #@63 Turn off Follow mode. Please see the function `follow-mode'. (defalias 'turn-off-follow-mode #[nil "\300\301!\207" [follow-mode -1] 2 (#$ . 5492)]) (put 'follow-mode 'permanent-local t) #@91 Non-nil if Follow mode is enabled. Use the command `follow-mode' to change this variable. (defvar follow-mode nil (#$ . 5685)) (make-variable-buffer-local 'follow-mode) #@1366 Toggle Follow mode. With a prefix argument ARG, enable Follow mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. Follow mode is a minor mode that combines windows into one tall virtual window. This is accomplished by two main techniques: * The windows always displays adjacent sections of the buffer. This means that whenever one window is moved, all the others will follow. (Hence the name Follow mode.) * Should the point (cursor) end up outside a window, another window displaying that point is selected, if possible. This makes it possible to walk between windows using normal cursor movement commands. Follow mode comes to its prime when used on a large screen and two side-by-side windows are used. The user can, with the help of Follow mode, use two full-height windows as though they would have been one. Imagine yourself editing a large function, or section of text, and being able to use 144 lines instead of the normal 72... (your mileage may vary). To split one large window into two side-by-side windows, the commands `\[split-window-right]' or `M-x follow-delete-other-windows-and-split' can be used. Only windows displayed in the same frame follow each other. This command runs the normal hook `follow-mode-hook'. Keys specific to Follow mode: \{follow-mode-map} (defalias 'follow-mode #[(&optional arg) "\305 \306=\203 \n?\202 \307 !\310V\211\203. \311\312\313\314\211$\210\311\315\316\314#\210\311\317\320\314#\210\202\\ \321 \322\204G \f\203G \323\302\f@\"\fA\2023 \204U \324\315\316\"\210\324\317\320\"\210*\324\312\313\314#\210\325\326\n\203f \327\202g \330\"\210\331\332!\203\210 \305 \203{ \305 \232\203\210 \333\334\n\203\205 \335\202\206 \336\"\210)\337 \210\n\207" [#1=#:last-message arg follow-mode following buffers current-message toggle prefix-numeric-value 0 add-hook compilation-filter-hook follow-align-compilation-windows t post-command-hook follow-post-command-hook window-size-change-functions follow-window-size-change buffer-list nil buffer-local-value remove-hook run-hooks follow-mode-hook follow-mode-on-hook follow-mode-off-hook called-interactively-p any message "Follow mode %sabled" "en" "dis" force-mode-line-update] 6 (#$ . 5862) (list (or current-prefix-arg 'toggle))]) (byte-code "\301\302\303\303\211%\207" [follow-mode-map add-minor-mode follow-mode nil] 6) #@66 Find-file hook for Follow mode. See the variable `follow-auto'. (defalias 'follow-find-file-hook #[nil "\205 \301\302!\207" [follow-auto follow-mode 1] 2 (#$ . 8276)]) #@318 Scroll text in a Follow mode window chain up. If called with no ARG, the `next-screen-context-lines' last lines of the bottom window in the chain will be visible in the top window. If called with an argument, scroll ARG lines up. Negative ARG means scroll downward. Works like `scroll-up' when not in Follow mode. (defalias 'follow-scroll-up #[(&optional arg) "\204 \306 !\207 \203 \212\306 !\210)\307\211\207\310 \311\312!@!\211d=\203- \313\314\315\"\202C \316@!\210\f\2039 \fb\210\317 [!\210\320@`\"*\207" [follow-mode arg follow-internal-force-redisplay windows end next-screen-context-lines scroll-up t follow-all-followers window-end reverse signal end-of-buffer nil select-window vertical-motion set-window-start] 4 (#$ . 8454) "P"]) #@319 Scroll text in a Follow mode window chain down. If called with no ARG, the `next-screen-context-lines' top lines of the top window in the chain will be visible in the bottom window. If called with an argument, scroll ARG lines down. Negative ARG means scroll upward. Works like `scroll-up' when not in Follow mode. (defalias 'follow-scroll-down #[(&optional arg) "\204 \306 !\207 \203 \212\307 !)\207\310 \311\n!@\312\n@!\211e=\203, \313\314\315\"\202Y \316!\210\fb\210\317\320\321! \203@ \322\202A \323#[!\210\324`\"\210\fb\210\317S!\210\325\211+\207" [follow-mode arg windows win start header-line-format scroll-up scroll-down follow-all-followers reverse window-start signal beginning-of-buffer nil select-window vertical-motion - window-height 2 1 set-window-start t next-screen-context-lines follow-internal-force-redisplay] 6 (#$ . 9213) "P"]) #@122 Scroll the bottom-most window in the current Follow chain. This is to be called by `comint-postoutput-scroll-to-bottom'. (defalias 'follow-comint-scroll-to-bottom #[(&optional window) "p\306 \307 =\310\n\204 \311 \211\205G \312\310!\210`\n\203% \202+ \313\314!!@\315 !\210\fb\210\310\316 \f\"\210\n?\205F \315 !\210q*,\207" [buffer selected is-selected some-window pos win selected-window window-buffer nil get-buffer-window comint-adjust-point last follow-all-followers select-window follow-adjust-window follow-windows-start-end-cache] 3 (#$ . 10088)]) #@107 Align the windows of the current Follow mode buffer. This is to be called from `compilation-filter-hook'. (defalias 'follow-align-compilation-windows #[nil "p\306 \307 \205>