Next: Paragraphs Prev: Words Up: Text
The Emacs commands for manipulating sentences and paragraphs are
mostly on Meta keys, so as to be like the word-handling commands.
Move back to the beginning of the sentence (`backward-sentence').
Move forward to the end of the sentence (`forward-sentence').
Kill forward to the end of the sentence (`kill-sentence').
Kill back to the beginning of the sentence
The commands `M-a' and `M-e' (`backward-sentence' and
`forward-sentence') move to the beginning and end of the current
sentence, respectively. They were chosen to resemble `C-a' and `C-e',
which move to the beginning and end of a line. Unlike them, `M-a' and
`M-e' if repeated or given numeric arguments move over successive
sentences. Emacs assumes that the typist's convention is followed, and
thus considers a sentence to end wherever there is a `.', `?' or `!'
followed by the end of a line or two spaces, with any number of `)',
`]', `'', or `"' characters allowed in between. A sentence also begins
or ends wherever a paragraph begins or ends.
Neither `M-a' nor `M-e' moves past the newline or spaces beyond the
sentence edge at which it is stopping.
Just as `C-a' and `C-e' have a kill command, `C-k', to go with them,
so `M-a' and `M-e' have a corresponding kill command `M-k'
(`kill-sentence') which kills from point to the end of the sentence.
With minus one as an argument it kills back to the beginning of the
sentence. Larger arguments serve as a repeat count.
There is a special command, `C-x DEL' (`backward-kill-sentence') for
killing back to the beginning of a sentence, because this is useful
when you change your mind in the middle of composing text.
The variable `sentence-end' controls recognition of the end of a
sentence. It is a regexp that matches the last few characters of a
sentence, together with the whitespace following the sentence. Its
normal value is
"[.?!]\"')]*\\($\\|\t\\| \\)[ \t\n]*"
This example is explained in the section on regexps. Note: Regexps.
automatically generated by info2www