diff options
| author | Gerd Moellmann | 2001-04-10 14:55:03 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-10 14:55:03 +0000 |
| commit | 3fe35f35c02fd27ccfe458583bf3858a86143975 (patch) | |
| tree | da5408f088ef97256a52e8ba3e8f0c331a93387d | |
| parent | c8d6d636a89caa3646d4ca55e9910c4c31f52806 (diff) | |
| download | emacs-3fe35f35c02fd27ccfe458583bf3858a86143975.tar.gz emacs-3fe35f35c02fd27ccfe458583bf3858a86143975.zip | |
(forward-sentence): Put the sentence-end
regexp in parentheses when building the regexp for searching
backwards.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c41630731d4..e13c5cc9497 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-04-10 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-04-10 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * textmodes/paragraphs.el (forward-sentence): Put the sentence-end | ||
| 4 | regexp in parentheses when building the regexp for searching | ||
| 5 | backwards. | ||
| 6 | |||
| 3 | * simple.el (completion-list-mode-finish): New function. | 7 | * simple.el (completion-list-mode-finish): New function. |
| 4 | (toplevel): Add completion-list-mode-finish to | 8 | (toplevel): Add completion-list-mode-finish to |
| 5 | temp-buffer-show-hook. | 9 | temp-buffer-show-hook. |
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))) |