# HG changeset patch # User Kenichi Handa # Date 915503971 0 # Node ID d90d3da56713fdf0734fe6093abbe78c51b44a78 # Parent 81b2d3ea98edc6129111e97ddad7a10e639b1166 (fill-region-as-paragraph): While deleting a newline in multibyte buffer, if previous or next character is a composite char, check the first component of the composite char. diff -r 81b2d3ea98ed -r d90d3da56713 lisp/textmodes/fill.el --- a/lisp/textmodes/fill.el Tue Jan 05 02:38:37 1999 +0000 +++ b/lisp/textmodes/fill.el Tue Jan 05 02:39:31 1999 +0000 @@ -434,6 +434,10 @@ (while (search-forward "\n" nil t) (let ((prev (char-before (match-beginning 0))) (next (following-char))) + (if (cmpcharp prev) + (setq prev (composite-char-component prev 0))) + (if (cmpcharp next) + (setq next (composite-char-component next 0))) (if (and (or (aref (char-category-set next) ?|) (aref (char-category-set prev) ?|)) (or (get-charset-property (char-charset prev)