[O] Recent bug? in R source blocks generating images

2016-04-07 Thread William Denton
Sorry about that; hit send too soon. There's something odd happening to me tonight with R source blocks and :session. This works, and generates an image: #+BEGIN_SRC R :results graphics :file example.png plot(1) #+END_SRC But if I start an R session (M-x R) and then run this, with :session, I

[O] Recent bug in R source blocks generating images

2016-04-07 Thread William Denton
This is #+BEGIN_SRC R :session :results graphics :file example.png :width 800 :height 400 library(ggplot2) ggplot(mpg, aes(class)) + geom_bar() #+END_SRC -- William Denton ↔ Toronto, Canada ↔ https://www.miskatonic.org/

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Rasmus
Peter Davis writes: > Actually, after re-reading the old exchange more carefully, it seems > that I already had (require 'ox-org) in my startup file, but > still got the error. However, manually loading the ox-org library > avoided the error. > > So it seems that: > > 1) the cause of the problem

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Peter Davis
On 4/7/16 5:23 PM, Rasmus wrote: Peter Davis writes: Actually, after re-reading the old exchange more carefully, it seems that I already had (require 'ox-org) in my startup file, but still got the error. However, manually loading the ox-org library avoided the error. So it seems that: 1)

Re: [O] Enginnering notation in tables exported to LaTeX

2016-04-07 Thread Daniele Nicolodi
On 4/7/16 1:15 AM, Nicolas Goaziou wrote: > Hello, > > Daniele Nicolodi writes: > >> when exporting to LaTeX, numbers expressed in engineering notation >> contained in tables are transformed into a quite confusing notation: >> 1.234e5 becomes 1.234\,(5) which is rendered by LaTeX as 1.234 (5) wi

[O] [PATCH] org.texi: Replace broken example script for batch execution

2016-04-07 Thread Ethan Ligon
There is an example bash script in section 14.12 of the org manual which is meant to tangle source blocks from a supplied list of org files. The present version is broken in several small ways (it appears to date from a period when babel was still part of contrib), and requires a hard-coded speci

Re: [O] keybinding for inserting simple item, simple plain list

2016-04-07 Thread Nick Dokos
Uwe Brauer writes: "Adam" == Adam Porter writes: > >> org-meta-return (bound to M-RET by default) does this when you're in a > plain >> list. If you're not in a plain list, it inserts a heading. So just put > the >> point in a list and it should do what you want. > > I know

Re: [O] keybinding for inserting simple item, simple plain list

2016-04-07 Thread Uwe Brauer
>>> "Adam" == Adam Porter writes: > org-meta-return (bound to M-RET by default) does this when you're in a plain > list. If you're not in a plain list, it inserts a heading. So just put the > point in a list and it should do what you want. I know this. > If you want a key to bo

Re: [O] fontification lost when using org-goto

2016-04-07 Thread Julien Cubizolles
Adam Porter writes: > Julien Cubizolles free.fr> writes: > >> I've encountered this problem with several themes (dracula, naquadah) >> but not with emacs -Q. Are there some special faces to define ? > > There are quite a few org-mode faces, like org-level-{1..8} for headings. > Do you see this

Re: [O] how to disable smart-tab only on org headline?

2016-04-07 Thread Adam Porter
Upon closer inspection I see that smart-tab-mode refuses to activate in org-mode, so the behavior you're seeing probably is not caused by smart-tab. For me, if the point is on an Org heading without text, like (point marked by "|"): * | lorem ipsum and I press TAB, Org indents the heading, cyc

Re: [O] keybinding for inserting simple item, simple plain list

2016-04-07 Thread Adam Porter
org-meta-return (bound to M-RET by default) does this when you're in a plain list. If you're not in a plain list, it inserts a heading. So just put the point in a list and it should do what you want. If you want a key to both create a plain list when you're not in one and add another item when y

Re: [O] fontification lost when using org-goto

2016-04-07 Thread Adam Porter
Julien Cubizolles free.fr> writes: > I've encountered this problem with several themes (dracula, naquadah) > but not with emacs -Q. Are there some special faces to define ? There are quite a few org-mode faces, like org-level-{1..8} for headings. Do you see this behavior with all themes? For e

Re: [O] how to disable smart-tab only on org headline?

2016-04-07 Thread Adam Porter
Hi, It looks like it may be a simple fix to make smart-tab call org-cycle in org-mode. I forked the repo and made the change: https://github.com/alphapapa/smart-tab/tree/org-mode Note, I have not tested it, but I think it should work. Let me know what you find out.

[O] keybinding for inserting simple item, simple plain list

2016-04-07 Thread Uwe Brauer
Hello This must be completely trival, but I cannot find a solution in the manual nor in google. I would like to bind some key, say (super return) to a function which would insert a simple item in a list. (meta return) inserts in an org mode file, a heading. However (meta return) in message mode

[O] fontification lost when using org-goto

2016-04-07 Thread Julien Cubizolles
I'm using an emacs theme for fontification. The fontification is lost whenever I use org-goto: no more colors, no more hidden stars. When I leave the temporary buffer, the fontification is not restored until I run M-x org-mode or update the #+ lines with C-c C-c. I've encountered this problem with

[O] how to disable smart-tab only on org headline?

2016-04-07 Thread Xebar Saram
Hi guys i found this nifty little package called smart tab that makes using tab in emacs easier: https://github.com/genehack/smart-tab/tree/master the only issue is that when on org headlines instead of expanding/collapsing it tries to auto add more stars which shifts the whole structure i was

Re: [O] Editing Quote blocks remotely

2016-04-07 Thread Nicolas Goaziou
Rasmus writes: > With org-narrow-to-block you have to pay attention to the boundaries of > the block, but indeed it goes most of the way. Of course it’s trivial to > fix that. > > The nice part would be to be able to edit the content of the block in a > different buffer. It’s good for dumping p

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Peter Davis
Peter Davis writes: > Peter Davis writes: > >> Rasmus writes: >> >>> Hi Peter, >>> >>> Peter Davis writes: >>> I used to be able to use org-buffer-org-mime-htmlize to send my org documents as multipart/alternative html & text email. For some reason, this is stopped working, and

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Peter Davis
Peter Davis writes: > Rasmus writes: > >> Hi Peter, >> >> Peter Davis writes: >> >>> I used to be able to use org-buffer-org-mime-htmlize to send my org >>> documents as multipart/alternative html & text email. For some >>> reason, this is stopped working, and now displays >>> >>> Unknown "nil"

Re: [O] Editing Quote blocks remotely

2016-04-07 Thread Rasmus
Nicolas Goaziou writes: >> It would be nice if one could open an editing buffer for quote blocks, >> e.g. using C-c '. >> >> I guess we could use the code already used for remote footnote editing in >> org-src.el (I think) or whatever is being used for example blocks. The >> mode should be Org,

Re: [O] Editing Quote blocks remotely

2016-04-07 Thread Nicolas Goaziou
Hello, Rasmus writes: > It would be nice if one could open an editing buffer for quote blocks, > e.g. using C-c '. > > I guess we could use the code already used for remote footnote editing in > org-src.el (I think) or whatever is being used for example blocks. The > mode should be Org, I guess

Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Nicolas Goaziou
Hello, Christian Wittern writes: > Great, thanks. Yes, this answers a few other questions as well. For > example, it seems that a drawer always has to end with :END: in capital > letters, using :end: is not possible (I usually prefer the non-shouting > variant if possible). ":end:" is also va

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Peter Davis
Rasmus writes: > Hi Peter, > > Peter Davis writes: > >> I used to be able to use org-buffer-org-mime-htmlize to send my org >> documents as multipart/alternative html & text email. For some >> reason, this is stopped working, and now displays >> >> Unknown "nil" back-end: Aborting export >> >>

Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Christian Wittern
Hi, On 2016-04-07 18:05, Christian Moe wrote: > The syntax document is at http://orgmode.org/worg/dev/org-syntax.html. > It defines drawers as a "greater element", and says that greater > elements may contain other greater elements. Exporting a sample block > wrapped in a drawer works fine with th

Re: [O] babel result chain outdated/inconsistent using var

2016-04-07 Thread Daniele Pizzolli
On Thu, Apr 07 2016, Nicolas Goaziou wrote: > Daniele Pizzolli writes: > >> Do I am missing something else? Thanks again for your assistance. > > There seems to be an issue with cache. Call `M-x > org-element-reset-cache' before calling `org-babel-execute-buffer'. Hello, thanks, to be precise t

[O] Editing Quote blocks remotely

2016-04-07 Thread Rasmus
Hi, It would be nice if one could open an editing buffer for quote blocks, e.g. using C-c '. I guess we could use the code already used for remote footnote editing in org-src.el (I think) or whatever is being used for example blocks. The mode should be Org, I guess. It might be nice to support

Re: [O] babel result chain outdated/inconsistent using var

2016-04-07 Thread Nicolas Goaziou
Daniele Pizzolli writes: > Do I am missing something else? Thanks again for your assistance. There seems to be an issue with cache. Call `M-x org-element-reset-cache' before calling `org-babel-execute-buffer'. Regards,

Re: [O] babel result chain outdated/inconsistent using var

2016-04-07 Thread Daniele Pizzolli
On Thu, Apr 07 2016, Nicolas Goaziou wrote: > Hello, > > Daniele Pizzolli writes: > >> #+NAME: pid-result >> #+RESULTS: pid >> #+NAME: echo-pid >> #+BEGIN_SRC shell :var DATA=pid-result :results value >> printf '%s' "${DATA}" #+END_SRC >> >> #+RESULTS: echo-pid > > You are giving two names to the

Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Marco Wahl
Christian Wittern writes: >> On the third hand, have you considered wrapping a block in a drawer? > No, I had not considered this. Let me play around with that idea for a > while. Is this syntactically allowed? I remember there was a document > discussed a while ago that would define org syntax

Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Christian Moe
Hi, The syntax document is at http://orgmode.org/worg/dev/org-syntax.html. It defines drawers as a "greater element", and says that greater elements may contain other greater elements. Exporting a sample block wrapped in a drawer works fine with the d:t option. Other complications may arise, thou

Re: [O] babel result chain outdated/inconsistent using var

2016-04-07 Thread Nicolas Goaziou
Hello, Daniele Pizzolli writes: > #+NAME: pid-result > #+RESULTS: pid > #+NAME: echo-pid > #+BEGIN_SRC shell :var DATA=pid-result :results value > printf '%s' "${DATA}" #+END_SRC > > #+RESULTS: echo-pid You are giving two names to the block, which is not possible. I don't know what you are tr

Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Christian Wittern
Dear Christian, Thank you for your feedback. On 2016-04-05 16:54, Christian Moe wrote: > On the third hand, have you considered wrapping a block in a drawer? No, I had not considered this. Let me play around with that idea for a while. Is this syntactically allowed? I remember there was a document

Re: [O] org-mime-org-buffer-htmlize can't find back-end

2016-04-07 Thread Rasmus
Hi Peter, Peter Davis writes: > I used to be able to use org-buffer-org-mime-htmlize to send my org > documents as multipart/alternative html & text email. For some > reason, this is stopped working, and now displays > > Unknown "nil" back-end: Aborting export > > In the *Messages* buffer, I see

Re: [O] babel result chain outdated/inconsistent using var

2016-04-07 Thread Daniele Pizzolli
On Wed, Apr 06 2016, Nicolas Goaziou wrote: > Daniele Pizzolli writes: > >> Thanks Nicolas for the reply. Ok, but `org-babel-execute-buffer' >> produces an inconsistent document right now. > > This is because you ask it to. See below. > >> Mmm, the same reasoning can be used for arguing about the

Re: [O] bug in ox-koma-letter.el

2016-04-07 Thread Rasmus
Hi, Thanks for your report. Thomas Holst writes: > with latest org-mode version from git I get the following error when I > try to export a subtree to pdf via koma-letter: > > if: Symbol's value as variable is void: option > > I did a little search: 'option' occurs in commit: > > 3ee3663 ox

Re: [O] [PATCH] ox-koma-letter.el: Add support for 'location' koma variable

2016-04-07 Thread Rasmus
Myles English writes: > A patch is attached that fixes some naughty brackets in the recent commit. Don't worry: I probably added those by accident when rebasing. Anyway, I pushed both patches and updated the Worg page. Let me know if everything is OK. Rasmus -- Bang bang

[O] bug in ox-koma-letter.el

2016-04-07 Thread Thomas Holst
Hello, with latest org-mode version from git I get the following error when I try to export a subtree to pdf via koma-letter: if: Symbol's value as variable is void: option I did a little search: 'option' occurs in commit: 3ee3663 ox-koma-letter: Add support for LOCATION I reverted that co

Re: [O] Enginnering notation in tables exported to LaTeX

2016-04-07 Thread Nicolas Goaziou
Hello, Daniele Nicolodi writes: > when exporting to LaTeX, numbers expressed in engineering notation > contained in tables are transformed into a quite confusing notation: > 1.234e5 becomes 1.234\,(5) which is rendered by LaTeX as 1.234 (5) with > the space being a very narrow one. This notation