From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: What to do when font-lock-flush + font-lock-ensure do less than font-lock-fontify-buffer? Date: Tue, 23 Feb 2016 22:52:38 -0500 Message-ID: References: <56CA94A8.3000205@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456285998 5873 80.91.229.3 (24 Feb 2016 03:53:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 03:53:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 24 04:53:10 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 1aYQVh-0004jw-Kk for ged-emacs-devel@m.gmane.org; Wed, 24 Feb 2016 04:53:09 +0100 Original-Received: from localhost ([::1]:33300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVg-00035B-Ui for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2016 22:53:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVN-00032f-Qg for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYQVJ-0000TW-RU for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:49 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYQVJ-0000TK-Kp for emacs-devel@gnu.org; Tue, 23 Feb 2016 22:52:45 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aYQVI-0004Su-K8 for emacs-devel@gnu.org; Wed, 24 Feb 2016 04:52:44 +0100 Original-Received: from 76-10-161-227.dsl.teksavvy.com ([76.10.161.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 04:52:44 +0100 Original-Received: from monnier by 76-10-161-227.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 04:52:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 76-10-161-227.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Q8xRMWZkJKysFmDa0udKZq2Qb5Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:200591 Archived-At: > 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. Stefan