diff options
| author | Kenichi Handa | 1999-12-15 00:52:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-12-15 00:52:08 +0000 |
| commit | 34a500b327474ca1a70839cf767cd1071719bf8f (patch) | |
| tree | 47bccb399db27d671cbb042746bef272206b142c /lisp/textmodes | |
| parent | d169c89e684dae9ca76a4381d29957ee4997485d (diff) | |
| download | emacs-34a500b327474ca1a70839cf767cd1071719bf8f.tar.gz emacs-34a500b327474ca1a70839cf767cd1071719bf8f.zip | |
(fill-find-break-point): Delete codes for
composite characters.
(fill-region-as-paragraph): Likewise.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/fill.el | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index b622d55e092..e4bdb9db65e 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -295,13 +295,9 @@ If the charset has no such property, do nothing." | |||
| 295 | (if (eq charset 'ascii) | 295 | (if (eq charset 'ascii) |
| 296 | (setq ch (preceding-char) | 296 | (setq ch (preceding-char) |
| 297 | charset (char-charset ch))) | 297 | charset (char-charset ch))) |
| 298 | (if (eq charset 'ascii) | 298 | (setq func (get-charset-property charset 'fill-find-break-point-function)) |
| 299 | nil | 299 | (if (and func (fboundp func)) |
| 300 | (if (eq charset 'composition) | 300 | (funcall func limit)))) |
| 301 | (setq charset (char-charset (composite-char-component ch 0))))) | ||
| 302 | (setq func (get-charset-property charset 'fill-find-break-point-function)) | ||
| 303 | (if (and func (fboundp func)) | ||
| 304 | (funcall func limit)))) | ||
| 305 | 301 | ||
| 306 | (defun fill-region-as-paragraph (from to &optional justify | 302 | (defun fill-region-as-paragraph (from to &optional justify |
| 307 | nosqueeze squeeze-after) | 303 | nosqueeze squeeze-after) |
| @@ -445,10 +441,6 @@ space does not end a sentence, so don't break a line there." | |||
| 445 | (while (search-forward "\n" nil t) | 441 | (while (search-forward "\n" nil t) |
| 446 | (let ((prev (char-before (match-beginning 0))) | 442 | (let ((prev (char-before (match-beginning 0))) |
| 447 | (next (following-char))) | 443 | (next (following-char))) |
| 448 | (if (cmpcharp prev) | ||
| 449 | (setq prev (composite-char-component prev 0))) | ||
| 450 | (if (cmpcharp next) | ||
| 451 | (setq next (composite-char-component next 0))) | ||
| 452 | (if (and (or (aref (char-category-set next) ?|) | 444 | (if (and (or (aref (char-category-set next) ?|) |
| 453 | (aref (char-category-set prev) ?|)) | 445 | (aref (char-category-set prev) ?|)) |
| 454 | (or (get-charset-property (char-charset prev) | 446 | (or (get-charset-property (char-charset prev) |