[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
paragraphs.el: do forward-sentence and friends not work?
From: |
David Reitter |
Subject: |
paragraphs.el: do forward-sentence and friends not work? |
Date: |
Wed, 13 Feb 2008 17:08:53 +0000 |
Maybe I misunderstand the purpose of this function, but `forward-
sentence' doesn't work for me. It always jumps to the end of the
paragraph rather than to the end of the sentence.
This is in recent GNU Emacs 22 CVS builds.
It appears that there may be one or more bugs in the definition of
`sentence-end' and the default of sentence-end-base.
(sentence-end) returns:
"\\([.?!][]\"'””)}]*\\($\\| $\\| \\| \\)\\|
[。.?!。.?!。.?!����]+\\)[
]*"
Aren't . and ? supposed to be escaped?
Even when escaped, I couldn't make it work. However, if I set sentence-
end:
(setq sentence-end "\\([\\.\\?!][ \\\\]\\)\\|\n")
things work alright (for basic sentences).
Maybe I am an Emacs-specific meaning associated with "sentence" has
eluded me so far. Or, is there something broken in M-e and M-a?
- paragraphs.el: do forward-sentence and friends not work?,
David Reitter <=
- Re: paragraphs.el: do forward-sentence and friends not work?, Andreas Schwab, 2008/02/13
- Re: paragraphs.el: do forward-sentence and friends not work?, David Reitter, 2008/02/13
- Re: paragraphs.el: do forward-sentence and friends not work?, Stephen J. Turnbull, 2008/02/13
- Re: paragraphs.el: do forward-sentence and friends not work?, Richard Stallman, 2008/02/13
- Re: paragraphs.el: do forward-sentence and friends not work?, David Reitter, 2008/02/14
- Re: paragraphs.el: do forward-sentence and friends not work?, Robert J. Chassell, 2008/02/14
- Re: paragraphs.el: do forward-sentence and friends not work?, Stefan Monnier, 2008/02/14
- Re: paragraphs.el: do forward-sentence and friends not work?, David Reitter, 2008/02/14
- Re: paragraphs.el: do forward-sentence and friends not work?, Miles Bader, 2008/02/14
- Re: paragraphs.el: do forward-sentence and friends not work?, Jonathan Rockway, 2008/02/15