Mercurial > emacs
comparison lisp/textmodes/paragraphs.el @ 2503:fb3509fdf8b7
Sat Apr 10 00:39:29 1993 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* paragraphs.el (sentence-end, forward-sentence): Doc fixes.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 10 Apr 1993 06:21:16 +0000 |
parents | f287613dfc28 |
children | 0daa9d777306 |
comparison
equal
deleted
inserted
replaced
2502:190371d9bc2e | 2503:fb3509fdf8b7 |
---|---|
35 *Regexp for beginning of a line that separates paragraphs. | 35 *Regexp for beginning of a line that separates paragraphs. |
36 If you change this, you may have to change paragraph-start also.") | 36 If you change this, you may have to change paragraph-start also.") |
37 | 37 |
38 (defconst sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") "\ | 38 (defconst sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[ \t\n]*") "\ |
39 *Regexp describing the end of a sentence. | 39 *Regexp describing the end of a sentence. |
40 All paragraph boundaries also end sentences, regardless.") | 40 All paragraph boundaries also end sentences, regardless. |
41 | |
42 In order to be recognized as the end of a sentence, the ending period, | |
43 question mark, or exclamation point must be followed by two spaces, | |
44 unless it's inside some sort of quotes or parenthesis.") | |
41 | 45 |
42 (defconst page-delimiter "^\014" "\ | 46 (defconst page-delimiter "^\014" "\ |
43 *Regexp describing line-beginnings that separate pages.") | 47 *Regexp describing line-beginnings that separate pages.") |
44 | 48 |
45 (defvar paragraph-ignore-fill-prefix nil "\ | 49 (defvar paragraph-ignore-fill-prefix nil "\ |
176 (forward-char 1) | 180 (forward-char 1) |
177 (if (< (point) (point-max)) | 181 (if (< (point) (point-max)) |
178 (end-of-paragraph-text)))))) | 182 (end-of-paragraph-text)))))) |
179 | 183 |
180 (defun forward-sentence (&optional arg) | 184 (defun forward-sentence (&optional arg) |
181 "Move forward to next`sentence-end'. With argument, repeat. | 185 "Move forward to next `sentence-end'. With argument, repeat. |
182 With negative argument, move backward repeatedly to `sentence-beginning'. | 186 With negative argument, move backward repeatedly to `sentence-beginning'. |
183 | 187 |
184 The variable `sentence-end' is a regular expression that matches ends of | 188 The variable `sentence-end' is a regular expression that matches ends of |
185 sentences. Also, every paragraph boundary terminates sentences as well." | 189 sentences. Also, every paragraph boundary terminates sentences as well." |
186 (interactive "p") | 190 (interactive "p") |