Server IP : 111.118.215.189 / Your IP : 18.117.158.174 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/textmodes/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:52 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/textmodes/two-column.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\302\303\304\305\306\307&\210\310\311\312\313\314\315\306\301&\210\310\316\317\320\314\321\306\301&\210\310\322\323\324\314\325\306\301&\210\326\322\327\330#\210\310\331\332\333\314\334\306\301&\210\335\331!\210\326\331\327\330#\210\310\336\337\340\314\334\306\301&\210\310\341\330\342\314\343\306\301&\207" [custom-declare-group two-column nil "Minor mode for editing of two-column text." :prefix "2C-" :group frames custom-declare-variable 2C-mode-line-format '("-%*- %15b --" (-3 . "%p") "--%[(" mode-name minor-mode-alist "%n" mode-line-process ")%]%-") "Value of `mode-line-format' for a buffer in two-column minor mode." :type sexp 2C-other-buffer-hook 'text-mode "Hook run in new buffer when it is associated with current one." function 2C-separator "" "A string inserted between the two columns when merging.\nThis gets set locally by \\[2C-split]." string put permanent-local t 2C-window-width 40 "The width of the first column. (Must be at least `window-min-width'.)\nThis value is local for every buffer that sets it." integer make-variable-buffer-local 2C-beyond-fill-column 4 "Base for calculating `fill-column' for a buffer in two-column minor mode.\nThe value of `fill-column' becomes `2C-window-width' for this buffer\nminus this value." 2C-autoscroll "If non-nil, Emacs attempts to keep the two column's buffers aligned." boolean] 8) #@53 Keymap for commands for setting up two-column mode. (defvar 2C-mode-map (byte-code "\301 \302\303\304#\210\302\305\304#\210\302\306\307#\210\302\310\311#\210)\207" [map make-sparse-keymap define-key "2" 2C-two-columns [f2] "b" 2C-associate-buffer "s" 2C-split] 4) (#$ . 1942)) (fset '2C-command 2C-mode-map) #@49 Keymap for commands for use in two-column mode. (defvar 2C-minor-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210)\207" [map make-sparse-keymap define-key "1" 2C-merge "d" 2C-dissociate "o" 2C-associated-buffer " " 2C-newline "|" 2C-toggle-autoscroll "{" 2C-shrink-window-horizontally "}" 2C-enlarge-window-horizontally] 4) (#$ . 2262)) (byte-code "\303\304 \305\306 \307 $\210\305\310\311\307 $\210\305\312\313\307 $\210)B\nB\303\207" [map 2C-minor-mode-map minor-mode-map-alist 2C-mode make-sparse-keymap substitute-key-definition 2C-command current-global-map enlarge-window-horizontally 2C-enlarge-window-horizontally shrink-window-horizontally 2C-shrink-window-horizontally] 6) #@46 Marker to the associated buffer, if non-nil. (defvar 2C-mode nil (#$ . 3063)) (byte-code "\301\302!\210\303\302\304\305#\210\306B\301\207" [minor-mode-alist make-variable-buffer-local 2C-mode put permanent-local t (2C-mode " 2C")] 4) (defvar 2C-autoscroll-start nil) (make-variable-buffer-local '2C-autoscroll-start) (defalias '2C-other #[(&optional req) "\203 \304! \206 \305\300!\210\305\302!\210\205 \306\307!\207" [2C-mode 2C-mode-line-format mode-line-format req marker-buffer kill-local-variable error "You must first set two-column minor mode"] 2]) #@1569 Minor mode for independently editing two columns. This is set up for two associated buffers by the three commands bound to \[2C-two-columns] , \[2C-associate-buffer] and \[2C-split]. Turning on two-column mode calls the value of the variable `2C-mode-hook', if that value is non-nil. These buffers can be edited separately, for example with `fill-paragraph'. If you want to disable parallel scrolling temporarily, use \[2C-toggle-autoscroll] . If you include long lines that span both columns (e.g., source code), they should be in what will be the first column, with the associated buffer having empty lines next to them. Potential uses are writing bilingual texts, or editing the comments of a source code. See the file lisp/two-column.el for detailed examples. You have the following commands at your disposal: \[2C-two-columns] Rearrange screen with current buffer first \[2C-associate-buffer] Reassociate buffer after changing major mode \[shrink-window-horizontally], \[enlarge-window-horizontally] Shrink, enlarge current column \[2C-associated-buffer] Switch to associated buffer at same point \[2C-newline] Insert newline(s) in both buffers at same point \[2C-merge] Merge both buffers \[2C-dissociate] Dissociate the two buffers These keybindings can be customized in your init file by `2C-mode-map', `2C-minor-mode-map' and by binding `2C-command' to some prefix. The appearance of the screen can be customized by the variables `2C-window-width', `2C-beyond-fill-column', `2C-mode-line-format' and `truncate-partial-width-windows'. (defalias '2C-mode #[(other) "\306\307\310\311\312$\210 Z \313\314!\207" [2C-window-width 2C-beyond-fill-column fill-column 2C-mode-line-format mode-line-format other add-hook post-command-hook 2C-autoscroll nil t run-hooks 2C-mode-hook 2C-mode] 5 (#$ . 3636)]) #@389 Split current window vertically for two-column editing. \<global-map>When called the first time, associates a buffer with the current buffer in two-column minor mode (use \[describe-mode] once in the mode, for details.). It runs `2C-other-buffer-hook' in the new buffer. When called again, restores the screen layout with the current buffer first and the associated buffer to its right. (defalias '2C-two-columns #[(&optional buffer) "\304 \204\n \305\306\307\"\210\310 \311 Z^]!\210\312 \203/ \313\314!\210\315\312 !\210\313\316!\210\n\205U \317\307!\207\320\321 \313\314!\210\315\206A \322\323\324 P!!\210\204K \325\326!\210!\210\320\321 \313\316!\210!\207" [window-min-width 2C-window-width 2C-autoscroll buffer window-full-width-p enlarge-window 99999 t split-window-right frame-width 2C-other other-window 1 switch-to-buffer -1 2C-toggle-autoscroll 2C-mode point-marker generate-new-buffer "2C/" buffer-name run-hooks 2C-other-buffer-hook] 6 (#$ . 5479) "P"]) #@197 Associate another buffer with this one in two-column minor mode. Can also be used to associate a just previously visited file, by accepting the proposed default buffer. (See \[describe-mode] .) (defalias '2C-associate-buffer #[nil "p\304 \206 \305\306\307 \"\310rq\210\304 \203'