1 |
@c This is part of the Emacs manual. |
@c This is part of the Emacs manual. |
2 |
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 2000, 2001 |
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 2000, 2001, 2004 |
3 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
4 |
@c See file emacs.texi for copying conditions. |
@c See file emacs.texi for copying conditions. |
5 |
@node Search, Fixit, Display, Top |
@node Search, Fixit, Display, Top |
777 |
The constructs that pertain to words and syntax are controlled by the |
The constructs that pertain to words and syntax are controlled by the |
778 |
setting of the syntax table (@pxref{Syntax}). |
setting of the syntax table (@pxref{Syntax}). |
779 |
|
|
780 |
Here is a complicated regexp, stored in @code{sentence-end} and used |
Here is a complicated regexp. It is a simplified version of the |
781 |
by Emacs to recognize the end of a sentence together with any |
regexp that Emacs uses, by default, to recognize the end of a sentence |
782 |
whitespace that follows. We show its Lisp syntax to distinguish the |
together with any whitespace that follows. We show its Lisp syntax to |
783 |
spaces from the tab characters. In Lisp syntax, the string constant |
distinguish the spaces from the tab characters. In Lisp syntax, the |
784 |
begins and ends with a double-quote. @samp{\"} stands for a |
string constant begins and ends with a double-quote. @samp{\"} stands |
785 |
double-quote as part of the regexp, @samp{\\} for a backslash as part |
for a double-quote as part of the regexp, @samp{\\} for a backslash as |
786 |
of the regexp, @samp{\t} for a tab, and @samp{\n} for a newline. |
part of the regexp, @samp{\t} for a tab, and @samp{\n} for a newline. |
787 |
|
|
788 |
@example |
@example |
789 |
"[.?!][]\"')]*\\($\\| $\\|\t\\| \\)[ \t\n]*" |
"[.?!][]\"')]*\\($\\| $\\|\t\\| \\)[ \t\n]*" |