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: Tue, 23 Feb 2016 18:57:18 +0200 Message-ID: <83y4abicup.fsf@gnu.org> References: <56CA94A8.3000205@gmail.com> <83si0klo3c.fsf@gnu.org> <56CB3756.6000906@gmail.com> <83k2lwlmvf.fsf@gnu.org> <56CB452D.8090302@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1456246649 24205 80.91.229.3 (23 Feb 2016 16:57:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 16:57:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 23 17:57:29 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 1aYGHA-0001i7-A1 for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2016 17:57:28 +0100 Original-Received: from localhost ([::1]:58453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGH9-0002X4-S6 for ged-emacs-devel@m.gmane.org; Tue, 23 Feb 2016 11:57:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGH6-0002WQ-Up for emacs-devel@gnu.org; Tue, 23 Feb 2016 11:57:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYGH6-00028n-2z for emacs-devel@gnu.org; Tue, 23 Feb 2016 11:57:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGH5-00028g-W7; Tue, 23 Feb 2016 11:57:24 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2568 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYGH5-0005iy-B0; Tue, 23 Feb 2016 11:57:23 -0500 In-reply-to: <56CB452D.8090302@gmail.com> (message from =?utf-8?Q?Cl=C3=A9?= =?utf-8?Q?ment?= Pit--Claudel on Mon, 22 Feb 2016 12:28:13 -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:200546 Archived-At: > Cc: emacs-devel@gnu.org > From: Clément Pit--Claudel > Date: Mon, 22 Feb 2016 12:28:13 -0500 > > (with-current-buffer (get-buffer-create "temp") > (erase-buffer) > (setq-default prettify-symbols-unprettify-at-point 'right-edge) > (emacs-lisp-mode) > (prettify-symbols-mode) > (insert "lambda\n\nlambda") > (pop-to-buffer (current-buffer))) > > Moving around in this buffer unprettifies and reprettifies ‘lambda’s into ‘λ’s as the point moves in and out of them. Setting ‘font-lock-fontified’ to nil breaks that mechanism (the ‘λ’s are unprettified but no reprettified), and no series of ‘font-lock-flush’ and ‘font-lock-ensure’ will reprettify them. > > Does this help? Yes, thanks. I will look into this soon.