%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/textmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/textmodes/text-mode.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable text-mode-hook funcall function #[0 "\300\207" [(text-mode-hook-identify)] 1] "Normal hook run when entering Text mode and many related modes." :type hook :options (turn-on-auto-fill turn-on-flyspell) :group text] 10) #@64 Non-nil if this buffer's major mode is a variant of Text mode. (defvar text-mode-variant nil (#$ . 721)) (make-obsolete-variable 'text-mode-variant 'derived-mode-p "27.1") #@41 Syntax table used while in `text-mode'. (defvar text-mode-syntax-table (byte-code "\300 \301\302\303#\210\301\304\303#\210\301\305\306#\210\301\307\310\"\210\301\311\310\"\210\301\312\310\"\210\301\313\310\"\210\301\314\310\"\210\211\207" [make-syntax-table modify-syntax-entry 34 ". " 92 39 "w p" 1523 "w " 1524 183 8231 65306] 5) (#$ . 899)) #@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\301\306!B#\210\307\310\311#\210\307\312\313#\210\307\314#\210\307\315\316#\210\307\317\320#\210\307\321\322#\210\211\207" [menu-bar-separator make-sparse-keymap define-key " " ispell-complete-word [menu-bar text] "Text" bindings--define-key [menu-bar text toggle-text-mode-auto-fill] (menu-item "Auto Fill" toggle-text-mode-auto-fill :button (:toggle memq 'turn-on-auto-fill text-mode-hook) :help "Automatically fill text while typing in text modes (Auto Fill mode)") [menu-bar text paragraph-indent-minor-mode] (menu-item "Paragraph Indent" paragraph-indent-minor-mode :button (:toggle bound-and-true-p paragraph-indent-minor-mode) :help "Toggle paragraph indent minor mode") [menu-bar text sep] [menu-bar text center-region] (menu-item "Center Region" center-region :help "Center the marked region" :enable (region-active-p)) [menu-bar text center-paragraph] (menu-item "Center Paragraph" center-paragraph :help "Center the current paragraph") [menu-bar text center-line] (menu-item "Center Line" center-line :help "Center the current line")] 7) (#$ . 1257)) (defvar text-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [text-mode-hook variable-documentation put "Hook run after 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] 4) (defvar text-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\317#\207" [text-mode-abbrev-table text-mode-map variable-documentation put purecopy "Keymap for `text-mode'." boundp text-mode-syntax-table definition-name text-mode (lambda (#1=#:def-tmp-var) (defvar text-mode-syntax-table #1#)) make-syntax-table "Syntax table for `text-mode'." (lambda (#1#) (defvar text-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `text-mode'." 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 #[0 "\306\300!\210\307\310 \210\311\312\313!\210\314\f!\210 \306\315!\210\307 \306\316!\210)\317\320!\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 run-mode-hooks text-mode-hook local-abbrev-table mode-require-final-newline] 2 (#$ . 3652) nil]) (defvar paragraph-indent-text-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [paragraph-indent-text-mode-hook variable-documentation put "Hook run after 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] 4) (defvar paragraph-indent-text-mode-map (make-sparse-keymap)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [paragraph-indent-text-mode-map variable-documentation put purecopy "Keymap for `paragraph-indent-text-mode'." paragraph-indent-text-mode derived-mode-parent text-mode] 5) #@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 #[0 "\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!\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 run-mode-hooks paragraph-indent-text-mode-hook] 5 (#$ . 5190) nil]) #@123 Non-nil if Paragraph-Indent minor mode is enabled. Use the command `paragraph-indent-minor-mode' to change this variable. (defvar paragraph-indent-minor-mode nil (#$ . 6126)) (make-variable-buffer-local 'paragraph-indent-minor-mode) #@612 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'. If called interactively, enable Paragraph-Indent minor mode if ARG is positive, and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'; disable the mode otherwise. (fn &optional ARG) (defalias 'paragraph-indent-minor-mode #[256 "\302 \303=\203 ?\202 \304!\305V\306\307 \"\203, \2048 \310\301!\210\311 G\"\2028 \2038 \310\301!\210\211 P\210\203I \312\313\314\315B\316\317$\210\202] \320\321\322!\316\"\211\321\322!=\204\\ \323\322\"\210\210\324\325\203g \326\202h \327\"\210\330\331!\203\214 \302 \203| \211\302 \232\203\214 \332\333\334\203\207 \335\202\210 \336#\266\210\337 \210\207" [paragraph-indent-minor-mode paragraph-start current-message toggle prefix-numeric-value 0 "[ \n\f]\\|" string-prefix-p make-local-variable substring advice--add-function :override #[0 "\300\301!\207" [advice--buffer-local indent-line-function] 2] #[257 "\300\301\"\207" [advice--set-buffer-local indent-line-function] 4 "\n\n(fn GV--VAL)"] indent-to-left-margin nil advice--remove-function advice--buffer-local indent-line-function advice--set-buffer-local run-hooks paragraph-indent-minor-mode-hook paragraph-indent-minor-mode-on-hook paragraph-indent-minor-mode-off-hook called-interactively-p any " in current buffer" message "Paragraph-Indent minor mode %sabled%s" "en" "dis" force-mode-line-update] 7 (#$ . 6366) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) (defvar paragraph-indent-minor-mode-hook nil) (byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \307\211%\210\311\312\313\"\207" [paragraph-indent-minor-mode-map paragraph-indent-minor-mode-hook variable-documentation put "Hook run after entering or leaving `paragraph-indent-minor-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode paragraph-indent-minor-mode nil boundp defalias indented-text-mode text-mode] 6) #@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 #[0 "\301\300!\210\302\211\207" [text-mode-variant make-local-variable t] 2 (#$ . 8730)]) #@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 #[0 "\302>?\211\203 \303\300\302\"\210\202 \304\300\302\"\210\305 \211\203? \211@r\211q\210\306\307!\204+ \2037 \310\2034 \311\2025 \312!\210)A\266\202\202 \210\313\314\203J \315\202K \316\"\207" [text-mode-hook text-mode-variant turn-on-auto-fill add-hook remove-hook buffer-list derived-mode-p text-mode auto-fill-mode 1 0 message "Auto Fill %s in Text modes" "enabled" "disabled"] 5 (#$ . 8985) nil]) (define-key facemenu-keymap "S" 'center-paragraph) #@96 Center each nonblank line in the paragraph at or after point. See `center-line' for more info. (defalias 'center-paragraph #[0 "\212\300 \210n\204\f \301\302!\210`\303 \210\304`\"\262)\207" [forward-paragraph newline 1 backward-paragraph center-region] 4 (#$ . 9691) nil]) #@98 Center each nonblank line starting in the region. See `center-line' for more info. (fn FROM TO) (defalias 'center-region #[514 "V\203\f \211\262\262\212\214}\210b\210m?\205- \212\300\301w\210l)\204' \302 \210\303y\210\202 *\207" [" " nil center-line 1] 4 (#$ . 9972) "r"]) (define-key facemenu-keymap "s" 'center-line) #@264 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. (fn &optional NLINES) (defalias 'center-line #[256 "\211\203 \301!\262\211\302=?\205b \212\303 \304\305 \210\306 \210\304\210\306 \210\307i#\262\211\302V\2035 \310\311\245\\!\210\266)\211\204B \302\262\202 \211\302V\203R \211S\262\312y\210\202 \211\302W\203 \211T\262\313y\210\202 \207" [fill-column prefix-numeric-value 0 current-left-margin nil beginning-of-line delete-horizontal-space - indent-line-to 2 1 -1] 7 (#$ . 10310) "P"]) (provide 'text-mode)