From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#22399: org-mode fontification Date: Tue, 19 Jan 2016 11:25:01 +0000 Message-ID: <87bn8hreuq.fsf__8711.88630485467$1453202783$gmane$org@russet.org.uk> References: <87oacjng36.fsf@russet.org.uk> <87ziw36khb.fsf@gmx.us> <87a8o2zrtm.fsf@russet.org.uk> <87bn8i7mha.fsf@gmx.us> <87d1syvgc7.fsf@kyleam.com> <8737tu13la.fsf@kyleam.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453202783 7517 80.91.229.3 (19 Jan 2016 11:26:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 11:26:23 +0000 (UTC) Cc: 22399@debbugs.gnu.org To: Kyle Meyer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 19 12:26:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aLUQP-0007y9-0U for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2016 12:26:13 +0100 Original-Received: from localhost ([::1]:36286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUQO-00008c-Df for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jan 2016 06:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUQI-000058-Tm for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 06:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLUQE-0004rA-JR for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2016 06:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUQE-0004r6-GT; Tue, 19 Jan 2016 06:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aLUQE-0001aG-9S; Tue, 19 Jan 2016 06:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Tue, 19 Jan 2016 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22399 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: X-Debbugs-Original-Cc: 22399@debbugs.gnu.org, Org Mode Original-Received: via spool by 22399-submit@debbugs.gnu.org id=B22399.14532027065800 (code B ref 22399); Tue, 19 Jan 2016 11:26:02 +0000 Original-Received: (at 22399) by debbugs.gnu.org; 19 Jan 2016 11:25:06 +0000 Original-Received: from localhost ([127.0.0.1]:53436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLUPK-0001VT-3g for submit@debbugs.gnu.org; Tue, 19 Jan 2016 06:25:06 -0500 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:47801) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aLUPH-0001Up-UG for 22399@debbugs.gnu.org; Tue, 19 Jan 2016 06:25:04 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1aLUPG-0005tu-C7; Tue, 19 Jan 2016 11:25:02 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aLUPF-0002Cc-Ll; Tue, 19 Jan 2016 11:25:01 +0000 In-Reply-To: <8737tu13la.fsf@kyleam.com> (Kyle Meyer's message of "Tue, 19 Jan 2016 01:32:49 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111739 Archived-At: Kyle Meyer writes: > Kyle Meyer writes: >> Rasmus writes: >> >> [...] >> >>> Note, this change only lives it the Emacs version of Org. It was added in >>> this commit: >>> >>> 6711a21f1125c0047c56eb266eb374c1ec90a967 > > [...] > >> >> 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)) > > I've attached two patches against emacs-25 that would get the Org and > Emacs repos in similar states wrt font-lock-ensure. > > The first patch replaces the font-lock-ensure compatibility alias from > 6711a21f1 with the one currently used in the Org repo (from commit > e6883dd03). The new alias is limited to being called with no > arguments, but, at the moment, no Org code calls font-lock-ensure with > any arguments. > > The second patch reverts a part of 6711a21f1 that modified > org-src-font-lock-fontify-block to use font-lock-ensure rather than > font-lock-fontify-buffer. In this particular case, using > font-lock-ensure instead of font-lock-fontify-buffer fails to > highlight the source block. I've tested these on emacs-25 and can confirm that they solve the problem. Thanks! Phil