aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2001-06-25 19:20:15 +0000
committerStefan Monnier2001-06-25 19:20:15 +0000
commitda197e75714dbaf12fc008adfab59644600359e6 (patch)
tree6aa8d5b11f6f61437711b5ea0cedd737563019f7
parent80de57df35a9319c21526203f9410dccab354b91 (diff)
downloademacs-da197e75714dbaf12fc008adfab59644600359e6.tar.gz
emacs-da197e75714dbaf12fc008adfab59644600359e6.zip
(fill-region-as-paragraph): Don't look further back than LINEBEG.
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/textmodes/fill.el19
2 files changed, 23 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4591bcb463f..68b4411d459 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-06-25 Stefan Monnier <monnier@cs.yale.edu>
2
3 * textmodes/fill.el (fill-region-as-paragraph): Don't look further
4 back than LINEBEG.
5
12001-06-25 Eli Zaretskii <eliz@is.elta.co.il> 62001-06-25 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * xt-mouse.el (xterm-mouse-event): If the buffer displayed in the 8 * xt-mouse.el (xterm-mouse-event): If the buffer displayed in the
@@ -6,8 +11,8 @@
6 11
72001-06-25 Milan Zamazal <pdm@zamazal.org> 122001-06-25 Milan Zamazal <pdm@zamazal.org>
8 13
9 * progmodes/glasses.el (glasses-make-readable): Consider 14 * progmodes/glasses.el (glasses-make-readable): Consider underscores
10 underscores too when separating a parenthesis. 15 too when separating a parenthesis.
11 16
122001-06-24 Eli Zaretskii <eliz@is.elta.co.il> 172001-06-24 Eli Zaretskii <eliz@is.elta.co.il>
13 18
@@ -19,8 +24,8 @@
19 24
202001-06-23 Eli Zaretskii <eliz@is.elta.co.il> 252001-06-23 Eli Zaretskii <eliz@is.elta.co.il>
21 26
22 * files.el (auto-mode-alist): Add configure.ac (autoconf). From 27 * files.el (auto-mode-alist): Add configure.ac (autoconf).
23 Karl Eichwalder <ke@suse.de>. 28 From Karl Eichwalder <ke@suse.de>.
24 29
252001-06-23 Richard M. Stallman <rms@gnu.org> 302001-06-23 Richard M. Stallman <rms@gnu.org>
26 31
@@ -43,8 +48,7 @@
43 48
44 * indent.el (indent-relative-maybe, indent-relative): Doc fix. 49 * indent.el (indent-relative-maybe, indent-relative): Doc fix.
45 50
46 * menu-bar.el (toggle-debug-on-quit, toggle-debug-on-error): Doc 51 * menu-bar.el (toggle-debug-on-quit, toggle-debug-on-error): Doc fix.
47 fix.
48 52
492001-06-21 Eli Zaretskii <eliz@is.elta.co.il> 532001-06-21 Eli Zaretskii <eliz@is.elta.co.il>
50 54
@@ -60,8 +64,7 @@
60 (dabbrev--find-expansion): Simplify code in various ways. 64 (dabbrev--find-expansion): Simplify code in various ways.
61 Don't treat minibuffers specially. 65 Don't treat minibuffers specially.
62 Call dabbrev--make-friend-buffer-list. 66 Call dabbrev--make-friend-buffer-list.
63 (dabbrev--select-buffers): Don't treat minibuffers specially. 67 (dabbrev--select-buffers): Don't treat minibuffers specially. Simplify.
64 Simplify.
65 (dabbrev--scanning-message): Do nothing when minibuffer is current. 68 (dabbrev--scanning-message): Do nothing when minibuffer is current.
66 69
672001-06-19 John Wiegley <johnw@gnu.org> 702001-06-19 John Wiegley <johnw@gnu.org>
@@ -72,9 +75,8 @@
72 75
732001-06-19 John Wiegley <johnw@gnu.org> 762001-06-19 John Wiegley <johnw@gnu.org>
74 77
75 * eshell/esh-mode.el: Disabled a test that often yields false 78 * eshell/esh-mode.el: Disabled a test that often yields false failures.
76 failures. 79
77
782001-06-19 Eli Zaretskii <eliz@is.elta.co.il> 802001-06-19 Eli Zaretskii <eliz@is.elta.co.il>
79 81
80 * woman.el (WoMan-highlight-references): Add help-echo to 82 * woman.el (WoMan-highlight-references): Add help-echo to
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 984c945525a..033435f97bd 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -527,15 +527,16 @@ space does not end a sentence, so don't break a line there."
527 ;; further fills will assume it ends a sentence. 527 ;; further fills will assume it ends a sentence.
528 ;; If we now know it does not end a sentence, 528 ;; If we now know it does not end a sentence,
529 ;; avoid putting it at the end of the line. 529 ;; avoid putting it at the end of the line.
530 (while (or (and sentence-end-double-space 530 (while (and (> (point) linebeg)
531 (> (point) (+ linebeg 2)) 531 (or (and sentence-end-double-space
532 (eq (preceding-char) ?\ ) 532 (> (point) (+ linebeg 2))
533 (not (eq (following-char) ?\ )) 533 (eq (preceding-char) ?\ )
534 (eq (char-after (- (point) 2)) ?\.) 534 (not (eq (following-char) ?\ ))
535 (progn (forward-char -2) t)) 535 (eq (char-after (- (point) 2)) ?\.)
536 (and fill-nobreak-predicate 536 (progn (forward-char -2) t))
537 (funcall fill-nobreak-predicate) 537 (and fill-nobreak-predicate
538 (skip-chars-backward " \t"))) 538 (funcall fill-nobreak-predicate)
539 (skip-chars-backward " \t"))))
539 (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0) 540 (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0)
540 (forward-char 1))) 541 (forward-char 1)))
541 ;; If the left margin and fill prefix by themselves 542 ;; If the left margin and fill prefix by themselves