Re: [O] accessing source block header arguments from exporters

2015-04-10 Thread Charles Berry
Robert Klein roklein.de> writes: > > Hi, > > is there a way, to read header arguments to source blocks in the > exporters org--src-block funktions? Not directly. org-babel-exp-code has no provision for headers. They get dropped. > > E.g. is there a way to access :firstline in the example bel

Re: [O] Bug: problem when exporting a org-mode file with a lots of code blocks

2015-03-10 Thread Charles Berry
XIE Yuheng gmail.com> writes: > > > Bug: org-babel-parse-src-block-match reporting "Wrong type argument: > stringp, nil" when exporting a org-mode file with a lots of code blocks > [8.3beta (release_8.3beta-895-g375c83 > /usr/share/emacs/site-lisp/org/)] > > the following is *Messages* buf

Re: [O] [BUG] on export resulting in endless evaluation

2015-02-09 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > Sebastien Vauban > writes: > > > Rainer M Krug wrote: > >> Charles Berry writes: > >>> Rainer M Krug krugs.de> writes: > >>>> > >>>> when exporting the fillowing org file, I get a

Re: [O] [BUG] on export resulting in endless evaluation

2015-02-06 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > > Hi > > when exporting the fillowing org file, I get an endless loop of > evaluations. > > This happens with only orgmode and languages enabled > > , > | GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, Carbon Version 157 > | Org-mode version 8.3beta (rel

Re: [O] Custom export backend based on HTML: how to implement own blocks?

2014-11-23 Thread Charles Berry
Marcin Borkowski wmi.amu.edu.pl> writes: > > Hello, > > I'd like to (ab)use the "underline" syntax for something else. > Basically, I'd like to translate > > _underlined_ > > to > > underlined > > and > > _underlined|with variant_ > > to > > underlinedwith > variant > > but only if the

Re: [O] #+CALL get the first row of output table lost when using latex export

2014-11-16 Thread Charles Berry
gmail.com> writes: > > Hi, > > I encounter a problem when I use #+CALL to create a table with latex > export. The problem is that the first row of the table is missing, if > the table is created with #+CALL. > [deleted - setup info] > The minimal table example is > > #+BEGIN_EXAMPLE > #+NA

Re: [O] Inline code :results replace not working

2014-11-12 Thread Charles Berry
Sebastien Vauban writes: > > "Charles C. Berry" wrote: > > I find myself writing an inline src block, then typing `C-c C-c C-x u' > > to view > > and then remove the result, then revise, and repeat. I'd be happy to > > just leave > > it in the document. > > What command are you calling with

Re: [O] Stack overflow in regexp matcher

2014-10-24 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hello, > > I've just got the following backtrace when opening an org > file. Unfortunately I cannot reproduce it reliably, but I was wondering > if others had seen something similar. > I do. Try this. Start emacs 24.4.1. 1) Copy this line: CLO

Re: [O] Text above first headline is being exported, despite :export: tag being used.

2014-10-16 Thread Charles Berry
Brady Trainor uw.edu> writes: > > I read > > , > | ‘SELECT_TAGS’ > | The tags that select a tree for export (org-export-select-tags). The > | default value is :export:. Within a subtree tagged with :export:, > | you can still exclude entries with :noexport: (see below). When >

Re: [O] [ob-R] table variable passing broken

2014-10-14 Thread Charles Berry
Andreas Leha med.uni-goettingen.de> writes: > > Hi all, > > There seems to be a bug in table passing as variables now using the > tangle-friendly version of passing variables. > > Here is an example (I get an error also with emacs -Q): > > --8<---cut here---start--

Re: [O] left aligned changes to right alignment in table after adding one row - possible bug?

2014-10-13 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > > #+PROPERTY: header-args :exports both > > * Changing alignment when one row is added > Despite of all values are strings, the alignment changes in the below > example. Is this a bug or am I missing something? > One of these two maybe: ,[ C-h v org-t

[O] debugging export error

2014-10-08 Thread Charles Berry
I am trying to debug a subtree export. I get member-ignore-case: Wrong type argument: stringp, nil and it seems to come from `org-export-get-environment' but if I instrument that function, the error goes away whether I step thru it or `c' on entry. Likewise, if I M-x debug-on-entry and just

Re: [O] [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)]

2014-10-07 Thread Charles Berry
Ista Zahn gmail.com> writes: > > > > On Oct 7, 2014 3:41 PM, "Henrik Singmann" psychologie.uni-freiburg.de> wrote: > > > > Dear all, > > > > Sorry to resurrect this thread but I still have the issue discussed > > here. I get "Error: could not find function ".ess.eval"" when inside an > > R

Re: [O] [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)]

2014-10-07 Thread Charles Berry
Henrik Singmann psychologie.uni-freiburg.de> writes: > > Dear all, > > Sorry to resurrect this thread but I still have the issue discussed here. I get "Error: could not find > function ".ess.eval"" when inside an R code block with :session *R* but > not without :session *R*. > Please confirm

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

2014-09-30 Thread Charles Berry
Eric Brown fastmail.fm> writes: > > 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

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

Re: [O] line numbers in a code block?

2014-09-27 Thread Charles Berry
John Kitchin andrew.cmu.edu> writes: > > Does anyone know a way to get dedicate line numbers in an org code > block? > > I know how to get buffer code lines, but when we run a code block and > there is an error, the error line number is relative to line 1 of the > code block. Currently, we type

Re: [O] meaningfull names for org-src buffers

2014-09-25 Thread Charles Berry
Andreas Leha med.uni-goettingen.de> writes: > > Hi, > > Grant Rettke wisdomandwonder.com> writes: > > On Thu, Sep 11, 2014 at 5:05 PM, Adriaan Sticker > > gmail.com> wrote: > >> I was wondering if it's somehow possible to give named org src buffer the > >> name they were give in their #+NAME

Re: [O] Exporter dispatcher bug?

2014-09-24 Thread Charles Berry
Brady Trainor uw.edu> writes: > > > Charles Millar verizon.net> writes: > > > Brady Trainor wrote: > >> Charles Millar verizon.net> writes: > >> > >>> Today, using C-c C-e, the dispatcher shows only the LaTeX and > >>> Publisher options. > >>> > >> What is the result C-h v org-export-backend

Re: [O] update on missing :parameters in code blocks

2014-09-21 Thread Charles Berry
John Kitchin andrew.cmu.edu> writes: > > I did some more digging on the missing :parameters during export, and it > seems that the src block itself is different during export than in the > buffer. Below illustrates what I mean. In the buffer, if I look at the > contents of the code block using

Re: [O] header arguments, inheritance, and noweb expansion Was: «Macro» expansion in source blocks; code-sharing between blocks

2014-09-20 Thread Charles Berry
Andreas Kiermeier gmail.com> writes: > > On 19 September 2014 20:29, Rainer M Krug krugs.de> wrote:> [ snip ] > > The alternative mentioned by Chuck Berry is the xtable function (in R) > (https://lists.gnu.org/archive/html/emacs-orgmode/2014-09/msg00519.html). > I just tried it and am hap

Re: [O] [RFC] [PATCH] [babel] read description lists as lists of lists

2014-09-19 Thread Charles Berry
Aaron Ecay gmail.com> writes: > > > Hello all, > > The attached patch makes babel read description lists as lists of the > following format: (("term" "description") ...). The present default is > to simply read in the text of each list item, yielding: > ("term :: description" ...). > > Of co

Re: [O] «Macro» expansion in source blocks; code-sharing between blocks

2014-09-19 Thread Charles Berry
Andreas Kiermeier gmail.com> writes: > > My two blocks (with some code removed for simplicity) are as follow: > > #+NAME: tbl-refyear > #+BEGIN_SRC R :results silent :exports none > latex(tabular( )) > #+END_SRC > > #+BEGIN_SRC latex :noweb yes > \begin{table}[h] > \label{tbl:refyear} > \

[O] [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Charles Berry
Charles Berry ucsd.edu> writes: > > Rainer M Krug krugs.de> writes: > > > > > Thanks - you came before me. I get the same error but managed to work > > around. > > > > This is likely caused by the upgrade of ess, > > Likely. >

Re: [O] Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)]

2014-09-16 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > Thanks - you came before me. I get the same error but managed to work > around. > > This is likely caused by the upgrade of ess, Likely. But it may not be an ESS problem per se. M-x R starts a process that runs asynchronously. In interactive use there

Re: [O] Format output of org-babel-tangle for exported file

2014-09-03 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > Hi > > I am calling (org-bable-tangle) in a code block in an org file and I > would show the files resulting from the tangling in a nice format. > > But I do not manage. I have the following at the moment: > > --8<---cut here---start

Re: [O] Please help with a filter

2014-09-02 Thread Charles Berry
Rafael gmail.com> writes: > > > I want that the result of exporting to markdown the following two blocks > be identical: Rafael, You probably want a derived backend taking 'md as the parent. You want to tool up a src-block transcoder. Look at org-html-src-block (which is what markdown uses

Re: [O] [babel, R] Commands are not copied in the iESS buffer upon evaluation

2014-09-01 Thread Charles Berry
Sebastien Vauban writes: > > Hi Aaron, > > Aaron Ecay wrote: > > 2014ko abuztuak 29an, Sebastien Vauban-ek idatzi zuen: > > > >> Does it have something to do with `ess-eval-visibly' not being respected > >> (whose default is `t')? > > > > Indeed, babel’s R support let-binds this variable to nil

Re: [O] cannot execute org-mode code from the front page tutorial.

2014-08-16 Thread Charles Berry
Nick Dokos gmail.com> writes: > > tsd tsdye.com (Thomas S. Dye) writes: > > > Aloha Jenia, > > > > jenia.ivlev gmail.com (jenia.ivlev) writes: > > > >> Hello. > >> > >> I'm trying to go through the org-mode tutorial on its official page. > >> [discussion showing that (if (listp value)...) ge

Re: [O] "#+begin_src R :results output drawer" doesn't work.

2014-08-10 Thread Charles Berry
Feng Shu gmail.com> writes: > > > #+begin_src R :results output drawer > "1" > "2" > #+end_src > > #+RESULTS: > : 2 > I get: #+RESULTS: :RESULTS: [1] "1" [1] "2" :END: #+BEGIN_SRC emacs-lisp :results drawer (org-version) #+END_SRC #+RESULTS: :RESULTS: 8.3beta :END: HTH, Chuck

Re: [O] R code block produces only partial output

2014-08-05 Thread Charles Berry
Eric Schulte gmail.com> writes: > > Andreas Kiermeier gmail.com> writes: > > > On 4 August 2014 21:23, Eric Schulte gmail.com> wrote: > >> Why are you setting the output type to "graphics" when you are trying to > > Hi Andreas, > > I can't reproduce your problem. I get the following from

Re: [O] proposal to make C-c C-c not remove latex overlays

2014-07-31 Thread Charles Berry
Bastien gnu.org> writes: > > Hi Nick, > > Nick Dokos gmail.com> writes: > > > getting rid of just latex fragment undoing in > > org-ctrl-c-ctrl-c and toggling with C-c C-x C-l is probably the best > > solution. > > Agreed, this is the case now in master. The docstring for `org-preview-late

Re: [O] [patch] [babel] Patches to fix tangling and variable transfer of tables in R

2014-07-27 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > Nicolas Goaziou nicolasgoaziou.fr> writes: > > > Hello, > > > > Rainer M Krug krugs.de> writes: > > [snip] > > Amended patches attached. AFAICS, these patches are good to go. Can they be applied, please? Chuck

Re: [O] Possible to use src block to generate org headlines for export?

2014-07-24 Thread Charles Berry
Nick Dokos gmail.com> writes: > > Charles Berry ucsd.edu> writes: > > > Matt Lundin imapmail.org> writes: > > > > [deleted] [more deleted] > > Or wrap the results in a drawer when you type C-c C-c, but render them as > > raw on export (which

Re: [O] Possible to use src block to generate org headlines for export?

2014-07-23 Thread Charles Berry
Matt Lundin imapmail.org> writes: [deleted] > Footnotes: > > [fn:1] If one really needs to see the headlines in the original org > buffer, a hook can be used to remove the :RESULTS: drawer. > > --8<---cut here---start->8--- > (defun my-remove-stray-results-d

Re: [O] How to show the complete syntax tree

2014-07-14 Thread Charles Berry
Shiyuan gmail.com> writes: > > Hi,     The command I can find in the manual to show the syntax tree is (org-element-parse-buffer). However, when the structure is output to the buffer, by using the commands C-u M-: (org-element-parse-buffer), it seems that only the part up to a certain depth is p

Re: [O] passing the contents of a block as an escaped string

2014-06-24 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hello, > > I'm trying to write some filters from Pygments, and to record what I'm > doing and make my life simpler, I'm doing it in an orgmode buffer. In > that buffer, I have the code I want to highlight in a source block, and > the python code for t

Re: [O] [Babel] [possible bug] Empty src block prevents other block to expand

2014-06-23 Thread Charles Berry
Nicolas Girard gmail.com> writes: > > The empty src block at the beginning of the following file prevents > "capture-tmpl" to expand when tangling. > I think the diagnosis is incorrect. The empty source block has no effect. Adding ':noweb yes' to `capture's header args fixes things. org-ver

Re: [O] [PATCH] -for review- Tangling with variable transfer of variables

2014-06-19 Thread Charles Berry
Aaron Ecay gmail.com> writes: > > Hi Rainer, > > I have not tested the patch (I rarely use :var), but here are some > comments from reading the patch. > [snip] > > > (header (if (or (eq (nth 1 value) 'hline) colnames-p) > > "TRUE" "FALSE")) > > (row-n

Re: [O] navigation broken in recent maint

2014-06-18 Thread Charles Berry
Samuel Wales gmail.com> writes: > > quick and dirty bug report. recent org maint. > > 1: > > jumping from magit (maint) to org using RET always goes > to the wrong location now. > > i don't know that this is org's fault. i have seen it > happen once before, which is when i tried > longlines

Re: [O] inclusion of #+RESULTS in a source block

2014-06-16 Thread Charles Berry
Federico Beffa ieee.org> writes: > > > > Suppose you want to use a program such as Sympy or Maxima to find > the analytic solution of a complicated equation. After this you > want to make use of that solution for numerical evaluation of > various cases. See http://orgmode.org/ma

Re: [O] How do you capture the intent never to tangle or weave a headline or its children?

2014-06-15 Thread Charles Berry
Grant Rettke wisdomandwonder.com> writes: > > Good evening, > > For both performance and cognitive reasons, sometimes I specifically > never want to tangle or weave a headline or any of > its children. I still value it though, so it belongs in that document, > and it wouldn't make sense for it

[O] navigation broken - occur, org-babel-goto-named-src-block, etc fail

2014-06-14 Thread Charles Berry
Start with emacs -q, then load today's org-mode. Execute the source block in this file: === start of file #+NAME: AAA #+BEGIN_SRC x #+END_SRC #+BEGIN_SRC emacs-lisp :results raw output (let ((i ?a)) (while (< i ?z) (princ (format "* %s\n\n\n#+NAME: %s\n\n"

[O] [bug][babel] noweb gotcha

2014-06-10 Thread Charles Berry
The following , | #+PROPERTY: tangle yes | | #+NAME: print-abc | #+BEGIN_SRC emacs-lisp | (format | "<<%s>>" "abc") | #+END_SRC | | #+NAME: print-def | #+BEGIN_SRC emacs-lisp | (concat | "<<" "def" ">>") | #+END_SRC | | #+BEGIN_SRC emacs-lisp :noweb yes | <> | <> | #+END_SRC ` ta

[O] bug in exporter (org-babel-exp-process-buffer)

2014-06-09 Thread Charles Berry
The use of `org-confirm-babel-evaluate' as a function breaks inline src blocks just as was described in this thread from last year: http://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00669.html I believe that the patch by Eric Schulte in === commit 6a4dfd318296925b3b895ca6ab85e31309

Re: [O] How to create non-inheritable properties?

2014-06-08 Thread Charles Berry
Thorsten Jolitz gmail.com> writes: > > Grant Rettke wisdomandwonder.com> writes: > > > Hi, > > > > My org file has a lot of text in it. It really needs to be in the same > > file though, so it is a big file. > > > > When I org-babel-tangle, I would like to speed it up as it takes 8 minutes. >

Re: [O] Adding export option for babel language

2014-05-08 Thread Charles Berry
Ken Mankoff gmail.com> writes: > > > I'd like to add support for PythonTeX to Org Babel > https://github.com/gpoore/pythontex > > The motivation is that PythonTeX is a better literate environment than > just Org + Babel, because it can print results inline just like an > interactive Python se

Re: [O] [babel][PATCHES] ob-R patches for review

2014-05-07 Thread Charles Berry
Eric Schulte gmail.com> writes: > > Rainer M Krug krugs.de> writes: > > > Hi > > > > Attached please find seven patches for review to implement the storing > > of org variables in their own environment and to make the org-issued R > > code look nicer in the R session. > > > > Thanks, > > > > R

Re: [O] [BUG] [babel] in :eval never with :session

2014-05-07 Thread Charles Berry
Eric Schulte gmail.com> writes: > > Rainer M Krug krugs.de> writes: > > > The error is back: > > > > You say "back", was this error not present recently? If so could you > isolate the commit at which this error appeared? > The bug seems to be in the use of (org-link-search heading)

Re: [O] How to load and use Github Flavored Markdown exporter?

2014-05-01 Thread Charles Berry
Grant Rettke wisdomandwonder.com> writes: > > Hi, > > Org-mode version 8.2.6. Loaded from MELPA org-2014-04-28. > > The nice github flavored markdown package is in there ox-gfm.el. > > My goal is to use it to do a Markdown export of an org document > instead of the vanilla exporter. > > In a

Re: [O] Export as ASCII whilst respecting current fill column

2014-05-01 Thread Charles Berry
Miguel Guedes gmail.com> writes: > > Using org-mode version 7.93f, when exporting to ASCII it doesn't respect > the current fill column. Can this be enforced? > Miguel, Upgrade to current org-mode (version 8.2.6) before you do anything else. Then modify `org-ascii-text-width' to suit your nee

Re: [O] [babel][PATCHES] ob-R patches for review

2014-04-29 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > Hi > > Attached please find seven patches for review to implement the storing > of org variables in their own environment and to make the org-issued R > code look nicer in the R session. Rainer, I have suggestions and a concern. I suggest that you look a

Re: [O] Organizing org-mode files: Tree view

2014-04-26 Thread Charles Berry
David Masterson gmail.com> writes: > > Dotan Cohen gmail.com> writes: > > > Hi all, I am a VIM user enchanted by the power of org-mode. Please > > excuse my apparent naivety! > > > > I am moving from Zim Wiki (excellent GUI program) to either Vimwiki > > (VIM plugin) or org-mode. I was surpris

Re: [O] sharing my firsts, org babel tangle and "init" .org file

2014-04-19 Thread Charles Berry
Pete Ley gmail.com> writes: > > I've looked at the solution on worg and, though I didn't actually try to > implement, it seems like tangling your init file every time you open > Emacs is a little cumbersome. Please correct me if I'm wrong in this > assumption. OK, here goes: In `org-babel-lo

Re: [O] How do I chain babel blocks with arguments?

2014-04-16 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hello, > > I have several babel blocks that each work well, but I'm now trying to > chain them to build some bigger functionality out of them. I'm having > trouble finding out how to pass arguments between blocks. Here is > a small example: > > --8<-

Re: [O] Fwd: Mac OS Alias file links

2014-04-14 Thread Charles Berry
Ken Mankoff gmail.com> writes: > > > On 2014-04-14 at 12:26, Achim Gratz wrote: > > Ken Mankoff writes: > >> Aliases are a type of links ("ln" on linux, "shortcut" on Windows > >> "alias" on OS X (OS X of course also supports "ln")). The difference > >> between an OS X alias and "ln" is that if

Re: [O] Add-on: Github Flavored Markdown exporter

2014-04-08 Thread Charles Berry
Lars Tveito student.matnat.uio.no> writes: > > Hi, thanks for checking it out! > > Thorsten Jolitz writes: > > > Thorsten Jolitz gmail.com> writes: > > > >> Lars Tveito student.matnat.uio.no> writes: > >> > >>> Hi! > >>> > >>> I have written an exporter for Github Flavored Markdown, which is

Re: [O] Help needed - export markdown is it supposed to pre-pend html?

2014-04-03 Thread Charles Berry
Rick DeNatale gmail.com> writes: > > Hi, I'm a fairly new org mode user. > I'm trying to export to markdown and I can't understand the output: > > For example with the simple org mode buffer > > > Add: #+OPTIONS: toc:nil > * Top level headline > ** Second level > *** Third level >     So

Re: [O] Generate a table of contents without exporting

2014-04-01 Thread Charles Berry
RG Williams gmail.com> writes: > > Hi, > I know you can generate a table of contents when exporting, but can you do > it just within org? For context, I'm uploading an .org file to github and I > don't need to export it to another format because github recognizes and > displays it just fine. It'

Re: [O] Controlling example block export?

2014-04-01 Thread Charles Berry
Heikki Lehvaslaiho gmail.com> writes: > > > > I am using example blocks as inline notes where I paste snippets of > (pre-formatted) text. I'd like to  be able to control the exporting of > those block individually (per document would also be useful). I do not > seem to be able to find docum

Re: [O] Proposal to replace the prefix repetition with whitespace during expansion of noweb references

2014-03-29 Thread Charles Berry
Pontus Michael gmail.com> writes: > > I would like to propose a change to the behavior of noweb expansion in > relation to prefix handling. [snip] > I recommend to introduce a change that will replace the inserted prefix > with whitespace of equal length. [snip] The behavior you desire ca

Re: [O] Bug: [babel] #+PROPERTY: eval never-export disables interactive evaluation [8.2.5h (release_8.2.5h-806-gb1199e /Users/rainerkrug/.emacs.d/org-mode/lisp/)]

2014-03-25 Thread Charles Berry
Rainer M Krug krugs.de> writes: > > > The subject says it all - when I set > > #+PROPERTY: eval never-export > > the interactive evaluation of R code blocks is disabled. Message: > > Evaluation of this R code-block is disabled. > [rest deleted] It works as advertised for me. I copy and p

Re: [O] Out of Order Evaluation

2014-03-20 Thread Charles Berry
Andreas Leha med.uni-goettingen.de> writes: > > Hi Michael, > > Michael Weylandt gmail.com> writes: > > > Hi, > > > > I want to put a summary of my analysis at the beginning of a document > > using results calculated at the end of the document. Is this possible? [snip] > > > > Is this poss

Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?

2014-03-19 Thread Charles Berry
John Hendy gmail.com> writes: [deleted] > > > > I think the default behavior should be reverted, as tangling and > > exporting are two different things. When I tangle, I want to see the > > code blocks as they are in the org document (with possible variables and > > expansions) but not to create

Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-13 Thread Charles Berry
Bastien gnu.org> writes: > > Charles Berry ucsd.edu> writes: > > > Time to failure seems longer. But now I get an infinite loop. > > Er, sorry for the confusion; should be fixed again. > It is not. I am now back to getting the 'End of Buffer' msg Chuck

Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-13 Thread Charles Berry
Bastien gnu.org> writes: > > Hi Charles, > > Charles Berry ucsd.edu> writes: > > > This seems to have broken org-edit-src-exit. > > > > I cannot figure out what triggers it (hence no ECM), but I sometimes > > get an > > 'End of buffer

Re: [O] Octave/Matlab Code Export Issue?

2014-03-13 Thread Charles Berry
Phil Regier math.ku.edu> writes: > > I'm having trouble with Octave export, and I am not quite sure where to look. > > In an Org file I have the following: > >#+BEGIN_SRC octave > a = [1;3;5;7;9] > b = [2;4;6;8] > ans=a; >#+END_SRC octave > > Instead try this: --8<---

Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-12 Thread Charles Berry
Bastien gnu.org> writes: > > Hi Arun, > > Arun Persaud lbl.gov> writes: > > > I tried to fix this in org. It seems to work over here, but my elisp as > > well as my understanding of org-mode is not perfect ;) Let me know if it > > needs more work. > > Applied, thanks! > Bastien, This see

Re: [O] Proposal/request for input: slidify export for html slides

2014-02-09 Thread Charles Berry
John Hendy gmail.com> writes: > > On Sat, Feb 8, 2014 at 11:18 AM, Charles Berry ucsd.edu> wrote: > [snip] > > But there is some effort and overhead involved, so only the most > > useful (IMO) have been mapped. Right now, `:noweb yes' will expand the > &g

Re: [O] Proposal/request for input: slidify export for html slides

2014-02-08 Thread Charles Berry
John Hendy gmail.com> writes: > > On Fri, Feb 7, 2014 at 11:38 PM, John Hendy gmail.com> wrote: > > On Fri, Feb 7, 2014 at 7:04 PM, Charles Berry ucsd.edu> wrote: > > [snip] > > > I'll look into those. I just cloned your repo and loaded ox-ravel. &g

Re: [O] Proposal/request for input: slidify export for html slides

2014-02-07 Thread Charles Berry
John Hendy gmail.com> writes: > > On Fri, Feb 7, 2014 at 3:50 PM, Charles Berry ucsd.edu> wrote: > > John Hendy gmail.com> writes: > > > >> > >> An interesting update on this. Aside from some image and code block > [snip - how John turn org t

Re: [O] Proposal/request for input: slidify export for html slides

2014-02-07 Thread Charles Berry
John Hendy gmail.com> writes: > > An interesting update on this. Aside from some image and code block > stuff, the following works surprisingly well! > - Export Org -> markdown (md) > - Start an R session and `setwd("/path/to/file.md")` > - Run `library(slidify)` and `author("deck") > - Copy the

Re: [O] Name for part of Org mode buffer before first headline

2014-02-01 Thread Charles Berry
Thomas S. Dye tsdye.com> writes: > > Aloha all, > > Is there a canonical name for the part of the Org mode buffer before the > first headline? > > I checked the manual and probed my failure-prone memory off and on over > the last few days, but didn't come up with anything. > > I'm looking for

Re: [O] Extract source code /with/ captions

2014-01-12 Thread Charles Berry
James Harkins gmail.com> writes: > > I'm working on a set of Beamer presentations with a bunch of source > code blocks. I would like to collect all the blocks into one text file > per presentation, but I also need the captions and ideally a numeric > index. > [deleted] > So, for instance, whe

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Nicolas Goaziou gmail.com> writes: > > Hello, > > Bastien gnu.org> writes: > > > Ista Zahn gmail.com> writes: > > > >> I'm trying to figure out how to export a line (say "foo") only when > >> exporting to markdown. > > > > #+BEGIN_MD > > ... > > #+END_MD > > > > will do. > > I added #+begin

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien gnu.org> writes: > > Charles Berry ucsd.edu> writes: > > > No it won't. > > > > ox-md.el does not define a transcoder for keyword and falls back to its > > parent: > > Thanks. > > I just added this transcoder to the master

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Charles Berry ucsd.edu> writes: > > Bastien gnu.org> writes: > > > > > Hi Ista, > > > > Ista Zahn gmail.com> writes: > > > > > I'm trying to figure out how to export a line (say "foo") only when > > >

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien gnu.org> writes: > > Hi Ista, > > Ista Zahn gmail.com> writes: > > > I'm trying to figure out how to export a line (say "foo") only when > > exporting to markdown. > > #+BEGIN_MD > ... > #+END_MD > > will do. > [snip] No it won't. ox-md.el does not define a transcoder for keywor

Re: [O] How to use org src functions in other major mode (markdow)?

2013-12-31 Thread Charles Berry
Shuguang Sun gmail.com> writes: > Dear all, > Is it possible to use org src functions in other major mode, e.g., > markddown-mode? > In some extend markdown, source code can be put in to block, for example, > r-mode for R script```rx <- 1:10``` > Is it possible to highlight the block as org-bl

Re: [O] re-export using same options

2013-12-23 Thread Charles Berry
Daniel Clemente gmail.com> writes: > > > > > > > Can I re-export using the last settings? > > > > C-u C-c C-e > > Thanks, that makes it faster, but you need to be in the same subtree. Not so. Recent versions of org-mode use this variable to find the subtree: org-export-dispatch-last-

Re: [O] re-export using same options

2013-12-22 Thread Charles Berry
Daniel Clemente gmail.com> writes: > > > Hi, after exporting a subtree to HTML, I do some change and want to export again. I find that I have to do a long > process to get there: > C-spaceC-c C-u C-c C-e C-s h HC-u space > [snip] > > Can I re-export using the last settings? [s

Re: [O] escaping org commands

2013-12-20 Thread Charles Berry
Rustom Mody gmail.com> writes: > > > > On Fri, Dec 20, 2013 at 9:37 PM, Bastien gnu.org> wrote: > > > Hello, > > Rustom Mody gmail.com> writes: > > How does one escape something in a text that is an org-command > > eg > > I wanted to write > > <> > > > > It vanished from the export becaus

Re: [O] How do I specify the language for a :results code block

2013-11-29 Thread Charles Berry
Thomas S. Dye tsdye.com> writes: > > Aloha Alan, > > Alan Schmitt polytechnique.org> writes: > > > Hello, > > > > I'm trying to write a block in some language (right now shell, but it > > will probably be something different) whose output is an org source > > block is some language (here coq)

Re: [O] Error: (wrong-type-argument integer-or-marker-p nil)

2013-11-29 Thread Charles Berry
Sebastien Vauban writes: > > Hello Nicolas, > > Nicolas Goaziou wrote: > > "Sebastien Vauban" writes: > > > >> When trying to convert a document which contains R graphics, I get the error: > >> > >> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) > >> goto-char(ni

[O] [bug] [babel] repeated exports w/ inline src blocks yield different results

2013-11-23 Thread Charles Berry
Consider this code: , | * test | | #+NAME: block2 | #+BEGIN_SRC emacs-lisp :exports both | (setf not-yet-bound-a t ) | #+END_SRC | | src_emacs-lisp{(+ 1 1)} | | end of buffer | ` Upon export via C-c C-e C-b t A y y yields: , | 1 test | == | | , | | (setf n

Re: [O] [BUG] org-confirm-babel-evaluate breaks inline src blocks

2013-11-23 Thread Charles Berry
Eric Schulte gmail.com> writes: > [delete long discussion of bug] > > I've just pushed up another fix which should fix this for export too. > And it works! Thanks for the fix and for enabling this useful capability! Chuck

Re: [O] [BUG] org-confirm-babel-evaluate breaks inline src blocks

2013-11-23 Thread Charles Berry
Eric Schulte gmail.com> writes: > > Charles Berry ucsd.edu> writes: > > > Eric Schulte gmail.com> writes: > > > >> > >> Charles Berry ucsd.edu> writes: > >> > > [snip] > Indeed the fix was to set this element of info

Re: [O] [BUG] org-confirm-babel-evaluate breaks inline src blocks

2013-11-22 Thread Charles Berry
Eric Schulte gmail.com> writes: > > Charles Berry ucsd.edu> writes: > [snip] > > Thanks for pointing this out, I've just pushed up a fix. > AFAICS, it is still broken. I did a git pull, downloaded the patches, applied them, compiled ob-core.el. I am still ge

[O] [BUG] org-confirm-babel-evaluate breaks inline src blocks

2013-11-16 Thread Charles Berry
Following this thread: http://thread.gmane.org/gmane.emacs.orgmode/77572/focus=77648 I found that setting org-confirm-babel-evaluate to a lambda form BREAKS inline src blocks. Here is an ECM: # #+BEGIN_SRC emacs-lisp (setf org-confirm-babel-evaluate (lambda (&rest args)

Re: [O] org babel before excute hook

2013-10-11 Thread Charles Berry
John Kitchin andrew.cmu.edu> writes: > > > > I have a related kind of problem. When preparing notes > for a class, I may end up with 70 code blocks in an org file, many of > which create graphics. I am always worried about accidentally using the > same filename and overwriting a graphic fro

Re: [O] LaTeX export with Code

2013-10-07 Thread Charles Berry
Sam Flint flintfam.org> writes: > > I regularly use org-mode for LP, and would like to be able to export the > name of a code chunk as a caption in LaTeX. I have looked at the > manual, and don't see any way of doing this, are there? Yes. Quite a few. If you want is the src block name to be

Re: [O] input data for babel blocks

2013-10-01 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hi Charles, > > ccberry ucsd.edu writes: > > > Lacking that, another alternative to the approach you have crafted is to > > use elisp src blocks to set up the commands needed to create the > > objects, > > and then place the results of executing th

Re: [O] input data for babel blocks

2013-09-30 Thread Charles Berry
Alan Schmitt polytechnique.org> writes: > > Hello, > > In my quest for analyzing my data in org mode tables, I'm trying to see > if I can use my favorite language (i.e., ocaml). I'm thus looking at how [discussion of revising org-babel-variable-assignments: deleted] > > I have the following

Re: [O] LaTeX export: images subplots

2013-09-11 Thread Charles Berry
Martin Leduc hotmail.com> writes: > > > Hi all, > I am using org-mode to write a report with several figures. I would > like to group some images into a same figure, let say a 2x2 panel. I > know that I can directly embed latex code in my org file, for > example by using the subfloats (from th

Re: [O] Superscript before character

2013-09-06 Thread Charles Berry
Roger Mason mun.ca> writes: > > Hello, > > I'd like to create a superscript that preceeds a letter. I tried > ^1Fred, ^1 Fred, ^{1}Fred and ^{1} Fred, to no avail. > > Can this be done in org (8.0.3)? If so how? [snip] \nbsp{}^{1}Fred exports to ~$^{\text{1}}$Fred in latex and  1Fred in h

Re: [O] Help proofreading ORG-NEWS for Org 8.1

2013-09-06 Thread Charles Berry
Bastien gnu.org> writes: > > Hi all, > > I have prepared the changelogs for Org 8.1, see the first > section in this file: > > http://orgmode.org/cgit.cgi/org-mode.git/plain/etc/ORG-NEWS > > I have not documented changes in the contrib/ directory, as > ORG-NEWS is meant to go into the Emacs

Re: [O] asynchronous code evaluation

2013-09-04 Thread Charles Berry
Johannes Rainer gmail.com> writes: > > > hi all! > > I have some pretty calculation intense R code in a code block and when I > execute the code (C-c C-c) my emacs freezes and waits for the code to > finish. Is there a way to evaluate the code asynchronously, so that I > could edit the file

Re: [O] macro expansion in source code

2013-08-29 Thread Charles Berry
Johannes Rainer gmail.com> writes: > > > hi, > I was just wondering if there is a way to use macro expansion also in > source code blocks or headers. I tried this, but the macro was never > expanded, but rather the {{{image_width}}} was exported. could the > expansion be done by calling the

Re: [O] Export attached image files

2013-08-20 Thread Charles Berry
Johan Ekh gmail.com> writes: [snip] > I would like > to take a series of screenshots, quickly incorporate them into an org > file together with some text without having to rename > the screenshots with suitable names and organize them on my disk etc. I'd > like org-mode to store the images som

Re: [O] Filters not working

2013-08-09 Thread Charles Berry
Thomas S. Dye tsdye.com> writes: > > Charles Berry ucsd.edu> writes: > [filter to demo extracting back-end name deleted] > > > > , > > | type-of back-end: vector > > | name of back-end: latex > > ` > > Yes, it does. > > &g

  1   2   >