%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/textmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/textmodes/paragraphs.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305%\210\306\307\310\311#\207" [custom-declare-group paragraphs nil "Paragraph and sentence parsing." :group editing put use-hard-newlines permanent-local t] 6) #@108 Non-nil if Use-Hard-Newlines mode is enabled. Use the command `use-hard-newlines' to change this variable. (defvar use-hard-newlines nil (#$ . 603)) (make-variable-buffer-local 'use-hard-newlines) #@1109 Toggle between hard and soft newlines in the current buffer. If called interactively, enable Use-Hard-Newlines 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. When enabled, the functions `newline' and `open-line' add the text-property `hard' to newlines that they insert, and a line is only considered as a candidate to match `paragraph-start' or `paragraph-separate' if it follows a hard newline. When enabling, if there are newlines in the buffer but no hard newlines, ask the user whether to mark as hard any newlines preceding a `paragraph-start' line. From a program, second arg INSERT specifies whether to do this; it can be `never' to change nothing, t or `always' to force marking, `guess' to try to do the right thing with no questions, nil or anything else to ask the user. Newlines not marked hard are called "soft", and are always internal to paragraphs. The fill functions insert and delete only soft newlines. (fn &optional ARG INSERT) (defalias 'use-hard-newlines #[512 "\303 \304=\203 ?\202 \305!\306V\211\203\205 \307=\204K \310=\204K \311=\204\205 \312ed\313\307$\204\205 \212eb\210\314\315\316\307#)\203\205 \317=\204K \320\321!\203\205 \212eb\210\314\315\316\307#\203\204 `\322 \210\323 !\203g \324S\"\210\323\n!\203\200 \324S\"\210\316\210m\204\200 \324``T\"\210\210\202O )\325\326\203\217 \327\202\220 \330\"\210\331\332!\203\264 \303 \203\244 \211\303 \232\203\264 \333\334\335\203\257 \336\202\260 \337#\266\210\340 \210\207" [use-hard-newlines paragraph-start paragraph-separate current-message toggle prefix-numeric-value 0 t always never text-property-any hard search-forward "\n" nil guess y-or-n-p "Make newlines between paragraphs hard? " move-to-left-margin looking-at set-hard-newline-properties run-hooks use-hard-newlines-hook use-hard-newlines-on-hook use-hard-newlines-off-hook called-interactively-p any " in current buffer" message "Use-Hard-Newlines mode %sabled%s" "en" "dis" force-mode-line-update] 9 (#$ . 808) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) (defvar use-hard-newlines-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\314\315DD\316\317\320\321\322&\210\303\312\323\324#\210\311\325\313\314\326DD\327\317\320\321\322&\210\303\325\323\324#\210\311\330\313\314\331DD\332\321\333\317\334&\210\303\330\323\335#\210\311\336\313\314\337DD\340\321\333\317\334&\210\303\336\323\335#\210\311\341\313\314\342DD\343\317\320\321\344&\210\303\341\323\324#\210\311\345\313\314\346DD\347\317\320\321\350&\210\303\345\323\351#\210\311\352\313\314\353DD\354\317\320\321\344\355\356& \210\303\352\323\324#\207" [use-hard-newlines-map use-hard-newlines-hook variable-documentation put "Hook run after entering or leaving `use-hard-newlines'.\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 use-hard-newlines nil boundp custom-declare-variable paragraph-start funcall function #[0 "\300\207" [#1="\f\\|[ ]*$"] 1 #1#] "Regexp for beginning of a line that starts OR separates paragraphs.\nThis regexp should match lines that separate paragraphs\nand should also match lines that start a paragraph\n(and are part of that paragraph).\n\nThis is matched against the text at the left margin, which is not necessarily\nthe beginning of the line, so it should never use \"^\" as an anchor. This\nensures that the paragraph functions will work equally well within a region\nof text indented by a margin setting.\n\nThe variable `paragraph-separate' specifies how to distinguish\nlines that start paragraphs from lines that separate them.\n\nIf the variable `use-hard-newlines' is non-nil, then only lines following a\nhard newline are considered to match." :group paragraphs :type regexp safe-local-variable stringp paragraph-separate #[0 "\300\207" [#2="[ \f]*$"] 1 #2#] "Regexp for beginning of a line that separates paragraphs.\nIf you change this, you may have to change `paragraph-start' also.\n\nThis is matched against the text at the left margin, which is not necessarily\nthe beginning of the line, so it should not use \"^\" as an anchor. This\nensures that the paragraph functions will work equally within a region of\ntext indented by a margin setting." sentence-end-double-space #[0 "\300\207" [t] 1] "Non-nil means a single space does not end a sentence.\nThis is relevant for filling. See also `sentence-end-without-period'\nand `colon-double-space'.\n\nThis value is used by the function `sentence-end' to construct the\nregexp describing the end of a sentence, when the value of the variable\n`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." boolean fill booleanp sentence-end-without-period #[0 "\300\207" [nil] 1] "Non-nil means a sentence will end without a period.\nFor example, a sentence in Thai text ends with double space but\nwithout a period.\n\nThis value is used by the function `sentence-end' to construct the\nregexp describing the end of a sentence, when the value of the variable\n`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." sentence-end-without-space #[0 "\300\207" [#3="。.?!"] 1 #3#] "String of characters that end sentence without following spaces.\n\nThis value is used by the function `sentence-end' to construct the\nregexp describing the end of a sentence, when the value of the variable\n`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." string sentence-end #[0 "\300\207" [nil] 1] "Regexp describing the end of a sentence.\nThe value includes the whitespace following the sentence.\nAll paragraph boundaries also end sentences, regardless.\n\nThe value nil means to use the default value defined by the\nfunction `sentence-end'. You should always use this function\nto obtain the value of this variable." (choice regexp (const :tag "Use default value" nil)) string-or-null-p sentence-end-base #[0 "\300\207" [#4="[.?!…‽][]\"'”’)}»›]*"] 1 #4#] "Regexp matching the basic end of a sentence, not including following space." :version "25.1"] 10) #@572 Return the regexp describing the end of a sentence. This function returns either the value of the variable `sentence-end' if it is non-nil, or the default value constructed from the variables `sentence-end-base', `sentence-end-double-space', `sentence-end-without-period' and `sentence-end-without-space'. The default value specifies that in order to be recognized as the end of a sentence, the ending period, question mark, or exclamation point must be followed by two spaces, with perhaps some closing delimiters in between. See Info node `(elisp)Standard Regexps'. (defalias 'sentence-end #[0 "\206 \205 \305\306\n\203 \307\202 \310\311\f\312\260\207" [sentence-end sentence-end-without-period sentence-end-base sentence-end-double-space sentence-end-without-space "\\w[ ][ ]\\|" "\\(" "\\($\\|[ ]$\\| \\|[ ][ ]\\)" "\\($\\|[ ]\\)" "\\|[" "]+\\)[ \n]*"] 7 (#$ . 7065)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\312\301\313\314#\210\300\315\302\303\316DD\317\306\307\310\320&\210\312\315\313\321#\207" [custom-declare-variable page-delimiter funcall function #[0 "\300\207" [#1="^\f"] 1 #1#] "Regexp describing line-beginnings that separate pages." :group paragraphs :type regexp put safe-local-variable stringp paragraph-ignore-fill-prefix #[0 "\300\207" [nil] 1] "Non-nil means the paragraph commands are not affected by `fill-prefix'.\nThis is desirable in modes where blank lines are the paragraph delimiters." boolean booleanp] 8) #@498 Move forward to end of paragraph. With argument ARG, do it ARG times; a negative argument ARG = -N means move backward N paragraphs. A line which `paragraph-start' matches either separates paragraphs (if `paragraph-separate' matches it also) or is the first line of a paragraph. A paragraph end is the beginning of a line which is not part of the paragraph to which the end of the previous line belongs, or the end of the buffer. Returns the count of paragraphs left to move. (fn &optional ARG) (defalias 'forward-paragraph #[256 "\211\204 \306\262`\205 \307\232?\205 ?\205 \310!\n\307\232\2040 \n\311H\312\232\2030 \313\n\306\"\2021 \n\307\232\204F \311H\312\232\203F \313\306\"\202G \203S \211\314\315R\202T \211\316\314\317\260\320\211\311W\203Zo\204Z\321!\204\207 \322\323`Se]\324#\203\207 \321!\203\207 T\262 \202] `\262\325u\210\326 \210o\204\243 \327 \210\321!\203\243 \325y\210\202\220 o\204] T\262 \320\210\203\344 \320\326 \210o\204\333 \327 \210\321!\204\333 \321!\203\333 `U\204\325 \324\325y\210\202\266 \327 \210o)?\202 \322\320\306#\203\324\211\262\203`\262\327 \210\321!\204\321!\203 \203o\204\330S\331\"\204\320\262b\210\202\344 \211\203Tm\2046\327 \210\321!\2036\306y\210\202#\311\210i\332 V\203F\306u\210\202] \333\320x\210n\204] \306y\210\202] eb\210\202] \311V\203\354m\204\354m\204|\327 \210m\204|\321!\203|\306y\210\202em\204\205S\262 \306y\210\203\253m\204Z\327 \210m\204Z\321!\204Z\321!\203Z\306y\210\202\215\334\320\306#\203\340\311\224\262b\210m\204\340\327 \210\321!\204\340\321!\203\332 \203\340\330S\331\"\204\340\306u\210\202\253`dW\203Zb\210\202Z\335\320 \324#\210\207" [fill-prefix paragraph-ignore-fill-prefix paragraph-start paragraph-separate multiple-lines use-hard-newlines 1 "" regexp-quote 0 94 substring "\\|" "[ ]*$" "^[ ]*\\(?:" "\\)" nil looking-at re-search-backward "^\n" t -1 beginning-of-line move-to-left-margin get-text-property hard current-left-margin " " re-search-forward constrain-to-field] 13 (#$ . 8558) "^p"]) #@464 Move backward to start of paragraph. With argument ARG, do it ARG times; a negative argument ARG = -N means move forward N paragraphs. A paragraph start is the beginning of a line which is a `paragraph-start' or which is ordinary text and follows a `paragraph-separate'ing line; except: if the first real line of a paragraph is preceded by a blank line, the paragraph starts at that blank line. See `forward-paragraph' for more information. (fn &optional ARG) (defalias 'backward-paragraph #[256 "\211\204 \300\262\301[!\207" [1 forward-paragraph] 3 (#$ . 10651) "^p"]) #@583 Put point at beginning of this paragraph, mark at end. The paragraph marked is the one that contains point or follows point. With argument ARG, puts mark at end of a following paragraph, so that the number of paragraphs marked equals ARG. If ARG is negative, point is put at end of this paragraph, mark is put at beginning of this or a previous paragraph. Interactively (or if ALLOW-EXTEND is non-nil), if this command is repeated or (in Transient Mark mode) if the mark is active, it marks the next ARG paragraphs after the ones already marked. (fn &optional ARG ALLOW-EXTEND) (defalias 'mark-paragraph #[512 "\204 \304\262\305U\203 \306\307!\210\211\2037 =\203! \310\311!\204) \n\2037 \2037 \312\212\310 b\210\313!\210`)!\207\313!\210\314\315\311\211#\210\316!\207" [last-command this-command transient-mark-mode mark-active 1 0 error "Cannot mark zero paragraphs" mark t set-mark forward-paragraph push-mark nil backward-paragraph] 6 (#$ . 11234) "p\np"]) #@158 Kill forward to end of paragraph. With ARG N, kill forward to Nth end of paragraph; negative ARG -N means kill backward to Nth start of paragraph. (fn ARG) (defalias 'kill-paragraph #[257 "\300`\301!\210`\"\207" [kill-region forward-paragraph] 5 (#$ . 12215) "p"]) #@153 Kill back to start of paragraph. With ARG N, kill back to Nth start of paragraph; negative ARG -N means kill forward to Nth end of paragraph. (fn ARG) (defalias 'backward-kill-paragraph #[257 "\300`\301!\210`\"\207" [kill-region backward-paragraph] 5 (#$ . 12489) "p"]) #@381 Interchange the current paragraph with the next one. With prefix argument ARG a non-zero integer, moves the current paragraph past ARG paragraphs, leaving point after the current paragraph. If ARG is positive, moves the current paragraph forwards, if ARG is negative moves it backwards. If ARG is zero, exchanges the current paragraph with the one containing the mark. (fn ARG) (defalias 'transpose-paragraphs #[257 "\300\301\"\207" [transpose-subr forward-paragraph] 4 (#$ . 12768) "*p"]) #@45 Move to the start of the current paragraph. (defalias 'start-of-paragraph-text #[0 "`\300\301\302!\210`\262\303\300w\210`Y\205$ \211W\205$ \211b\210\211eV\205$ \304 \207" [nil forward-paragraph -1 " \n" start-of-paragraph-text] 4 (#$ . 13267)]) #@43 Move to the end of the current paragraph. (defalias 'end-of-paragraph-text #[0 "`\300\301!\210h\302=\203 \303u\210`X\205 \301u\210`dW\205 \304 \207" [forward-paragraph 1 10 -1 end-of-paragraph-text] 3 (#$ . 13522)]) #@299 Move forward to next end of sentence. With argument, repeat. When ARG is negative, move backward repeatedly to start of sentence. The variable `sentence-end' is a regular expression that matches ends of sentences. Also, every paragraph boundary terminates sentences as well. (fn &optional ARG) (defalias 'forward-sentence #[256 "\211\204 \301\262`\300 \302W\203L `\303\211\212\304 \210`\262\305 \210`\262)\306\307#\203@ \302\225W\2049 \306\307#\203@ \302\225b\210\202C \211b\210\266T\262\202 \302V\203r \212\310 \210`)\311\307#\203g \312\303x\210\202j \211b\210\210S\262\202L \313\303\307#)\207" [sentence-end 1 0 nil start-of-paragraph-text beginning-of-line re-search-backward t end-of-paragraph-text re-search-forward " \n" constrain-to-field] 9 (#$ . 13749) "^p"]) #@225 Put two spaces at the end of sentences from point to the end of buffer. It works using `query-replace-regexp'. If optional argument NO-QUERY is non-nil, make changes without asking for confirmation. (fn &optional NO-QUERY) (defalias 'repunctuate-sentences #[256 "\300\301\203 \302\303\304#\205 \305!\210\202 \306\"\207" ["\\([]\"')]?\\)\\([.?!]\\)\\([]\"')]?\\) +" "\\1\\2\\3 " re-search-forward nil t replace-match query-replace-regexp] 7 (#$ . 14551) nil]) #@130 Move backward to start of sentence. With ARG, do it ARG times. See `forward-sentence' for more information. (fn &optional ARG) (defalias 'backward-sentence #[256 "\211\204 \300\262\301[!\207" [1 forward-sentence] 3 (#$ . 15027) "^p"]) #@133 Kill from point to end of sentence. With ARG, repeat; negative ARG -N means kill back to Nth start of sentence. (fn &optional ARG) (defalias 'kill-sentence #[256 "\300`\301!\210`\"\207" [kill-region forward-sentence] 5 (#$ . 15274) "p"]) #@141 Kill back from point to start of sentence. With ARG, repeat, or kill forward to Nth end of sentence if negative ARG -N. (fn &optional ARG) (defalias 'backward-kill-sentence #[256 "\300`\301!\210`\"\207" [kill-region backward-sentence] 5 (#$ . 15521) "p"]) #@169 Put mark at end of sentence. ARG works as in `forward-sentence'. If this command is repeated, it marks the next ARG sentences after the ones already marked. (fn ARG) (defalias 'mark-end-of-sentence #[257 "\302\212 =\203 \303\304!\203 \303 b\210\305!\210`)\306\304#\207" [last-command this-command push-mark mark t forward-sentence nil] 5 (#$ . 15786) "p"]) #@375 Interchange the current sentence with the next one. With prefix argument ARG a non-zero integer, moves the current sentence past ARG sentences, leaving point after the current sentence. If ARG is positive, moves the current sentence forwards, if ARG is negative moves it backwards. If ARG is zero, exchanges the current sentence with the one containing the mark. (fn ARG) (defalias 'transpose-sentences #[257 "\300\301\"\207" [transpose-subr forward-sentence] 4 (#$ . 16156) "*p"])