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: [elpa] master 3c1f421: rainbow: fix font-lock-mode refresh Date: Mon, 09 Mar 2015 00:09:08 -0400 Message-ID: References: <20150306160149.10234.93321@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425874178 28027 80.91.229.3 (9 Mar 2015 04:09:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Mar 2015 04:09:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 09 05:09:29 2015 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 1YUp0Q-000158-EM for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2015 05:09:26 +0100 Original-Received: from localhost ([::1]:41388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUp0P-00064R-E8 for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2015 00:09:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUp0C-00064M-So for emacs-devel@gnu.org; Mon, 09 Mar 2015 00:09:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUp09-0007iy-Jx for emacs-devel@gnu.org; Mon, 09 Mar 2015 00:09:12 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:20181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUp09-0007is-Ft for emacs-devel@gnu.org; Mon, 09 Mar 2015 00:09:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroTAPOG1lRLd/0j/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWKAsLNBIUGA2IXAjOIwEBCAIgj38WhBQFqXKBRSKECiKCcwEBAQ X-IPAS-Result: AroTAPOG1lRLd/0j/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWKAsLNBIUGA2IXAjOIwEBCAIgj38WhBQFqXKBRSKECiKCcwEBAQ X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="113027500" Original-Received: from 75-119-253-35.dsl.teksavvy.com (HELO ceviche.home) ([75.119.253.35]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Mar 2015 00:09:08 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4EC7F66194; Mon, 9 Mar 2015 00:09:08 -0400 (EDT) In-Reply-To: (Julien Danjou's message of "Sat, 07 Mar 2015 10:38:25 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:183736 Archived-At: > So that's the only way we found to refresh the current fontification of > a buffer with font-lock-mode. If there's a better way, let me know! To cause font-lock to refresh some part of the buffer (typically the whole buffer, after changing the font-lock-keywords), the (new) recommended way is to use font-lock-flush. Note that this is orthogonal to enabling/disabling font-lock-mode (IOW font-lock-flush won't do anything if font-lock-mode is disabled). Stefan