From: Gerd Moellmann Date: Mon, 26 Feb 2001 13:07:27 +0000 (+0000) Subject: (lazy-lock-fontify-after-idle): Make sure to X-Git-Tag: emacs-pretest-21.0.99~121 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c02a1053a02033ceae892cf0975cd9e04bd995fd;p=emacs.git (lazy-lock-fontify-after-idle): Make sure to fontify in the right buffer. --- diff --git a/lisp/lazy-lock.el b/lisp/lazy-lock.el index b8a11dc349a..d5597d38a40 100644 --- a/lisp/lazy-lock.el +++ b/lisp/lazy-lock.el @@ -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 @@ verbosity is controlled via the variable `lazy-lock-stealth-verbose'." (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)))))))