Re: [O] Problem exporting code

2013-01-22 Thread Achim Gratz
Thomas S. Dye writes: > I think you and I have different definitions of "problem". From my > user's perspective, something I "get away with," i.e., that doesn't have > an effect on my work and productivity, isn't a problem. That may well be true. I'm firmly in the "fail fast and crash loudly" cam

Re: [O] Problem exporting code

2013-01-22 Thread Bastien
Thorsten Jolitz writes: > I found a really nice alternative keymap here: > http://emacswiki.org/emacs/OutlineMinorMode Thanks -- but that's quite bigger than just using Org ;) -- Bastien

Re: [O] Problem exporting code

2013-01-22 Thread Bastien
Hi Achim, Achim Gratz writes: > Bastien writes: >> So I'm seriously questioning the value of having Org as an ELPA >> package and I'm thinking of removing this possibility until Emacs >> package install is fixed (Achim is working on this, but it looks >> like the change will not be in Emacs any

Re: [O] Problem exporting code

2013-01-22 Thread Thorsten Jolitz
Bastien writes: Hi Bastien, >> Why do you consider outline(-minor-mode) as completely unusable? > > Because of the keybindings. I found a really nice alternative keymap here: http://emacswiki.org/emacs/OutlineMinorMode ,--

Re: [O] Problem exporting code

2013-01-22 Thread Thomas S. Dye
Achim Gratz writes: > Thomas S. Dye writes: >> Interesting, this Emacs distribution removed Org a few days ago. I'm not >> certain why the distributor refers to this as "a rather drastic >> measure." From my perspective as a user, whose interests required using >> the git version of Org from the

Re: [O] Problem exporting code

2013-01-22 Thread Achim Gratz
Bastien writes: > So I'm seriously questioning the value of having Org as an ELPA > package and I'm thinking of removing this possibility until Emacs > package install is fixed (Achim is working on this, but it looks > like the change will not be in Emacs anytime soon.) I've to admit that I've ha

Re: [O] Problem exporting code

2013-01-22 Thread Achim Gratz
Thomas S. Dye writes: > Interesting, this Emacs distribution removed Org a few days ago. I'm not > certain why the distributor refers to this as "a rather drastic > measure." From my perspective as a user, whose interests required using > the git version of Org from the beginning, the Emacs distrib

Re: [O] Problem exporting code

2013-01-22 Thread Bastien
Hi Ken, Ken Williams writes: > I also wrote to him and suggested he remove theĀ (require > 'org-install) statement from his default.el, because it was causing > warnings for people who upgrade org. Indeed. I've removed the warning from the maint/master branches, the file will be silently load

Re: [O] Problem exporting code

2013-01-22 Thread Ken Williams
On Tue, Jan 22, 2013 at 1:49 AM, Bastien wrote: > Hi Thomas and all, > > t...@tsdye.com (Thomas S. Dye) writes: > > > Ken Williams writes: > > > >>> I've been using this: > >>> - http://vgoulet.act.ulaval.ca/en/emacs/mac/ > > Thanks for the pointer, I was not aware of this distribution. > > > In

Re: [O] Problem exporting code

2013-01-22 Thread Thorsten Jolitz
Bastien writes: Hi Bastien, >> I'm asking just out of curiosity, and to learn a bit more, there are >> no urgent problems to be solved on my side here. > > You're welcome! Thanks for the answer, so there is not really a fundamental problem with outline-minor-mode nor is it difficult to replace

Re: [O] Problem exporting code

2013-01-22 Thread Bastien
Hi Thorsten, Let's assume that you don't use ELPA for installing Org. When installing a recent Org, either from an archive or from a git clone, you only need to add the correct load-path, as described in the manual -- for example: (add-to-list 'load-path "~/path/to/orgdir/lisp") > In this thr

Re: [O] Problem exporting code

2013-01-22 Thread Thorsten Jolitz
Bastien writes: Hi Bastien, your post touches two topics that I'm currently dealing with, so here are two questions with regards to this topics: (1) >> I'm not certain why the distributor refers to this as "a rather >> drastic measure." From my perspective as a user, whose interests >> require

Re: [O] Problem exporting code

2013-01-21 Thread Bastien
Hi Thomas and all, t...@tsdye.com (Thomas S. Dye) writes: > Ken Williams writes: > >>> I've been using this: >>> - http://vgoulet.act.ulaval.ca/en/emacs/mac/ Thanks for the pointer, I was not aware of this distribution. > Interesting, this Emacs distribution removed Org a few days ago. This

Re: [O] Problem exporting code

2013-01-21 Thread Thomas S. Dye
Ken Williams writes: > On Mon, Jan 21, 2013 at 5:02 PM, John Hendy wrote: > >> >> On Jan 21, 2013 4:51 PM, "Ken Williams" wrote: >> > >> > It's been a while since I've used this machine, so I'd updated to the >> latest Aquamacs, but it looks like Aquamacs itself hasn't seen a release in >> over

Re: [O] Problem exporting code

2013-01-21 Thread Ken Williams
On Mon, Jan 21, 2013 at 5:02 PM, John Hendy wrote: > > On Jan 21, 2013 4:51 PM, "Ken Williams" wrote: > > > > It's been a while since I've used this machine, so I'd updated to the > latest Aquamacs, but it looks like Aquamacs itself hasn't seen a release in > over a year. That's probably part o

Re: [O] Problem exporting code

2013-01-21 Thread Thomas S. Dye
Aloha Ken, Ken Williams writes: > > It's been a while since I've used this machine, so I'd updated to the > latest Aquamacs, but it looks like Aquamacs itself hasn't seen a release in > over a year. That's probably part of the problem. I wonder if there's > something else filling the niche the

Re: [O] Problem exporting code

2013-01-21 Thread Eric S Fraga
Ken Williams writes: > 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: Glad you sorted it! > I couldn't manage to set up my load-path to load htmlize 'properly' (is > htmlize not a

Re: [O] Problem exporting code

2013-01-21 Thread Ken Williams
On Mon, Jan 21, 2013 at 4:16 PM, John Hendy wrote: > On Mon, Jan 21, 2013 at 11:45 AM, Ken Williams wrote: > > > > On Mon, Jan 21, 2013 at 10:48 AM, John Hendy wrote: > >> > >> > >> Awesome that you got it going. Do you still have =(require > >> 'org-install)= in your .emacs? ETA: just checked

Re: [O] Problem exporting code

2013-01-21 Thread John Hendy
On Mon, Jan 21, 2013 at 11:45 AM, Ken Williams wrote: > > On Mon, Jan 21, 2013 at 10:48 AM, John Hendy wrote: >> >> >> 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

Re: [O] Problem exporting code

2013-01-21 Thread Ken Williams
On Mon, Jan 21, 2013 at 10:48 AM, John Hendy wrote: > > 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-insta

Re: [O] Problem exporting code

2013-01-21 Thread John Hendy
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

Re: [O] Problem exporting code

2013-01-21 Thread Ken Williams
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))

Re: [O] Problem exporting code

2013-01-20 Thread Eric S Fraga
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

Re: [O] Problem exporting code

2013-01-20 Thread Ken Williams
Argh, forgot my platform details - I'm using: Either org-mode 7.9.3d or 7.8.11 (same results) Aquamacs 2.4 (but I saw the same result using Emacs on a Linux box) Aquamacs is based on GNU Emacs 23.3.50.1. -Ken On Sun, Jan 20, 2013 at 11:36 PM, John Hendy wrote: > On Sun, Jan 20, 2013 at 10:57

Re: [O] Problem exporting code

2013-01-20 Thread Ken Williams
Thanks John. Here's a small org file: > #+TITLE: Sample Doc #+AUTHOR:Ken Williams #+EMAIL: kena...@gmail.com #+DATE: 2013-01-21 #+PROPERTY: results output #+PROPERTY: exports both #+LATEX_HEADER: \usepackage{amsmath} #+begin_src R 5+5 #+end_src #+RESULTS: : [1]

Re: [O] Problem exporting code

2013-01-20 Thread Ken Williams
On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams wrote: > > I'm grasping at straws too, not knowing my way around the elisp code very > well. =) > It looks like the function controlling this behavior is `org-export-format-source-code-or-example`, in org-exp.el: (if (string-mat

Re: [O] Problem exporting code

2013-01-20 Thread John Hendy
On Sun, Jan 20, 2013 at 11:36 PM, John Hendy wrote: > On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams wrote: >> >> On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga wrote: >>> >>> Ken Williams writes: >>> Unfortunately, downgrading to 7.8.11 didn't change the behavior - all code sections a

Re: [O] Problem exporting code

2013-01-20 Thread John Hendy
On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams wrote: > > On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga wrote: >> >> Ken Williams writes: >> >>> Unfortunately, downgrading to 7.8.11 didn't change the behavior - all >>> code sections are still exported to HTML as class "example". >>> I also see t

Re: [O] Problem exporting code

2013-01-20 Thread Ken Williams
On Sun, Jan 20, 2013 at 9:15 PM, Eric S Fraga wrote: > Ken Williams writes: > > Unfortunately, downgrading to 7.8.11 didn't change the behavior - all >> code sections are still exported to HTML as class "example". >> I also see that on one machine, using 7.9.2, I get the desired > class="src sr

Re: [O] Problem exporting code

2013-01-20 Thread Eric S Fraga
Ken Williams writes: Unfortunately, downgrading to 7.8.11 didn't change the behavior - all code sections are still exported to HTML as class "example". I also see that on one machine, using 7.9.2, I get the desired tag for R code export. I can't figure out what's making the difference th

Re: [O] Problem exporting code

2013-01-20 Thread Ken Williams
Unfortunately, downgrading to 7.8.11 didn't change the behavior - all code sections are still exported to HTML as class "example". I also see that on one machine, using 7.9.2, I get the desired tag for R code export. I can't figure out what's making the difference though. On Sun, Jan 20, 2013

[O] Problem exporting code

2013-01-20 Thread Ken Williams
I'm giving a talk tomorrow on org-mode and R, and I'm having an exporting problem that's tripping me up. Usually when I export code/output sections to HTML, they get CSS classes like "src-R" for R code, "src-perl" for perl code, "example" for output. But now they're all "example". Has anyone see