4.3BSD/usr/contrib/emacs/lisp/indent.elc


(defun indent-according-to-mode nil "\
Indent line in proper way for current major mode." (interactive) (byte-code "มˆย!‡" [indent-line-function nil funcall] 2))

(defun indent-for-tab-command nil "\
Indent line in proper way for current major mode." (interactive) (byte-code "มˆย=ƒ
ร ‚ฤ!‡" [indent-line-function nil indent-to-left-margin insert-tab funcall] 3))

(defun insert-tab nil (byte-code "ƒ	ร ‚
ฤˆ	ƒลc‚ฦ
วi
\"T\"j‡" [abbrev-mode indent-tabs-mode tab-width expand-abbrev nil 9 * /] 6))

(defun indent-rigidly (start end arg) "\
Indent all lines starting in the region sideways by ARG columns.
Called from a program, takes three arguments, START, END and ARG." (interactive "r
p") (byte-code "ฤˆŠbˆล ‰ˆ	bˆn†ฦว!ˆ`W…=ศ ษ`สห!ˆ`\"ˆl†4ฬอ
\\]อ\")ˆฦว!ˆ‚ˆฮ\")‡" [end start indent arg nil point-marker forward-line 1 current-indentation delete-region skip-chars-forward " 	" indent-to 0 move-marker] 10))

(defun indent-to-left-margin nil (byte-code "ย U†+รŠฤ ˆล`ฦว!ˆ`\"ˆjˆ`‰)ˆ`	Wƒ)	b‚*ร)‡" [left-margin epos current-indentation nil beginning-of-line delete-region skip-chars-forward " 	"] 6))

(defvar indent-region-function nil "Function which is short cut to indent each line in region with Tab.
nil means really call Tab on each line.")

(defun indent-region (start end arg) "\
Indent each nonblank line in the region.
With no argument, indent each line with Tab.
With argument COLUMN, indent each line to that column.
Called from a program, takes three args: START, END and COLUMN." (interactive "r
P") (byte-code "ลˆ?ƒA	ƒฦ	
#‚>Šbˆว ‰ˆ
bˆn†&ศษ!ˆ`W…8ฦ!ˆศษ!ˆ‚'ˆส
\")‚€ห!‰ˆŠbˆว ‰ˆ
bˆn†Zศษ!ˆ`W…zฬ`อฮ!ˆ`\"ˆl†rฯะ\"ˆศษ!ˆ‚[ˆส
\")‡" [arg indent-region-function start end indent-line-function nil funcall point-marker forward-line 1 move-marker prefix-numeric-value delete-region skip-chars-forward " 	" indent-to 0] 16))

(defun indent-relative-maybe nil "\
Indent a new line like previous nonblank line." (interactive) (byte-code "มˆย!‡" [t nil indent-relative] 2))

(defun indent-relative (&optional unindented-ok) "\
Space out to under next indent point in previous nonblank line.
An indent point is a non-whitespace character following whitespace.
If the previous nonblank line has no indent points beyond
the column point starts at,  tab-to-tab-stop  is done instead." (interactive "P") (byte-code "รˆƒศ ‚รˆiรŠษ ˆสห#ƒH`ฬอkฮ	!ˆฯะ!†5†5ัา
\"ˆัำ
\"ˆ`
U†Di‰)‚Iร)ˆ
ƒyิ ี`ึำ!ˆ`\"ˆื
ุ\"ˆ`Vƒnb‚oรˆู\")‚{ฺ *‡" [abbrev-mode start-column indent nil t end unindented-ok opoint expand-abbrev beginning-of-line re-search-backward "^[^
]" 1 10 move-to-column looking-at "[ 	]" skip-chars-forward "^ 	" " 	" point-marker delete-region skip-chars-backward indent-to 0 move-marker tab-to-tab-stop] 14))

(defvar tab-stop-list (quote (8 16 24 32 40 48 56 64 72 80 88 96 104 112 120)) "List of tab stop positions used by tab-to-tab-stops.")

(defvar edit-tab-stops-map nil "Keymap used in edit-tab-stops.")

(if edit-tab-stops-map nil (setq edit-tab-stops-map (make-sparse-keymap)) (define-key edit-tab-stops-map "" (quote edit-tab-stops-note-changes)) (define-key edit-tab-stops-map "" (quote edit-tab-stops-note-changes)))

(defvar edit-tab-stops-buffer nil "Buffer whose tab stops are being edited--in case
the variable tab-stop-list is local in that buffer.")

(defun edit-tab-stops nil "\
Edit the tab stops used by tab-to-tab-stop.
Creates a buffer *Tab Stops* containing text describing the tab stops.
A colon indicates a column where there is a tab stop.
You can add or remove colons and then do C-x C-s to make changes take effect." (interactive) (byte-code "รˆp‰ˆษสห!!ˆฬ	!ˆอย!ˆ‰ˆฮฯ!ˆ
‰ˆะ ˆ…@ั@า\"ˆำcˆA‰ˆ‚')ˆาิcˆีW…bึ\\cˆืcˆT‰ˆ‚HˆิcˆาV…zุcˆS‰ˆ‚f)ˆูcˆeb‡" [edit-tab-stops-buffer edit-tab-stops-map indent-tabs-mode nil truncate-lines t tabs tab-stop-list count switch-to-buffer get-buffer-create "*Tab Stops*" use-local-map make-local-variable overwrite-mode 1 erase-buffer indent-to 0 58 10 8 48 "         " "0123456789" "
To install changes, type C-x C-s"] 10))

(defun edit-tab-stops-note-changes nil "\
Put edited tab stops into effect." (interactive) (byte-code "มˆมŠลbˆฦ ˆวศ	
#…iB‰ˆ‚)ˆษpส!ˆ!ˆ‰)ˆหฬ!‡" [tabs nil t edit-tab-stops-buffer tab-stop-list 1 end-of-line search-backward ":" bury-buffer switch-to-buffer message "Tab stops installed"] 6))

(defun tab-to-tab-stop nil "\
Insert spaces or tabs to next defined tab-stop column.
The variable tab-stop-list is a list of columns at which there are tab stops.
Use \\[edit-tab-stops] to edit them interactively." (interactive) (byte-code "รˆƒฤ ‚รˆ
	…i	@Y…\"	A‰ˆ‚ˆ	ƒ-	@j‚/ลc)‡" [abbrev-mode tabs tab-stop-list nil expand-abbrev 32] 4))

(define-key global-map "	" (quote indent-for-tab-command))

(define-key esc-map "" (quote indent-region))

(define-key ctl-x-map "	" (quote indent-rigidly))

(define-key esc-map "i" (quote tab-to-tab-stop))