?
Current Path : /usr/share/emacs/24.3/lisp/textmodes/ |
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/textmodes/picture.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:48 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/textmodes/picture.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\312\317\314\315\306\301&\210\310\320\312\321\314\315\306\301&\210\310\322\312\323\314\315\306\301&\210\310\324\325\326\314\315\306\301&\210\310\327\330\331\314\315\306\301&\207" [custom-declare-group picture nil "Editing text-based pictures (\"ASCII art\")." :prefix "picture-" :group wp custom-declare-variable picture-rectangle-ctl 43 "Character `picture-draw-rectangle' uses for top left corners." :type character picture-rectangle-ctr "Character `picture-draw-rectangle' uses for top right corners." picture-rectangle-cbr "Character `picture-draw-rectangle' uses for bottom right corners." picture-rectangle-cbl "Character `picture-draw-rectangle' uses for bottom left corners." picture-rectangle-v 124 "Character `picture-draw-rectangle' uses for vertical lines." picture-rectangle-h 45 "Character `picture-draw-rectangle' uses for horizontal lines."] 8) #@169 Desired current column for Picture mode. When a cursor is on a wide-column character (e.g. Chinese, Japanese, Korean), this may may be different from `current-column'. (defvar picture-desired-column 0 (#$ . 1523)) #@233 Maybe update `picture-desired-column'. If the value of `picture-desired-column' is more than one column from `current-column', or if the argument ADJUST-TO-CURRENT is non-nil, set it to the current column. Return `current-column'. (defalias 'picture-update-desired-column #[(adjust-to-current) "i \204 \nSW\204 \nTV\203 )\207" [current-column adjust-to-current picture-desired-column] 2 (#$ . 1744)]) #@155 Position point at the beginning of the line. With ARG not nil, move forward ARG - 1 lines first. If scan reaches end of buffer, stop there without error. (defalias 'picture-beginning-of-line #[(&optional arg) "\203\n \302!Sy\210\303 \210\304\211\207" [arg picture-desired-column prefix-numeric-value beginning-of-line 0] 2 (#$ . 2162) "^P"]) #@173 Position point after last non-blank character on current line. With ARG not nil, move forward ARG - 1 lines first. If scan reaches end of buffer, stop there without error. (defalias 'picture-end-of-line #[(&optional arg) "\203\n \302!Sy\210\303 \210\304`\305\210x\210i\211\207" [arg picture-desired-column prefix-numeric-value beginning-of-line " " nil] 3 (#$ . 2514) "^P"]) #@91 Move cursor right, making whitespace if necessary. With argument, move that many columns. (defalias 'picture-forward-column #[(arg &optional interactive) "\305\306 !\210\307\n\\]\310\n\311\"\211\nV\205 \307W\205 \312u*\207" [deactivate-mark interactive picture-desired-column arg current-column nil picture-update-desired-column 0 move-to-column t -1] 4 (#$ . 2900) "^p\nd"]) #@90 Move cursor left, making whitespace if necessary. With argument, move that many columns. (defalias 'picture-backward-column #[(arg &optional interactive) "\302!\210\303 [!\207" [interactive arg picture-update-desired-column picture-forward-column] 2 (#$ . 3289) "^p\nd"]) #@92 Move vertically down, making whitespace if necessary. With argument, move that many lines. (defalias 'picture-move-down #[(arg) "\304\305\304!\210\306 !\210\307\n\310\"\211\nV\205 \311u*\207" [deactivate-mark arg picture-desired-column current-column nil picture-update-desired-column picture-newline move-to-column t -1] 4 (#$ . 3568) "^p"]) #@65 Amount to move vertically after text character in Picture mode. (defvar picture-vertical-step 0 (#$ . 3920)) #@67 Amount to move horizontally after text character in Picture mode. (defvar picture-horizontal-step 1 (#$ . 4035)) #@90 Move vertically up, making whitespace if necessary. With argument, move that many lines. (defalias 'picture-move-up #[(arg) "\301\302!\210\303[!\207" [arg picture-update-desired-column nil picture-move-down] 2 (#$ . 4154) "^p"]) #@60 Move right after self-inserting character in Picture mode. (defalias 'picture-movement-right #[nil "\300\301\302\"\207" [picture-set-motion 0 1] 3 (#$ . 4390) nil]) #@59 Move left after self-inserting character in Picture mode. (defalias 'picture-movement-left #[nil "\300\301\302\"\207" [picture-set-motion 0 -1] 3 (#$ . 4561) nil]) #@57 Move up after self-inserting character in Picture mode. (defalias 'picture-movement-up #[nil "\300\301\302\"\207" [picture-set-motion -1 0] 3 (#$ . 4731) nil]) #@59 Move down after self-inserting character in Picture mode. (defalias 'picture-movement-down #[nil "\300\301\302\"\207" [picture-set-motion 1 0] 3 (#$ . 4897) nil]) #@117 Move up and left after self-inserting character in Picture mode. With prefix argument, move up and two-column left. (defalias 'picture-movement-nw #[(&optional arg) "\301\302\203\n \303\202 \302\"\207" [arg picture-set-motion -1 -2] 3 (#$ . 5067) "P"]) #@119 Move up and right after self-inserting character in Picture mode. With prefix argument, move up and two-column right. (defalias 'picture-movement-ne #[(&optional arg) "\301\302\203\n \303\202 \304\"\207" [arg picture-set-motion -1 2 1] 3 (#$ . 5329) "P"]) #@121 Move down and left after self-inserting character in Picture mode. With prefix argument, move down and two-column left. (defalias 'picture-movement-sw #[(&optional arg) "\301\302\203\n \303\202 \304\"\207" [arg picture-set-motion 1 -2 -1] 3 (#$ . 5594) "P"]) #@123 Move down and right after self-inserting character in Picture mode. With prefix argument, move down and two-column right. (defalias 'picture-movement-se #[(&optional arg) "\301\302\203\n \303\202 \302\"\207" [arg picture-set-motion 1 2] 3 (#$ . 5862) "P"]) #@129 Set VERTICAL and HORIZONTAL increments for movement in Picture mode. The mode line is updated to reflect the current direction. (defalias 'picture-set-motion #[(vert horiz) "\n\305\306\307\310\n\311\246\310\246T\312_#\3138\"\314 \210\315\316!\207" [vert picture-vertical-step horiz picture-horizontal-step mode-name format "Picture:%s" + 2 3 5 (wnw nw up ne ene Left left none right Right wsw sw down se ese) force-mode-line-update message ""] 7 (#$ . 6128)]) #@77 Move in direction of `picture-vertical-step' and `picture-horizontal-step'. (defalias 'picture-move #[nil "\302U\204\n \303!\210 \302U?\205 \304 !\207" [picture-vertical-step picture-horizontal-step 0 picture-move-down picture-forward-column] 2 (#$ . 6599)]) #@260 Move point in direction of current picture motion in Picture mode. With ARG do it that many times. Useful for delineating rectangles in conjunction with diagonal picture motion. Use "\[command-apropos] picture-movement" to see commands which control motion. (defalias 'picture-motion #[(arg) "\303 _!\210\304\n_!\207" [arg picture-vertical-step picture-horizontal-step picture-move-down picture-forward-column] 3 (#$ . 6868) "^p"]) #@269 Move point in direction opposite of current picture motion in Picture mode. With ARG do it that many times. Useful for delineating rectangles in conjunction with diagonal picture motion. Use "\[command-apropos] picture-movement" to see commands which control motion. (defalias 'picture-motion-reverse #[(arg) "\301[!\207" [arg picture-motion] 2 (#$ . 7310) "^p"]) #@70 Move point to the position of EVENT, making whitespace if necessary. (defalias 'picture-mouse-set-point #[(event) "\306!\211\211A@:\203 A@@\202 A@\2119\205 \n*?\205\257 \211@)\307!\2033 \2026 \310! \311 8)\312!\313!\311 8) @@Z AAZ\314\f!\315\f!\205y r\316!q\210)\206y \317\f\320\"\321!\203\216 \322_!\202\226 \204\226 \323b\210\324\\\245!\210\325\326\f!\245!. )\207" [event position area window frame pair event-start framep window-frame 2 window-start posn-at-point frame-char-height display-graphic-p window-buffer frame-parameter line-spacing floatp truncate 0 picture-move-down picture-forward-column frame-char-width start-pos start-pair dx dy char-ht spacing] 5 (#$ . 7682) "e"]) (defalias 'picture-insert #[(ch arg) "\306!\n\307U\203 \310V\203 \311!\312W\203 \312_\202 \f\307V\205Y \fS iU\2044 \313 \314\"\210 \\l\204L `\313\314\"\210`|\210))c\210\315u\210\316 \210\202 *\207" [ch width picture-vertical-step picture-horizontal-step arg picture-desired-column char-width 0 1 abs 2 move-to-column t -1 picture-move col pos] 3]) #@272 Insert this character in place of character previously at the cursor. The cursor then moves in the direction you previously specified with the commands `picture-movement-right', `picture-movement-up', etc. Use "\[command-apropos] picture-movement" to see those commands. (defalias 'picture-self-insert #[(arg) "\304 =?!\210\305\n\"\207" [this-command last-command last-command-event arg picture-update-desired-column picture-insert] 3 (#$ . 8809) "p"]) #@51 Clear out ARG columns after point without moving. (defalias 'picture-clear-column #[(arg) "i\305 \\]\306\307\n\310\"\210`\307!\210`|\210\212\n]j\210,i\211\207" [original-col arg target-col pos picture-desired-column 0 nil move-to-column t] 3 (#$ . 9270) "p"]) #@60 Clear out ARG columns before point, moving back over them. (defalias 'picture-backward-clear-column #[(arg) "\301[!\207" [arg picture-clear-column] 2 (#$ . 9545) "p"]) #@219 Clear out rest of line; if at end of line, advance to next line. Cleared-out line text goes into the kill ring, as do newlines that are advanced over. With argument, clear out (and save in kill ring) that many lines. (defalias 'picture-clear-line #[(arg) "\203 \301!\302!\210\303\304V\203 \202 [!\207\305\306!\203) \307`\310y\210`\"\207\311`\312\210`\"\207" [arg prefix-numeric-value kill-line newline 0 looking-at "[ ]*$" kill-ring-save 1 kill-region nil] 3 (#$ . 9721) "P"]) #@152 Move to the beginning of the following line. With argument, moves that many lines (up, if negative argument); always moves to the beginning of a line. (defalias 'picture-newline #[(arg) "`ym\203 `\nV\203 \303 \210 \304V\205 \303 !*\207" [arg lines-left start newline 0] 2 (#$ . 10218) "^p"]) #@93 Insert an empty line after the current line. With positive argument insert that many lines. (defalias 'picture-open-line #[(arg) "\212\301\210\302!)\207" [arg nil open-line] 2 (#$ . 10522) "p"]) #@51 Insert a duplicate of the current line, below it. (defalias 'picture-duplicate-line #[nil "\212\301 \210`\302\303!\210`{\304y\210c*\207" [contents beginning-of-line picture-newline 1 -1] 3 (#$ . 10725) nil]) (defalias 'picture-replace-match #[(newtext fixedcase literal) "\306\211\211\307\225\211b\210i\306\211\310 #\210i\nZ\f\211\203- \311\312\"\211\204$ *b\210 \307V\203B `\313 i\\\314\"\210`|\210\310 #\210 \307W\205U \315\316 [\"+\207" [pos change ocolumn list1 buffer-undo-list newtext nil 0 replace-match primitive-undo 1 move-to-column t insert-char 32 fixedcase literal] 5]) #@1308 A character set which controls behavior of commands. \[picture-set-tab-stops] and \[picture-tab-search]. The syntax for this variable is like the syntax used inside of `[...]' in a regular expression--but without the `[' and the `]'. It is NOT a regular expression, any regexp special characters will be quoted. It defines a set of "interesting characters" to look for when setting (or searching for) tab stops, initially "!-~" (all printing characters). For example, suppose that you are editing a table which is formatted thus: | foo | bar + baz | 23 * | bubbles | and + etc | 97 * and that `picture-tab-chars' is "|+*". Then invoking \[picture-set-tab-stops] on either of the previous lines would result in the following tab stops : : : : Another example - "A-Za-z0-9" would produce the tab stops : : : : Note that if you want the character `-' to be in the set, it must be included in a range or else appear in a context where it cannot be taken for indicating a range (e.g. "-A-Z" declares the set to be the letters `A' through `Z' and the character `-'). If you want the character `\' in the set it must be preceded by itself: "\\". The command \[picture-tab-search] is defined to move beneath (or to) a character belonging to this set independent of the tab stops list. (custom-declare-variable 'picture-tab-chars "!-~" '(#$ . 11338) :type 'string :group 'picture) #@477 Set value of `tab-stop-list' according to context of this line. This controls the behavior of \[picture-tab]. A tab stop is set at every column occupied by an "interesting character" that is preceded by whitespace. Interesting characters are defined by the variable `picture-tab-chars', see its documentation for an example of usage. With ARG, just (re)set `tab-stop-list' to its default value. The tab stops computed are displayed in the minibuffer with `:' at each stop. (defalias 'picture-set-tab-stops #[(&optional arg) "\212\306 \203 \307\305!\202<