aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-10 14:55:03 +0000
committerGerd Moellmann2001-04-10 14:55:03 +0000
commit3fe35f35c02fd27ccfe458583bf3858a86143975 (patch)
treeda5408f088ef97256a52e8ba3e8f0c331a93387d /lisp/textmodes
parentc8d6d636a89caa3646d4ca55e9910c4c31f52806 (diff)
downloademacs-3fe35f35c02fd27ccfe458583bf3858a86143975.tar.gz
emacs-3fe35f35c02fd27ccfe458583bf3858a86143975.zip
(forward-sentence): Put the sentence-end
regexp in parentheses when building the regexp for searching backwards.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/paragraphs.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 2913c83134d..305f24b6049 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -1,6 +1,6 @@
1;;; paragraphs.el --- paragraph and sentence parsing. 1;;; paragraphs.el --- paragraph and sentence parsing.
2 2
3;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96, 1997, 1999 3;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96, 1997, 1999, 2000, 2001
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -369,7 +369,8 @@ sentences. Also, every paragraph boundary terminates sentences as well."
369 (let ((opoint (point))) 369 (let ((opoint (point)))
370 (while (< arg 0) 370 (while (< arg 0)
371 (let ((par-beg (save-excursion (start-of-paragraph-text) (point)))) 371 (let ((par-beg (save-excursion (start-of-paragraph-text) (point))))
372 (if (re-search-backward (concat sentence-end "[^ \t\n]") par-beg t) 372 (if (re-search-backward (concat "\\(" sentence-end "\\)[^ \t\n]")
373 par-beg t)
373 (goto-char (1- (match-end 0))) 374 (goto-char (1- (match-end 0)))
374 (goto-char par-beg))) 375 (goto-char par-beg)))
375 (setq arg (1+ arg))) 376 (setq arg (1+ arg)))