From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: bug#22399: org-mode fontification Date: Mon, 18 Jan 2016 14:27:04 -0500 Message-ID: <87d1syvgc7.fsf@kyleam.com> References: <87oacjng36.fsf@russet.org.uk> <87ziw36khb.fsf@gmx.us> <87a8o2zrtm.fsf@russet.org.uk> <87bn8i7mha.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLFSL-0007e6-U5 for emacs-orgmode@gnu.org; Mon, 18 Jan 2016 14:27:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLFSI-00059Q-NL for emacs-orgmode@gnu.org; Mon, 18 Jan 2016 14:27:13 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:54843 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLFSI-00059L-In for emacs-orgmode@gnu.org; Mon, 18 Jan 2016 14:27:10 -0500 In-Reply-To: <87bn8i7mha.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 18 Jan 2016 19:48:17 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: phillip.lord@russet.org.uk Cc: 22399@debbugs.gnu.org, Org Mode Hi Phillip and Rasmus, Rasmus writes: [...] > Note, this change only lives it the Emacs version of Org. It was added in > this commit: > > 6711a21f1125c0047c56eb266eb374c1ec90a967 > Author: Stefan Monnier > AuthorDate: Wed May 28 23:45:29 2014 -0400 > > * lisp/font-lock.el (font-lock-flush, font-lock-ensure): New functions. > * lisp/org/org-compat.el (org-font-lock-ensure): New function. > * lisp/org/ox-odt.el (org-odt-do-format-code): > * lisp/org/ox-html.el (org-html-fontify-code): > * lisp/org/org.el (org-fontify-like-in-org-mode): > * lisp/org/org-src.el (org-src-font-lock-fontify-block): > * lisp/org/org-clock.el (org-clock-get-clocktable): Use it. > * lisp/org/ox-org.el (org-org-publish-to-org): Use it. Avoid using find-file > from Elisp. > * test/automated/ruby-mode-tests.el (ruby-assert-face): Use font-lock-ensure. > (ruby-interpolation-keeps-non-quote-syntax): Use syntax-propertize. This commit was backported in Org commit d81e6b5, and then followed up by c115c7b (org-compat: Use different font-lock-ensure alias, 2015-07-26), which defined the alias as (unless (fboundp 'font-lock-ensure) (defalias 'font-lock-ensure 'font-lock-fontify-buffer)) -- Kyle