From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Problem exporting code Date: Mon, 21 Jan 2013 10:48:03 -0600 Message-ID: References: <87libnmdjx.fsf@ucl.ac.uk> <87pq0zkmrt.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxKXZ-0003tX-Qq for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 11:48:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxKXU-0002hd-T1 for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 11:48:09 -0500 Received: from mail-ob0-f174.google.com ([209.85.214.174]:52237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxKXU-0002hV-Oa for emacs-orgmode@gnu.org; Mon, 21 Jan 2013 11:48:04 -0500 Received: by mail-ob0-f174.google.com with SMTP id 16so167913obc.19 for ; Mon, 21 Jan 2013 08:48:04 -0800 (PST) In-Reply-To: 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: Ken Williams Cc: emacs-orgmode@gnu.org On Mon, Jan 21, 2013 at 9:58 AM, Ken Williams wrote: > I believe I've figured it out. I must have an old version of 'htmlize' > installed somewhere, I 'edebug' traced through the code and fell through to > this part: > > (when lang > (if (featurep 'xemacs) > (require 'htmlize) > (require 'htmlize nil t)) > (when (not (fboundp 'htmlize-region-for-paste)) > ;; we do not have htmlize.el, or an old version of it > (setq lang nil) > (message > "htmlize.el 1.34 or later is needed for source code formatting"))) > > I couldn't manage to set up my load-path to load htmlize 'properly' (is > htmlize not able to be loaded via 'load-path' and 'require'?), but after > downloading htmlize 1.43 and adding the following to my .emacs, I seem to be > in business again: Awesome that you got it going. Do you still have =(require 'org-install)= in your .emacs? ETA: just checked and you do. I checked as I had an issue with emacs not using the git version of org because I stupidly had =(require 'org-install)= before my load paths! The only thing that stuck out to me was this: =(add-to-list 'load-path "~/share/emacs/site-lisp/org" load-path)= Is that the proper syntax? Mine (and just checked the org manual) features this: =(add-to-list 'load-path "~/path/to/orgdir/lisp")=. I know nil about elisp (see what I did there?), but does that extra "load-path" at the end of the argument do anything? Good luck, John > > (load-file "~/share/emacs/site-lisp/htmlize/htmlize.el") > > Thanks everyone. > > > > On Mon, Jan 21, 2013 at 1:39 AM, Eric S Fraga wrote: >> >> Ken Williams writes: >> >> > Thanks John. Here's a small org file: >> >> Data point: this works just fine for me with both old and new >> exporters. And I don't even have R installed on this particular system >> (hadn't realised until now ;-). >> >> -- >> : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D >> : in Emacs 24.3.50.1 and Org release_7.9.3d-826-gbe0d87 >> >