;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Mon Apr 17 19:48:02 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/paragraphs.el ;;; emacs version 19.28.90.26. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/paragraphs.el' was compiled for Emacs 19")) #@486 Non-nil means to distinguish hard and soft newlines. When this is non-nil, the functions `newline' and `open-line' add the text-property `hard' to newlines that they insert. Also, a line is only considered as a candidate to match `paragraph-start' or `paragraph-separate' if it follows a hard newline. Newlines not marked hard are called "soft", and are always internal to paragraphs. The fill functions always insert soft newlines. Each buffer has its own value of this variable. (defvar use-hard-newlines nil (#$ . 490)) (make-variable-buffer-local (quote use-hard-newlines)) #@715 *Regexp for beginning of a line that starts OR separates paragraphs. This regexp should match lines that separate paragraphs and should also match lines that start a paragraph (and are part of that paragraph). This is matched against the text at the left margin, which is not necessarily the beginning of the line, so it should never use "^" as an anchor. This ensures that the paragraph functions will work equally well within a region of text indented by a margin setting. The variable `paragraph-separate' specifies how to distinguish lines that start paragraphs from lines that separate them. If the variable `use-hard-newlines' is nonnil, then only lines following a hard newline are considered to match. (defconst paragraph-start "[ \n\f]" (#$ . -1079)) #@385 *Regexp for beginning of a line that separates paragraphs. If you change this, you may have to change paragraph-start also. This is matched against the text at the left margin, which is not necessarily the beginning of the line, so it should not use "^" as an anchor. This ensures that the paragraph functions will work equally within a region of text indented by a margin setting. (defconst paragraph-separate "[ \f]*$" (#$ . -1851)) #@295 *Regexp describing the end of a sentence. All paragraph boundaries also end sentences, regardless. 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, unless it's inside some sort of quotes or parenthesis. (defconst sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*") (#$ . -2296)) #@57 *Regexp describing line-beginnings that separate pages. (defconst page-delimiter "^\f" (#$ . -2689)) #@148 Non-nil means the paragraph commands are not affected by `fill-prefix'. This is desirable in modes where blank lines are the paragraph delimiters. (defvar paragraph-ignore-fill-prefix nil (#$ . 2797)) #@410 Move forward to end of paragraph. With arg N, do it N times; negative 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. (defalias 'forward-paragraph #[(&optional arg) "„Á\n…\nÚ?…\f?…Å\n!Ú„3ÈHÉšƒ3ÁÊO‚5‰Ú„N ÈHÉšƒN ÁÊO‚P  ƒa ÌÍR‚c  ÎÏQÊÈWƒSo„SÒ !„’ÓÔ`Se]Õ#ƒ’Ò !„LÖuˆÈyˆo„¬× ˆÒ !ƒ¬Öyˆ‚˜o„LʈƒÛÈyˆo„Ö× ˆÒ !„ÖÒ!ƒÖÖyˆ‚¸o?‚ÓÊÁ#ƒo„`× ˆÒ !„Ò!ƒ\nƒÙSÚ\"„bˆ‚Û`eVƒIm„+× ˆÒ !ƒ+Áyˆ‚ȈiÛ Vƒ;Áuˆ‚LÜÊxˆn„LÁyˆ‚LebˆT‰‚pÈV…ãm?…ãm?…o× ˆm?…oÒ !Áyˆ„^ƒ™m„Ü× ˆm„ÜÒ !„ÜÒ!ƒÜÁyˆ‚zÝÊÁ#ƒÒm„ÒÈ”‰bˆ× ˆÒ !„ÒÒ!ƒÌƒÒÙSÚ\"„ÒÁuˆ‚™`dWƒÜbˆS‰‚T.‡" [arg 1 fill-prefix "" paragraph-ignore-fill-prefix regexp-quote fill-prefix-regexp paragraph-start 0 94 nil paragraph-separate "\\|" "[ ]*$" "^[ ]*\\(" "\\)" sp-paragraph-start start looking-at re-search-backward "^\n" t -1 move-to-left-margin use-hard-newlines get-text-property hard current-left-margin " " re-search-forward] 5 (#$ . 3005) "p"]) #@427 Move backward to start of paragraph. With arg N, do it N times; negative arg -N means move forward N paragraphs. A paragraph start is the beginning of a line which is a `first-line-of-paragraph' or which is ordinary text and follows a paragraph-separating 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. (defalias 'backward-paragraph #[(&optional arg) "„ÁÂ[!‡" [arg 1 forward-paragraph] 2 (#$ . 4315) "p"]) #@126 Put point at beginning of this paragraph, mark at end. The paragraph marked is the one that contains point or follows point. (defalias 'mark-paragraph #[nil "ÀÁ!ˆÂÃĉ#ˆÅÁ!‡" [forward-paragraph 1 push-mark nil t backward-paragraph] 4 (#$ . 4856) nil]) #@148 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. (defalias 'kill-paragraph #[(arg) "À`Á\n!ˆ`\"‡" [kill-region forward-paragraph arg] 4 (#$ . 5114) "p"]) #@143 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. (defalias 'backward-kill-paragraph #[(arg) "À`Á\n!ˆ`\"‡" [kill-region backward-paragraph arg] 4 (#$ . 5372) "p"]) #@57 Interchange this (or next) paragraph with previous one. (defalias 'transpose-paragraphs #[(arg) "ÀÁ\n\"‡" [transpose-subr forward-paragraph arg] 3 (#$ . 5634) "*p"]) (defalias 'start-of-paragraph-text #[nil "`ÀÃÄ!ˆ`ÅÀwˆ`\nY…% \nW…% bˆ eV…%Æ *‡" [nil npoint opoint forward-paragraph -1 " \n" start-of-paragraph-text] 2]) (defalias 'end-of-paragraph-text #[nil "`ÁÂ!ˆhÃ=ƒÄuˆ`X… Âuˆ`dW… Å )‡" [opoint forward-paragraph 1 10 -1 end-of-paragraph-text] 2]) #@283 Move forward to next `sentence-end'. With argument, repeat. With negative argument, move backward repeatedly to `sentence-beginning'. The variable `sentence-end' is a regular expression that matches ends of sentences. Also, every paragraph boundary terminates sentences as well. (defalias 'forward-sentence #[(&optional arg) "„ÁÂWƒ1ŠÃ ˆ`)ÅÇP\fÈ#ƒ&•Sbˆ‚)\fbˆ)T‰‚ÂV…\\ŠÉ ˆ`)\nË\nÈ#ƒPÌÍxˆ‚T\nbˆ)S‰‚2‡" [arg 1 0 start-of-paragraph-text par-beg re-search-backward sentence-end "[^ \n]" t end-of-paragraph-text par-end re-search-forward " \n" nil] 5 (#$ . 6105) "p"]) #@110 Move backward to start of sentence. With arg, do it arg times. See `forward-sentence' for more information. (defalias 'backward-sentence #[(&optional arg) "„ÁÂ[!‡" [arg 1 forward-sentence] 2 (#$ . 6707) "p"]) #@113 Kill from point to end of sentence. With arg, repeat; negative arg -N means kill back to Nth start of sentence. (defalias 'kill-sentence #[(&optional arg) "À`Á\n!ˆ`\"‡" [kill-region forward-sentence arg] 4 (#$ . 6929) "p"]) #@121 Kill back from point to start of sentence. With arg, repeat, or kill forward to Nth end of sentence if negative arg -N. (defalias 'backward-kill-sentence #[(&optional arg) "À`Á\n!ˆ`\"‡" [kill-region backward-sentence arg] 4 (#$ . 7160) "p"]) #@67 Put mark at end of sentence. Arg works as in `forward-sentence'. (defalias 'mark-end-of-sentence #[(arg) "ÀŠÁ\n!ˆ`)ÃÄ#‡" [push-mark forward-sentence arg nil t] 4 (#$ . 7408) "p"]) #@48 Interchange this (next) and previous sentence. (defalias 'transpose-sentences #[(arg) "ÀÁ\n\"‡" [transpose-subr forward-sentence arg] 3 (#$ . 7595) "*p"])