• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/textmodes/

Lines Matching +defs:end +defs:of

9 ;; This file is part of GNU Emacs.
12 ;; it under the terms of the GNU General Public License as published by
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;; You should have received a copy of the GNU General Public License
79 (end-of-line)
84 Regexp for beginning of a line that starts OR separates paragraphs.
87 \(and are part of that paragraph).
90 the beginning of the line, so it should never use \"^\" as an anchor. This
92 of text indented by a margin setting.
110 "Regexp for beginning of a line that separates paragraphs.
114 the beginning of the line, so it should not use \"^\" as an anchor. This
115 ensures that the paragraph functions will work equally within a region of
121 (defcustom sentence-end-double-space t
122 "Non-nil means a single space does not end a sentence.
123 This is relevant for filling. See also `sentence-end-without-period'
126 This value is used by the function `sentence-end' to construct the
127 regexp describing the end of a sentence, when the value of the variable
128 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
131 ;;;###autoload(put 'sentence-end-double-space 'safe-local-variable 'booleanp)
133 (defcustom sentence-end-without-period nil
134 "Non-nil means a sentence will end without a period.
138 This value is used by the function `sentence-end' to construct the
139 regexp describing the end of a sentence, when the value of the variable
140 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
143 ;;;###autoload(put 'sentence-end-without-period 'safe-local-variable 'booleanp)
145 (defcustom sentence-end-without-space
147 "String of characters that end sentence without following spaces.
149 This value is used by the function `sentence-end' to construct the
150 regexp describing the end of a sentence, when the value of the variable
151 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
154 ;;;###autoload(put 'sentence-end-without-space 'safe-local-variable 'stringp)
156 (defcustom sentence-end nil
157 "Regexp describing the end of a sentence.
159 All paragraph boundaries also end sentences, regardless.
162 function `sentence-end'. You should always use this function
163 to obtain the value of this variable."
166 ;;;###autoload(put 'sentence-end 'safe-local-variable 'string-or-null-p)
168 (defcustom sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*"
169 "Regexp matching the basic end of a sentence, not including following space."
173 ;;;###autoload(put 'sentence-end-base 'safe-local-variable 'stringp)
175 (defun sentence-end ()
176 "Return the regexp describing the end of a sentence.
178 This function returns either the value of the variable `sentence-end'
180 variables `sentence-end-base', `sentence-end-double-space',
181 `sentence-end-without-period' and `sentence-end-without-space'.
184 end of a sentence, the ending period, question mark, or exclamation point
187 (or sentence-end
188 (concat (if sentence-end-without-period "\\w \\|")
190 sentence-end-base
191 (if sentence-end-double-space
193 "\\|[" sentence-end-without-space "]+"
211 "Move forward to end of paragraph.
216 \(if `paragraph-separate' matches it also) or is the first line of a paragraph.
217 A paragraph end is the beginning of a line which is not part of the paragraph
218 to which the end of the previous line belongs, or the end of the buffer.
219 Returns the count of paragraphs left to move."
255 (forward-char -1) (beginning-of-line)
263 ;; Go to end of the previous (non-separating) line.
264 (end-of-line)
269 (while (and (progn (beginning-of-line) (not (bobp)))
311 (end-of-line 0)
349 ;; Return the number of steps that could not be done.
353 "Move backward to start of paragraph.
357 A paragraph start is the beginning of a line which is a
358 `first-line-of-paragraph' or which is ordinary text and follows a
359 paragraph-separating line; except: if the first real line of a
369 "Put point at beginning of this paragraph, mark at end.
372 With argument ARG, puts mark at end of a following paragraph, so that
373 the number of paragraphs marked equals ARG.
375 If ARG is negative, point is put at end of this paragraph, mark is put
376 at beginning of this or a previous paragraph.
399 "Kill forward to end of paragraph.
400 With arg N, kill forward to Nth end of paragraph;
401 negative arg -N means kill backward to Nth start of paragraph."
406 "Kill back to start of paragraph.
407 With arg N, kill back to Nth start of paragraph;
408 negative arg -N means kill forward to Nth end of paragraph."
417 (defun start-of-paragraph-text ()
422 ;; If the range of blank lines found spans the original start point,
423 ;; try again from the beginning of it.
425 ;; when following a single return at start of buffer.
430 (start-of-paragraph-text))))))
432 (defun end-of-paragraph-text ()
440 (end-of-paragraph-text))))))
443 "Move forward to next `sentence-end'. With argument, repeat.
446 The variable `sentence-end' is a regular expression that matches ends of
451 (sentence-end (sentence-end)))
454 (par-beg (save-excursion (start-of-paragraph-text) (point))))
455 (if (and (re-search-backward sentence-end par-beg t)
456 (or (< (match-end 0) pos)
457 (re-search-backward sentence-end par-beg t)))
458 (goto-char (match-end 0))
462 (let ((par-end (save-excursion (end-of-paragraph-text) (point))))
463 (if (re-search-forward sentence-end par-end t)
465 (goto-char par-end)))
470 "Put two spaces at the end of sentences from point to the end of buffer.
478 "Move backward to start of sentence. With arg, do it arg times.
485 "Kill from point to end of sentence.
486 With arg, repeat; negative arg -N means kill back to Nth start of sentence."
491 "Kill back from point to start of sentence.
492 With arg, repeat, or kill forward to Nth end of sentence if negative arg -N."
496 (defun mark-end-of-sentence (arg)
497 "Put mark at end of sentence. Arg works as in `forward-sentence'.