?
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/indent.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/indent.el ;;; in Emacs version 24.3 ;;; 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%\210\306\307\310\311\304\301\312\313&\207" [custom-declare-group indent nil "Indentation commands." :group editing custom-declare-variable standard-indent 4 "Default number of columns for margin-changing functions to indent." :type integer] 8) #@336 Function to indent the current line. This function will be called with no arguments. If it is called somewhere where auto-indentation cannot be done (e.g. inside a string), the function should simply return `noindent'. Setting this function is all you need to make TAB indent appropriately. Don't rebind TAB unless you really need to. (defvar indent-line-function 'indent-relative (#$ . 830)) #@522 Controls the operation of the TAB key. If t, hitting TAB always just indents the current line. If nil, hitting TAB indents the current line if point is at the left margin or in the line's indentation, otherwise it inserts a "real" TAB character. If `complete', TAB first tries to indent the current line, and if the line was already indented, then try to complete the thing at point. Some programming language modes have their own variable to control this, e.g., `c-tab-always-indent', and do not respect this variable. (custom-declare-variable 'tab-always-indent t '(#$ . 1230) :group 'indent :type '(choice (const :tag "Always indent" t) (const :tag "Indent if inside indentation, else TAB" nil) (const :tag "Indent, or if already indented complete" complete))) #@368 Indent line in proper way for current major mode. Normally, this is done by calling the function specified by the variable `indent-line-function'. However, if the value of that variable is `indent-relative' or `indent-relative-maybe', handle it specially (since those functions are used for tabbing); in that case, indent by aligning to the previous non-blank line. (defalias 'indent-according-to-mode #[nil "\302\303 !\210\304>\203. \212\305 \210\306\307x\210\305 \210\310 )i\310 X\203' \311 !\202, \212\311 !))\207 \207" [indent-line-function column syntax-propertize line-end-position (indent-relative indent-relative-maybe) beginning-of-line "\n " nil current-indentation indent-line-to] 2 (#$ . 2002) nil]) #@912 Indent the current line or region, or insert a tab, as appropriate. This function either inserts a tab, or indents the current line, or performs symbol completion, depending on `tab-always-indent'. The function called to actually indent the line or insert a tab is given by the variable `indent-line-function'. If a prefix argument is given, after this function indents the current line or inserts a tab, it also rigidly indents the entire balanced expression which starts at the beginning of the current line, to reflect the current line's indentation. In most major modes, if point was in the current line's indentation, it is moved to the first non-whitespace character after indenting; otherwise it stays at the same position relative to the text. If `transient-mark-mode' is turned on and the region is active, this function instead calls `indent-region'. In this case, any prefix argument is ignored. (defalias 'indent-for-tab-command #[(&optional arg) "\306 \203\f \307\310 \311 \"\207\312=\204# \204' i\313 V\204# \n=\203' \314\f!\207\315 `\313 \210 \316=\203N `=\203N \315 =\203N \317 \202 \f\205 \212\320y\210\321 \210\322 )\313 Z\212\323y\210\324!?\205~ `W\205~ \325`#++\207" [indent-line-function tab-always-indent this-command last-command arg old-indent use-region-p indent-region region-beginning region-end indent-to-left-margin current-indentation insert-tab buffer-chars-modified-tick complete completion-at-point 0 forward-sexp point-marker 1 zerop indent-rigidly old-point old-tick indentation-change end-marker] 4 (#$ . 2726) "P"]) (defalias 'insert-tab #[(&optional arg) "\305!\n\203 hz\306=\203 \307 \210\203 \310\311 \"\202% \f i\f\245\\_j)\207" [arg count abbrev-mode indent-tabs-mode tab-width prefix-numeric-value 119 expand-abbrev insert-char 9] 4]) #@209 Indent all lines starting in the region sideways by ARG columns. Called from a program, takes three arguments, START, END and ARG. You can remove all indentation from a region by giving a large negative ARG. (defalias 'indent-rigidly #[(start end arg) "\212b\210\305 b\210n\204 \306y\210`W\203@ \307 \310\212\311\310w\210l)\n\2041 \312\313\f\\]\313\"\210`\311\310w\210`|\210*\306y\210\202 \310\211\223)\207" [end start eol-flag indent arg point-marker 1 current-indentation nil " " indent-to 0] 4 (#$ . 4550) "r\np"]) #@158 Indent current line to COLUMN. This function removes or adds spaces and tabs at beginning of line only if necessary. It leaves point at end of indentation. (defalias 'indent-line-to #[(column) "\303 \210i\211 W\203$ \n\245\n_Z\nY\203 `\304\305x\210`|\210 j\2025 V\2055 \306 \307\"\210`\303 \210`|)\207" [cur-col column tab-width back-to-indentation " " nil move-to-column t] 4 (#$ . 5087)]) #@183 Return the left margin to use for this line. This is the value of the buffer-local variable `left-margin' plus the value of the `left-margin' text-property at the start of the line. (defalias 'current-left-margin #[nil "\212\301 \210\302\303m\203 o\204 `S\202 `\300\"\206 \302\\])\207" [left-margin back-to-indentation 0 get-text-property] 5 (#$ . 5492)]) #@315 Move to the left margin of the current line. With optional argument, move forward N-1 lines first. The column moved to is the one given by the `current-left-margin' function. If the line's indentation appears to be wrong, and this command is called interactively or with optional argument FORCE, it will be fixed. (defalias 'move-to-left-margin #[(&optional n force) "\304!\210\305\306w\210\307p!\203 \212\304 \210o)\203 \310 b\207\304 \207\311 i \nV\2037 \312\n\"\nV\205C \313u\202C \205C \nW\205C \314 *\207" [n cc lm force beginning-of-line " " nil minibufferp minibuffer-prompt-end current-left-margin move-to-column -1 indent-to-left-margin] 3 (#$ . 5860) (list (prefix-numeric-value current-prefix-arg) t)]) #@67 Indent current line to the column given by `current-left-margin'. (defalias 'indent-to-left-margin #[nil "\212\300\301 !\210)\212\302\303x\210n)\205 \302\303w\207" [indent-line-to current-left-margin " " nil] 2 (#$ . 6589)]) #@208 Remove left margin indentation from a region. This deletes to the column given by `current-left-margin'. In no case will it delete non-whitespace. Args FROM and TO are optional; default is the whole buffer. (defalias 'delete-to-left-margin #[(&optional from to) "\212\206 db\210\302 \206 eb\210n\204 \303y\210`W\203. `\304\305\306\"\210`|\210\303y\210\202 \305\211\223)\207" [to from point-marker 1 move-to-left-margin nil t] 4 (#$ . 6823)]) #@234 Set the left margin of the region to WIDTH. If `auto-fill-mode' is active, re-fill the region to fit the new margin. Interactively, WIDTH is the prefix argument, if specified. Without prefix argument, the command prompts for WIDTH. (defalias 'set-left-margin #[(from to width) "\212b\210\304\305x\210n\203 ` b\210\304\305w\210\306 )\307 \"\210\310 \311\n$\210\312 \n#\210\2039 \212\313 \305\314\211%\210) \305\211\223\207" [from to width auto-fill-function " " nil point-marker delete-to-left-margin put-text-property left-margin indent-rigidly fill-region t] 6 (#$ . 7281) "r\nNSet left margin to column: "]) #@235 Set the right margin of the region to WIDTH. If `auto-fill-mode' is active, re-fill the region to fit the new margin. Interactively, WIDTH is the prefix argument, if specified. Without prefix argument, the command prompts for WIDTH. (defalias 'set-right-margin #[(from to width) "\212b\210\304\305x\210n\203 `)\306 \307\n$\210\205# \212\310 \305\311\211%)\207" [from to width auto-fill-function " " nil put-text-property right-margin fill-region t] 6 (#$ . 7909) "r\nNSet right margin to width: "]) #@279 Programmatically change value of a text-property. For each region between FROM and TO that has a single value for PROPERTY, apply FUNCTION to that value and sets the property to the function's result. Optional fifth argument OBJECT specifies the string or buffer to operate on. (defalias 'alter-text-property #[(from to prop func &optional object) "\306\211\307\f #\310\n\f %\211\203) \311\n\f ! %\210\n\202 \nW\205; \311\n\f ! %+\207" [from val end begin prop object nil get-text-property text-property-not-all put-text-property to func] 6 (#$ . 8423)]) #@311 Increase or decrease the left-margin of the region. With no prefix argument, this adds `standard-indent' of indentation. A prefix arg (optional third arg INC noninteractively) specifies the amount to change the margin by, in characters. If `auto-fill-mode' is active, re-fill the region to fit the new margin. (defalias 'increase-left-margin #[(from to inc) "\203\n \305!\202 \212\nb\210\306\307x\210n\203 `b\210\310 )\311\n\312\313$\210\314\n#\210\f\203<