aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/textmodes/paragraphs.el10
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 83215282a8e..0514c8b190b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12001-08-07 Gerd Moellmann <gerd@gnu.org> 12001-08-07 Gerd Moellmann <gerd@gnu.org>
2 2
3 * textmodes/paragraphs.el (forward-sentence): Avoid building
4 a regexp from sentence-end. From Kenichi Handa <handa@etl.go.jp>.
5
3 * progmodes/executable.el (executable-set-magic): If 6 * progmodes/executable.el (executable-set-magic): If
4 executable-find returns a quoted file name, unquote it before 7 executable-find returns a quoted file name, unquote it before
5 inserting it. 8 inserting it.
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 172c2cdf35c..792b3b0cd09 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -369,10 +369,12 @@ sentences. Also, every paragraph boundary terminates sentences as well."
369 (or arg (setq arg 1)) 369 (or arg (setq arg 1))
370 (let ((opoint (point))) 370 (let ((opoint (point)))
371 (while (< arg 0) 371 (while (< arg 0)
372 (let ((par-beg (save-excursion (start-of-paragraph-text) (point)))) 372 (let ((pos (point))
373 (if (re-search-backward (concat "\\(" sentence-end "\\)[^ \t\n]") 373 (par-beg (save-excursion (start-of-paragraph-text) (point))))
374 par-beg t) 374 (if (and (re-search-backward sentence-end par-beg t)
375 (goto-char (1- (match-end 0))) 375 (or (< (match-end 0) pos)
376 (re-search-backward sentence-end par-beg t)))
377 (goto-char (match-end 0))
376 (goto-char par-beg))) 378 (goto-char par-beg)))
377 (setq arg (1+ arg))) 379 (setq arg (1+ arg)))
378 (while (> arg 0) 380 (while (> arg 0)