the case that we reach the end of buffer.
2005-03-31 Kenichi Handa <handa@etlken2>
+ * language/thai-word.el (thai-find-word-ends): Pay attention to
+ the case that we reach the end of buffer.
+
* textmodes/fill.el (fill-text-properties-at): New function.
(fill-newline): Use fill-text-properties-at instead of
text-properties-at.
;; character by character.
(while this
(setq pos (1+ pos)
- char (char-after pos)
+ char (or (char-after pos) 0)
category-set (char-category-set char))
;; If the current sequence is recorded in `thai-word-table'
;; (i.e. (car THIS) is 1) and the following Thai character is