Mercurial > hg > xemacs-beta
diff lisp/font-lock.el @ 670:12095b04a9b6
[xemacs-hg @ 2001-09-29 08:02:03 by ben]
font-lock.el: fix problem with last patch, reported by Katsumi Yamaoka.
author | ben |
---|---|
date | Sat, 29 Sep 2001 08:03:01 +0000 |
parents | 6e99cc8c6ca5 |
children | cd697e94b3d4 |
line wrap: on
line diff
--- 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 <jwz@jwz.org>, for the LISPM Preservation Society. ;; Minimally merged with FSF 19.34 by Barry Warsaw <bwarsaw@python.org> @@ -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)