aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1999-01-05 02:39:31 +0000
committerKenichi Handa1999-01-05 02:39:31 +0000
commit971c2d04d2c337195c15002b48deafdb084d89fe (patch)
treea910fcf52a9ad606a987d4c96b06c590de376906
parentf7e81f7f326be81112875460d4b4ae637787b539 (diff)
downloademacs-971c2d04d2c337195c15002b48deafdb084d89fe.tar.gz
emacs-971c2d04d2c337195c15002b48deafdb084d89fe.zip
(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.
-rw-r--r--lisp/textmodes/fill.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index a563cb52d72..14f7e23d4c0 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -434,6 +434,10 @@ space does not end a sentence, so don't break a line there."
434 (while (search-forward "\n" nil t) 434 (while (search-forward "\n" nil t)
435 (let ((prev (char-before (match-beginning 0))) 435 (let ((prev (char-before (match-beginning 0)))
436 (next (following-char))) 436 (next (following-char)))
437 (if (cmpcharp prev)
438 (setq prev (composite-char-component prev 0)))
439 (if (cmpcharp next)
440 (setq next (composite-char-component next 0)))
437 (if (and (or (aref (char-category-set next) ?|) 441 (if (and (or (aref (char-category-set next) ?|)
438 (aref (char-category-set prev) ?|)) 442 (aref (char-category-set prev) ?|))
439 (or (get-charset-property (char-charset prev) 443 (or (get-charset-property (char-charset prev)