;ELC ;;; Compiled by cyd@localhost on Mon Apr 23 22:25:26 2007 ;;; from file /home/cyd/emacs/lisp/textmodes/text-mode.el ;;; in Emacs version 22.0.99 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. (if (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.29"))) (error "`text-mode.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@65 Normal hook run when entering Text mode and many related modes. (custom-declare-variable 'text-mode-hook 'nil '(#$ . 575) :type 'hook :options '(turn-on-auto-fill turn-on-flyspell) :group 'data) #@105 Non-nil if this buffer's major mode is a variant of Text mode. Use (derived-mode-p 'text-mode) instead. (defvar text-mode-variant nil (#$ . 777)) #@41 Syntax table used while in `text-mode'. (defvar text-mode-syntax-table (byte-code "\301 \302\303\304#\210\302\305\304#\210\302\306\307#\210)\207" [st make-syntax-table modify-syntax-entry 34 ". " 92 39 "w p"] 4) (#$ . 929)) #@151 Keymap for `text-mode'. Many other modes, such as `mail-mode', `outline-mode' and `indented-text-mode', inherit all the commands defined in this map. (defvar text-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210)\207" [map make-sparse-keymap define-key " " ispell-complete-word "s" center-line "S" center-paragraph] 4) (#$ . 1167)) (byte-code "\302\303N\204\f\304\302\303\305#\210\306\307!\204\304\307\310\311#\210\307B\312\307!\204(\313\307\314 \"\210\306\315!\2044\304\315\310\311#\210\315B\312\315!\204D\313\315\316 \"\210\304\301\310\311#\210\301B\312\301!\204^\313\301\317\301\320\"\210 \"\210\304\311\321\320#\207" [current-load-list text-mode-abbrev-table text-mode-hook variable-documentation put "Hook run when entering Text mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp text-mode-map definition-name text-mode default-boundp set-default make-sparse-keymap text-mode-syntax-table make-syntax-table define-abbrev-table nil derived-mode-parent] 5) #@299 Major mode for editing text written for humans to read. In this mode, paragraphs are delimited only by blank or white lines. You can thus get the full benefit of adaptive filling (see the variable `adaptive-fill-mode'). \{text-mode-map} Turning on Text mode runs the normal hook `text-mode-hook'. (defalias 'text-mode #[nil "\306\300!\210\307\310 \210\311\312\313 !\210\314\f!\210 \306\315!\210\307 \306\316!\210\306\317!\210\320)\321\322!\2039\322\323!\207\324\323!\207" [delay-mode-hooks major-mode mode-name text-mode-map text-mode-syntax-table text-mode-abbrev-table make-local-variable t kill-all-local-variables text-mode "Text" use-local-map set-syntax-table text-mode-variant require-final-newline indent-line-function indent-relative fboundp run-mode-hooks text-mode-hook run-hooks local-abbrev-table mode-require-final-newline] 2 (#$ . 2274) nil]) (byte-code "\301\302N\204\f\303\301\302\304#\210\305\306!\204\303\306\307\310#\210\306B\311\306!\204(\312\306\313 \"\210\303\310\314\315#\207" [current-load-list paragraph-indent-text-mode-hook variable-documentation put "Hook run when entering Parindent mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp paragraph-indent-text-mode-map definition-name paragraph-indent-text-mode default-boundp set-default make-sparse-keymap derived-mode-parent text-mode] 4) #@430 Major mode for editing text, with leading spaces starting a paragraph. In this mode, you do not need blank lines between paragraphs when the first line of the following paragraph starts with whitespace. `paragraph-indent-minor-mode' provides a similar facility as a minor mode. Special commands: \{text-mode-map} Turning on Paragraph-Indent Text mode runs the normal hooks `text-mode-hook' and `paragraph-indent-text-mode-hook'. (defalias 'paragraph-indent-text-mode #[nil "\304\300!\210\305\306 \210\307\310\306\311N\203\312\307\311\306\311N#\210\313 !\204'\314 \315 \"\210\316 !\210\317 \210)\320\321!\2039\321\322!\207\323\322!\207" [delay-mode-hooks major-mode mode-name paragraph-indent-text-mode-map make-local-variable t text-mode paragraph-indent-text-mode "Parindent" mode-class put keymap-parent set-keymap-parent current-local-map use-local-map paragraph-indent-minor-mode fboundp run-mode-hooks paragraph-indent-text-mode-hook run-hooks] 5 (#$ . 3709) nil]) #@337 Minor mode for editing text, with leading spaces starting a paragraph. In this mode, you do not need blank lines between paragraphs when the first line of the following paragraph starts with whitespace, as with `paragraph-indent-text-mode'. Turning on Paragraph-Indent minor mode runs the normal hook `paragraph-indent-text-mode-hook'. (defalias 'paragraph-indent-minor-mode #[nil "\302\300!\210\303P\302\301!\210\304\305\306!\207" [paragraph-start indent-line-function make-local-variable "[ \n\f]\\|" indent-to-left-margin run-hooks paragraph-indent-text-mode-hook] 2 (#$ . 4693) nil]) (defalias 'indented-text-mode 'text-mode) #@123 Mark that this mode has run `text-mode-hook'. This is how `toggle-text-mode-auto-fill' knows which buffers to operate on. (defalias 'text-mode-hook-identify #[nil "\301\300!\210\302\211\207" [text-mode-variant make-local-variable t] 2 (#$ . 5334)]) (add-hook 'text-mode-hook 'text-mode-hook-identify) #@199 Toggle whether to use Auto Fill in Text mode and related modes. This command affects all buffers that use modes related to Text mode, both existing buffers and buffers that you subsequently create. (defalias 'toggle-text-mode-auto-fill #[nil "\305>?\211\203\306\300\305\"\210\202\307\300\305\"\210\310 \311\211\203D @r\nq\210\312\313!\2040\f\203<\314 \2039\315\202:\316!\210) A\211\204*\317\320 \203O\321\202P\322\")\207" [text-mode-hook enable-mode buffer #1=#:--cl-dolist-temp-- text-mode-variant turn-on-auto-fill add-hook remove-hook buffer-list nil derived-mode-p text-mode auto-fill-mode 1 0 message "Auto Fill %s in Text modes" "enabled" "disabled"] 4 (#$ . 5643) nil]) #@96 Center each nonblank line in the paragraph at or after point. See `center-line' for more info. (defalias 'center-paragraph #[nil "\212\301 \210n\204\f\302\303!\210`\304 \210\305`\"*\207" [end forward-paragraph newline 1 backward-paragraph center-region] 3 (#$ . 6345) nil]) #@84 Center each nonblank line starting in the region. See `center-line' for more info. (defalias 'center-region #[(from to) " V\203 \n)\212\214 }\210b\210m?\205.\212\303\304w\210l)\204(\305 \210\306y\210\202*\207" [from to tem " " nil center-line 1] 2 (#$ . 6628) "r"]) #@241 Center the line point is on, within the width specified by `fill-column'. This means adjusting the indentation so that it equals the distance between the end of the text and `fill-column'. The argument NLINES says how many lines to center. (defalias 'center-line #[(&optional nlines) "\203\304!\305=?\205b\212\306 \307\310 \210\311 \210\307\210\311 \210i \nZ Z\305V\2039\312\n \nZ Z\313\245\\!\210+\204D\305\211\202 \305V\203SS\314y\210\202\305W\203T\315y\210\202\207" [nlines line-length lm fill-column prefix-numeric-value 0 current-left-margin nil beginning-of-line delete-horizontal-space indent-line-to 2 1 -1] 5 (#$ . 6915) "P"])