# HG changeset patch # User ben # Date 1001750581 0 # Node ID 12095b04a9b648b4ed097bd618328a6d6ac1cde7 # Parent 5c696033aec4e087aa20db99713cf184d4331dca [xemacs-hg @ 2001-09-29 08:02:03 by ben] font-lock.el: fix problem with last patch, reported by Katsumi Yamaoka. diff -r 5c696033aec4 -r 12095b04a9b6 configure --- a/configure Fri Sep 28 15:31:01 2001 +0000 +++ b/configure Sat Sep 29 08:03:01 2001 +0000 @@ -222,13 +222,13 @@ infopath='' install_pp='' lispdir='${datadir}/${instvardir}/lisp' -moduledir='${datadir}/${instvardir}/${configuration}/modules' +moduledir='${libdir}/${instvardir}/${configuration}/modules' sitelispdir='${datadir}/${inststaticdir}/site-lisp' -sitemoduledir='${datadir}/${inststaticdir}/site-modules' +sitemoduledir='${libdir}/${inststaticdir}/site-modules' pkgdir='${datadir}/${instvardir}/lisp' package_path='' etcdir='${datadir}/${instvardir}/etc' -archlibdir='${datadir}/${instvardir}/${configuration}' +archlibdir='${libdir}/${instvardir}/${configuration}' docdir='${archlibdir}' with_netinstall="no" with_prefix='yes' diff -r 5c696033aec4 -r 12095b04a9b6 lisp/ChangeLog --- a/lisp/ChangeLog Fri Sep 28 15:31:01 2001 +0000 +++ b/lisp/ChangeLog Sat Sep 29 08:03:01 2001 +0000 @@ -1,3 +1,9 @@ +2001-09-28 Ben Wing + + * font-lock.el: + * font-lock.el (font-lock-after-change-function): + fix problem with last patch, reported by Katsumi Yamaoka. + 2001-09-17 Ben Wing * font-lock.el (font-lock-after-change-function): diff -r 5c696033aec4 -r 12095b04a9b6 lisp/font-lock.el --- a/lisp/font-lock.el Fri Sep 28 15:31:01 2001 +0000 +++ b/lisp/font-lock.el Sat Sep 29 08:03:01 2001 +0000 @@ -2,7 +2,7 @@ ;; Copyright (C) 1992-1995, 1997 Free Software Foundation, Inc. ;; Copyright (C) 1995 Amdahl Corporation. -;; Copyright (C) 1996, 2000 Ben Wing. +;; Copyright (C) 1996, 2000, 2001 Ben Wing. ;; Author: Jamie Zawinski , for the LISPM Preservation Society. ;; Minimally merged with FSF 19.34 by Barry Warsaw @@ -1210,7 +1210,8 @@ ;; 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 ((not (save-excursion (goto-char end) (eolp))) + (setq end (1+ end))) ((/= beg (point-min)) (setq beg (1- beg))) (t nil))) (put-text-property beg end 'font-lock-pending t)