From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: controlling how htmlize fontifies code Date: Tue, 4 Aug 2015 14:24:49 +0100 Message-ID: <87a8u7faou.fsf@ucl.ac.uk> References: <874mkihwl2.fsf@ucl.ac.uk> <20150802131919.GA98482@eyeBook.home> <87a8u8jxb0.fsf@ucl.ac.uk> <20150803210802.GA2327@eyeBook.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMcDE-0007vR-TQ for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:25:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMcD9-0003mu-Mh for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:25:00 -0400 Received: from mail-db3on0119.outbound.protection.outlook.com ([157.55.234.119]:14353 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMcD9-0003ko-C8 for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 09:24:55 -0400 In-Reply-To: <20150803210802.GA2327@eyeBook.home> (Rick Frankel's message of "Mon, 3 Aug 2015 17:08:02 -0400") 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: emacs-orgmode@gnu.org On Monday, 3 Aug 2015 at 17:08, Rick Frankel wrote: [...] > Both should work. Are you sure you have `org-export-allow-bind-keywords' set? > Why wouldn't you expect local variables to work? Okay, I have tracked the problem down. Took some effort and boy did this test my not very extensive emacs lisp knowledge! I do need to learn how to use the Emacs debugger. Task for a rainy day... In any case, the problem is that the fontification happens (org-html-htmlize-output-type not nil) in org-html-fontify-code using with-temp-buffer which resets org-html-htmlize-output-type back to inline-css or whatever the global setting for that variable happens to be. So, basically, one can have code fontified with inline-css or not at all unless the output type is set to css globally. I hope this makes sense. Trying to fix this is definitely beyond my ability unfortunately. I may need to see how onerous it is to set the output type to css globally. Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3beta-1315-ga3b2b7