From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer? Date: Wed, 24 Feb 2016 19:12:35 +0200 Message-ID: <83bn76hw1o.fsf@gnu.org> References: <56CA94A8.3000205@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456333981 1912 80.91.229.3 (24 Feb 2016 17:13:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 17:13:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 18:12:56 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYczf-00031K-VN for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 18:12:56 +0100 Original-Received: from localhost ([::1]:37221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYczf-0000JF-8s for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 12:12:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYczR-0000J8-8s for emacs-devel@gnu.org; Wed, 24 Feb 2016 12:12:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYczO-0002Gd-2D for emacs-devel@gnu.org; Wed, 24 Feb 2016 12:12:41 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYczN-0002GZ-V3; Wed, 24 Feb 2016 12:12:37 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3720 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYczN-0002SK-4I; Wed, 24 Feb 2016 12:12:37 -0500 In-reply-to: (message from Stefan Monnier on Tue, 23 Feb 2016 22:52:38 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200625 Archived-At: > From: Stefan Monnier > Date: Tue, 23 Feb 2016 22:52:38 -0500 > > > In particular, when the font-lock-fontified variable is nil (which does > > happen, though I don't know why; I don't know what this variable is for), > > AFAIK this only happens when font-lock-mode is OFF, or when jit-lock is > not used and the buffer is larger than font-lock-maximum-size. > > > then calling font-lock-fontify buffer does refontify the whole buffer, but > > font-lock-flush and font-lock-ensure don't seem to do anything. > > It's normal for font-lock-flush to do nothing. As for font-lock-ensure > it's a bug which I believe I fixed a few weeks ago. Actually, in this particular case I think this is a bug in prettify-symbols-mode: it should define its own font-lock-ensure-function. The default value doesn't cover the kind of stuff that this mode uses font-lock for.