emacs-devel
[Top][All Lists]
Advanced

[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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]