all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* paragraphs.el: do forward-sentence and friends not work?
@ 2008-02-13 17:08 David Reitter
  2008-02-13 17:27 ` Andreas Schwab
  0 siblings, 1 reply; 25+ messages in thread
From: David Reitter @ 2008-02-13 17:08 UTC (permalink / raw)
  To: emacs-pretest-bug

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? 



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2008-06-13 14:14 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 17:08 paragraphs.el: do forward-sentence and friends not work? David Reitter
2008-02-13 17:27 ` Andreas Schwab
2008-02-13 17:32   ` David Reitter
2008-02-13 17:36     ` Bastien
2008-02-13 20:00     ` Stephen J. Turnbull
2008-02-14  4:42       ` Richard Stallman
2008-02-14  9:45         ` David Reitter
2008-02-14 14:22           ` Robert J. Chassell
2008-02-14 14:43           ` Stefan Monnier
2008-02-14 15:52             ` David Reitter
2008-02-14 16:04               ` Miles Bader
2008-02-15  5:48                 ` Jonathan Rockway
2008-06-13 14:14             ` David Reitter
2008-02-15  0:02           ` Richard Stallman
2008-02-14  9:10       ` David Reitter
2008-02-14  9:22         ` Miles Bader
2008-02-14  9:46           ` David Reitter
2008-02-14 10:07             ` Miles Bader
2008-02-14 10:44         ` Stephen J. Turnbull
2008-02-14 12:27           ` David Reitter
2008-02-14 22:25             ` Stephen J. Turnbull
2008-02-13 20:36     ` Stefan Monnier
2008-02-13 20:52       ` Thorsten Bonow
2008-02-13 23:06     ` Miles Bader
2008-02-14  2:18     ` Robert J. Chassell

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.