# HG changeset patch # User Gerd Moellmann # Date 983192847 0 # Node ID 05bbe56d446f7e60c974c21eb172733a31ab6a72 # Parent 88b90fa71d23cb99f26cbc647d9e1c603496e4e5 (lazy-lock-fontify-after-idle): Make sure to fontify in the right buffer. diff -r 88b90fa71d23 -r 05bbe56d446f lisp/lazy-lock.el --- a/lisp/lazy-lock.el Mon Feb 26 12:17:18 2001 +0000 +++ b/lisp/lazy-lock.el Mon Feb 26 13:07:27 2001 +0000 @@ -1,6 +1,7 @@ ;;; lazy-lock.el --- Lazy demand-driven fontification for fast Font Lock mode. -;; Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001 +;; Free Software Foundation, Inc. ;; Author: Simon Marshall ;; Maintainer: FSF @@ -844,6 +845,8 @@ (lazy-lock-percent-fontified) (buffer-name)) (message "Fontifying stealthily...") (setq message t))) + ;; Current buffer may have changed during `sit-for'. + (set-buffer (car buffers)) (lazy-lock-fontify-chunk) (setq continue (sit-for (or lazy-lock-stealth-nice 0))))))) (setq buffers (cdr buffers)))))))