* regexp for 'sentence-end'??
@ 2003-02-17 12:26 gebser
0 siblings, 0 replies; only message in thread
From: gebser @ 2003-02-17 12:26 UTC (permalink / raw)
Hello,
The standard end-of-sentence variable is defined as:
(defcustom sentence-end (purecopy "[.?!][]\"')}]*\\($\\| $\\|\t\\| \\)[
\t\n]*")
(sorry for the wrap). Because I do considerable editing of html and
similar types of files, I wanted to add to this definition character
sequences which have [.?!] followed by either a "<" or ">" and thought
that
(defcustom sentence-end (purecopy "[.?!][]\<>\"')}]*\\($\\| $\\|\t\\|
\\)[ \t\n]*")
(sorry again) would do this. After trying this however, it detects both
"'>'" and "e.</p>" as sentence-end (which it shouldn't do, right?) but
not "e." immediately before "<" (which it should, yes?).
What's the proper syntax?
tia,
ken
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-17 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-17 12:26 regexp for 'sentence-end'?? gebser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).