Hi,
Ben changed font-lock.el in the main trunk of CVS nine days ago.
It causes a serious problem to write Japanese text using Egg-its
package. So I have sent a report with a patch to Ben and xemacs-
patches. You may see those articles in the following archives:
http://list-archive.xemacs.org/xemacs-patches/200109/msg00057.html
http://list-archive.xemacs.org/xemacs-patches/200109/msg00059.html
Unfortunately, I have neither a reply nor a mail to xemacs-cvs
list so far. Could anyone help Egg-its users?
The same patch follows. I confirmed that it works in the C
modes or the Java mode as just as Ben intended.
2001-09-19 Katsumi Yamaoka <yamaoka(a)jpl.org>
* font-lock.el (font-lock-after-change-function): Fix.
--- font-lock.el~ Tue Sep 18 05:14:05 2001
+++ font-lock.el Wed Sep 19 08:59:25 2001
@@ -1210,7 +1210,7 @@
;; line of code turns the comment color.) this is a bit of a hack
;; but allows us to use text properties for everything.
(if (= beg end)
- (cond ((not (eolp)) (setq end (1+ end)))
+ (cond ((/= end (point-at-eol)) (setq end (1+ end)))
((/= beg (point-min)) (setq beg (1- beg)))
(t nil)))
(put-text-property beg end 'font-lock-pending t)