Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9402a4b9
Commit
9402a4b9
authored
Jan 27, 2004
by
Kenichi Handa
Browse files
(sentence-end-without-space): New variable.
(sentence-end): Define using sentence-end-without-space.
parent
d62a265d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
lisp/textmodes/paragraphs.el
lisp/textmodes/paragraphs.el
+10
-1
No files found.
lisp/textmodes/paragraphs.el
View file @
9402a4b9
...
...
@@ -132,14 +132,23 @@ without a period."
:type 'boolean
:group 'fill)
(defcustom sentence-end-without-space
"
$B!#!%!
)
!*
$A!##.#?#!
$
(
0!$!%!
)
!*
$
(
G!$!%!
)
!*
(
B
"
"
*String
containing
characters
that
end
sentence
without
following
spaces.
If
you
change
this,
you
should
also
change
`
sentence-end
'.
See
Info
node
`
Sentences
'.
"
:group 'paragraphs
:type 'string)
(defcustom sentence-end
(purecopy
;; This is a bit stupid since it's not auto-updated when the
;; other variables are changes, but it's still useful info.
(concat (if sentence-end-without-period "
\\w
\\|")
"[.?!
$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B
][]\"')}]*"
"
\\(
[.?!][]\"')}]*"
(if sentence-end-double-space
"\\($\\|
$\\|\t\\|
\\
)
" "
\\
(
$\\|[\t ]\\)")
"\\|[
" sentence-end-without-space "
]+\\
)
"
"
[
\t\n]*
"))
"
*Regexp
describing
the
end
of
a
sentence.
The
value
includes
the
whitespace
following
the
sentence.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment