diff options
| author | Joakim Verona | 2012-11-30 08:15:39 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-11-30 08:15:39 +0100 |
| commit | a04cd20724a4fdc2844e7f6c747eea56167f4123 (patch) | |
| tree | c52dfb5b19587d6212e8c7d629e781f22fd3457b | |
| parent | ec0f852f355712b217378b99fa21e4de57f797f3 (diff) | |
| parent | 53c9a337fa3218cdb857bd9fb75f542413f9584b (diff) | |
| download | emacs-a04cd20724a4fdc2844e7f6c747eea56167f4123.tar.gz emacs-a04cd20724a4fdc2844e7f6c747eea56167f4123.zip | |
auto upstream
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e0b140bc276..eef59e75ac8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-30 Toru TSUNEYOSHI <t_tuneyosi@hotmail.com> | ||
| 2 | |||
| 3 | * textmodes/fill.el (fill-region-as-paragraph): Handle overshoot | ||
| 4 | by move-to-column (Bug#3234). | ||
| 5 | |||
| 1 | 2012-11-30 Chong Yidong <cyd@gnu.org> | 6 | 2012-11-30 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * longlines.el (longlines-wrap-line, longlines-encode-region): | 8 | * longlines.el (longlines-wrap-line, longlines-encode-region): |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index d0e90c99516..86a1736783d 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -721,7 +721,11 @@ space does not end a sentence, so don't break a line there." | |||
| 721 | (move-to-column (current-fill-column)) | 721 | (move-to-column (current-fill-column)) |
| 722 | (if (when (< (point) to) | 722 | (if (when (< (point) to) |
| 723 | ;; Find the position where we'll break the line. | 723 | ;; Find the position where we'll break the line. |
| 724 | (forward-char 1) ;Use an immediately following space, if any. | 724 | ;; Use an immediately following space, if any. |
| 725 | ;; However, note that `move-to-column' may overshoot | ||
| 726 | ;; if there are wide characters (Bug#3234). | ||
| 727 | (unless (> (current-column) (current-fill-column)) | ||
| 728 | (forward-char 1)) | ||
| 725 | (fill-move-to-break-point linebeg) | 729 | (fill-move-to-break-point linebeg) |
| 726 | ;; Check again to see if we got to the end of | 730 | ;; Check again to see if we got to the end of |
| 727 | ;; the paragraph. | 731 | ;; the paragraph. |