Re: [O] Difference between eval and export

2014-09-29 Thread Johannes Rainer
I tried to make an example that does not need a lot of input data but without success. never mind, it works if I run the code on a single cpu, or if I run it on a linux machine. On 30 Sep 2014, at 01:32, Grant Rettke wrote: > How painful would it be to pare it down to the minimal example of th

Re: [O] orgmode in drupal

2014-09-29 Thread Christian Moe
Thanks for this -- definitely interesting, but I'll have no time to try it out for a while. Yours, Christian David Arroyo Menendez writes: > Hello, > > Perhaps in this mailing list there are some drupal admin who wants > upload his files to drupal. I've a project to make it :) > https://www.dru

[O] Error Embedding SQL Source from code block into R Source of Another (noweb)

2014-09-29 Thread Eric Brown
Dear List: It is possible to embed SQL code as a string to be evaluated in R. I am interested in formatting the SQL code in its own source code block, with its own syntax highlighting and editing mode (C-c '). The first time I run the code, I am prompted for R starting directory, but I get an err

Re: [O] [ob, bug?] org-sbe

2014-09-29 Thread Charles Berry
Rasmus gmx.us> writes: > > Hi, > > I used sbe a long time ago. Apparently it has been renamed to > org-spe. > > I was unable get org-spe working as a dumb currency converter, so I > tried the example in the top of ob-table.el. However, I'm also unable > to get this example working, even star

[O] [ob, bug?] org-sbe

2014-09-29 Thread Rasmus
Hi, I used sbe a long time ago. Apparently it has been renamed to org-spe. I was unable get org-spe working as a dumb currency converter, so I tried the example in the top of ob-table.el. However, I'm also unable to get this example working, even starting from emacs -q. . . This is the suggest

[O] orgmode in drupal

2014-09-29 Thread David Arroyo Menendez
Hello, Perhaps in this mailing list there are some drupal admin who wants upload his files to drupal. I've a project to make it :) https://www.drupal.org/node/1977240. Regards.

[O] sortable columns in html tables

2014-09-29 Thread David Arroyo Menendez
Hello, How can I make sortable columns in tables? I would be useful to edit or export to html. Some experiences? Thanks!

Re: [O] Difference between eval and export

2014-09-29 Thread Grant Rettke
How painful would it be to pare it down to the minimal example of the behavior? On Mon, Sep 29, 2014 at 6:14 AM, Johannes Rainer wrote: > I checked the environment variables in Emacs and also in R (using > Sys.getenv). all environment variables are set correctly (I am now also using > “exec-pat

[O] Org-mode previews: equation numbers

2014-09-29 Thread Adam Sneller
I have noticed that the org-preview-latex-fragment command left-aligns previews for display equations. But it looks like margins are calulated so that equation numbers line up when display equations are centered (the way they are in AUCTeX). Is it possible to re-align these previews? Here is s

Re: [O] Tangling and Exporting an Unsupported Language.

2014-09-29 Thread Ista Zahn
Exporting and tangling don't require any language support. #+begin_src foobarbas :tangle foo.bar #+end_src is perfectly fine and will export and tangle just fine. Or did I misunderstand your question? Best, Ista On Mon, Sep 29, 2014 at 2:53 AM, Malcolm Purvis wrote: > All, > > I'm writing an o

Re: [O] odd/unexpected behavior with Python src blocks

2014-09-29 Thread John Kitchin
In case anyone else is interested, here is a workaround of sorts to capture stderr in a python block: https://github.com/jkitchin/pycse/blob/master/pycse/sandbox.py You use this module to redefine stdout and stderr. You basically run python like this: #+BEGIN_SRC emacs-lisp (setq org-babel-pyth

Re: [O] Babel evaluation of Calc block not working, bug in Calc?

2014-09-29 Thread Andrea Rossetti
Andrea Rossetti writes: > 3) temporary workaround: try to change ":var v=3" into ":var var-v=3", > it works for me, does it work for you too? I'm afraid I've been a bit cryptic here. The suggested workaround/test is: replace #+BEGIN_SRC calc :var v=3 v + 4 #+END_SRC with #+BEGIN_SRC calc :var

[O] Adding new table rows/cols in a formula update

2014-09-29 Thread Dima Kogan
Hi. Suppose I have this .org file: | | #+TBLFM: @1$2=5 It's a 1x1 table with a formula. The formula sets a cell that's out of bounds in the table, so evaluating this formula results in an error. How set-in-stone is this behavior? I haven't dug too deeply into the code, but are there fundamen

Re: [O] outputting a modified parsetree

2014-09-29 Thread Eric Abrahamsen
"Pete Bataleck" writes: > I'm trying to update an orgmode document programatically. > > I can create an AST from a buffer using org-element-parse-buffer, but > how do I do the reverse and output the modified AST to a buffer? I think `org-element-interpret-data' is the function you're looking for

Re: [O] odd/unexpected behavior with Python src blocks

2014-09-29 Thread Instructor account
Indeed, this passes by org-babel because stderr is not captured, and scipy does what you suggest. I guess this happens inside compiled c/Fortran code since there is nothing catching it in the odeint python function doing that. Thanks, I will try to bring it up on the scipy list. Aaron Ecay writ

[O] outputting a modified parsetree

2014-09-29 Thread Pete Bataleck
I'm trying to update an orgmode document programatically. I can create an AST from a buffer using org-element-parse-buffer, but how do I do the reverse and output the modified AST to a buffer?

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Rasmus
Hi, "Kyeong Soo (Joseph) Kim" writes: > If possible, please let me know where to find the information you provided > (i.e., without the description filed in the org-mode internal link, its > export to LaTeX becomes "\ref{...}" instead of "\hyperref{...}"). You can open the info version of the m

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Rasmus
Hi, "Kyeong Soo (Joseph) Kim" writes: > If possible, please let me know where to find the information you provided > (i.e., without the description filed in the org-mode internal link, its > export to LaTeX becomes "\ref{...}" instead of "\hyperref{...}"). You can open the info version of the m

[O] Selectively archive by timestamp

2014-09-29 Thread Toby Cubitt
Sometimes I want to selectively archive all entries in a subtree with timestamps in the past, whilst keeping all entries with timestamps in the future. `org-archive-subtree' only lets you selectively archive entries depending on whether they have open TODO items. The attached patch adds a new `or

Re: [O] passing LC_ALL environment variable to org export call

2014-09-29 Thread Johannes Rainer
On 29 Sep 2014, at 14:06, Rasmus wrote: > Johannes Rainer writes: > >> thanks for your hint. I checked Sys.getenv before and after the >> failing code, but LC_ALL was always properly set. I’m afraid my >> problem relates to some Mac LLVM and GCC gfortran compiler thing, >> since I’m using a R

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Kyeong Soo (Joseph) Kim
Hi Rasmus, On Mon, Sep 29, 2014 at 6:09 PM, Rasmus wrote: > Hi Kyeong, > > "Kyeong Soo (Joseph) Kim" writes: > > > This is exactly what I wanted to do for cross-referencing in LaTeX > export. > > With this, now I can use my org files as I did with version 7.x (except > for > > the description i

Re: [O] passing LC_ALL environment variable to org export call

2014-09-29 Thread Rasmus
Johannes Rainer writes: > thanks for your hint. I checked Sys.getenv before and after the > failing code, but LC_ALL was always properly set. I’m afraid my > problem relates to some Mac LLVM and GCC gfortran compiler thing, > since I’m using a R version compiled against the Mac Accelerate > frame

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Rasmus
Hi Kyeong, "Kyeong Soo (Joseph) Kim" writes: > Hello, > On Mon, Sep 29, 2014 at 4:53 PM, Rasmus wrote: >> >> > >> If you don't want to use hyperref (i) make sure your sections are >> numbered (e.g. #+OPTIONS: num:5) and (ii) make sure that you are not >> giving links a description. Here's an e

Re: [O] Difference between eval and export

2014-09-29 Thread Johannes Rainer
I checked the environment variables in Emacs and also in R (using Sys.getenv). all environment variables are set correctly (I am now also using “exec-path-from-shell” to make sure that Emacs is reading system environment variables). It is absolutely strange. I only get the error when I export th

Re: [O] passing LC_ALL environment variable to org export call

2014-09-29 Thread Johannes Rainer
hi Rasmus, thanks for your hint. I checked Sys.getenv before and after the failing code, but LC_ALL was always properly set. I’m afraid my problem relates to some Mac LLVM and GCC gfortran compiler thing, since I’m using a R version compiled against the Mac Accelerate framework (vecLib)… it is

Re: [O] [bug?] org-copy-face doesn’t add faces to org-faces customize group

2014-09-29 Thread Sebastien Vauban
Hi Aaron, Aaron Ecay wrote: > 2014ko irailak 23an, Sebastien Vauban-ek idatzi zuen: >>> OK, thanks for the followup. I’m attaching the patch to this email. If >>> I don’t hear any further feedback, I’ll commit it to master in a few >>> days. >> >> I'd say: commit it now, so that it really gets

Re: [O] macro for iterating over headings and "doing things" with them

2014-09-29 Thread Eric Abrahamsen
Eric Abrahamsen writes: > Hi all, > > Recently, with the help of emacs.help, I wrote a small macro called > `org-iter-headings' (essentially a thin wrapper around > `org-element-map') for iterating over the child headings in a subtree, > and "doing something" with them. It's meant to be a quick-a

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Kyeong Soo (Joseph) Kim
Hello, On Mon, Sep 29, 2014 at 4:53 PM, Rasmus wrote: > > > If you don't want to use hyperref (i) make sure your sections are > numbered (e.g. #+OPTIONS: num:5) and (ii) make sure that you are not > giving links a description. Here's an example: > > * test my heading > :PROPERTIES: > :CUSTOM_ID:

[O] org-contacts-anniversaries 'Bad sexp' bug keeps haunting me

2014-09-29 Thread Christoph LANGE
Hi all, for a while I had been able to run org-contacts-anniversaries with BIRTHDAY dates successfully, as explained at the bottom of https://julien.danjou.info/projects/emacs-packages#org-contacts. This was on 64-bit Linux. On 32-bit Windows I had the function disabled, as I have contacts

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Rasmus
Hi, "Kyeong Soo (Joseph) Kim" writes: > On Mon, Sep 29, 2014 at 3:07 PM, Nicolas Goaziou > wrote: > >> Hello, >> >> "Kyeong Soo (Joseph) Kim" writes: >> >> > The real problem is that, except for using the custom id, the current >> > export engine cannot refer to the correct label (e.g., "\labe

[O] macro for iterating over headings and "doing things" with them

2014-09-29 Thread Eric Abrahamsen
Hi all, Recently, with the help of emacs.help, I wrote a small macro called `org-iter-headings' (essentially a thin wrapper around `org-element-map') for iterating over the child headings in a subtree, and "doing something" with them. It's meant to be a quick-and-dirty, *scratch*-buffer convenienc

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Kyeong Soo (Joseph) Kim
On Mon, Sep 29, 2014 at 3:07 PM, Nicolas Goaziou wrote: > Hello, > > "Kyeong Soo (Joseph) Kim" writes: > > > The real problem is that, except for using the custom id, the current > > export engine cannot refer to the correct label (e.g., "\label{se-1}") > > which is automatically generated durin

Re: [O] Changed behaviours of LaTeX exporter in version 8.0+

2014-09-29 Thread Nicolas Goaziou
Hello, "Kyeong Soo (Joseph) Kim" writes: > The real problem is that, except for using the custom id, the current > export engine cannot refer to the correct label (e.g., "\label{se-1}") > which is automatically generated during the export process. > > See the case of section title with only one