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

2015-04-10 Thread Charles Berry
Robert Klein roklein at roklein.de writes: Hi, is there a way, to read header arguments to source blocks in the exporters org-exporter-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

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

2015-03-10 Thread Charles Berry
XIE Yuheng xyheme at 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 at /usr/share/emacs/site-lisp/org/)] the following is *Messages*

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

2015-02-09 Thread Charles Berry
Rainer M Krug Rainer at krugs.de writes: Sebastien Vauban sva-news@... writes: Rainer M Krug wrote: Charles Berry ccberry@... writes: Rainer M Krug Rainer at krugs.de writes: when exporting the fillowing org file, I get an endless loop of evaluations. --8---cut

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

2015-02-06 Thread Charles Berry
Rainer M Krug Rainer at 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

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

2014-11-23 Thread Charles Berry
Marcin Borkowski mbork at 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 span class=my-ownvariantunderlinedvariant/span and _underlined|with variant_ to span class=my

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

2014-11-16 Thread Charles Berry
iemacs at 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

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

2014-11-12 Thread Charles Berry
Sebastien Vauban sva-news@... 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 the

Re: [O] Stack overflow in regexp matcher

2014-10-24 Thread Charles Berry
Alan Schmitt alan.schmitt at 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:

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

2014-10-16 Thread Charles Berry
Brady Trainor algebrat at 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).

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

2014-10-14 Thread Charles Berry
Andreas Leha andreas.leha at 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

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 Rainer at 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

[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 at /usr/local/share/emacs/site-lisp/org/)]

2014-10-07 Thread Charles Berry
Henrik Singmann henrik.singmann at 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

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

2014-10-07 Thread Charles Berry
Ista Zahn istazahn at gmail.com writes: On Oct 7, 2014 3:41 PM, Henrik Singmann henrik.singmann at 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

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

2014-09-30 Thread Charles Berry
Eric Brown brown at 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 rasmus at 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

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

2014-09-27 Thread Charles Berry
John Kitchin jkitchin at 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

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

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

Re: [O] Exporter dispatcher bug?

2014-09-24 Thread Charles Berry
Brady Trainor algebrat at uw.edu writes: Charles Millar millarc at verizon.net writes: Brady Trainor wrote: Charles Millar millarc at 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

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

2014-09-21 Thread Charles Berry
John Kitchin jkitchin at 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

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 andreas.kiermeier at gmail.com writes: On 19 September 2014 20:29, Rainer M Krug Rainer at 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

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

2014-09-19 Thread Charles Berry
Andreas Kiermeier andreas.kiermeier at 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( code remove )) #+END_SRC #+BEGIN_SRC latex :noweb yes \begin{table}[h]

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

2014-09-19 Thread Charles Berry
Aaron Ecay aaronecay at 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

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

2014-09-16 Thread Charles Berry
Rainer M Krug Rainer at 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

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

2014-09-16 Thread Charles Berry
Charles Berry ccberry at ucsd.edu writes: Rainer M Krug Rainer at 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

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

2014-09-03 Thread Charles Berry
Rainer M Krug Rainer at 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

Re: [O] Please help with a filter

2014-09-02 Thread Charles Berry
Rafael rvf0068 at 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

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

2014-09-01 Thread Charles Berry
Sebastien Vauban sva-news@... 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 when

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

2014-08-16 Thread Charles Berry
Nick Dokos ndokos at gmail.com writes: tsd at tsdye.com (Thomas S. Dye) writes: Aloha Jenia, jenia.ivlev at 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)...) generates a

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

2014-08-10 Thread Charles Berry
Feng Shu tumashu at 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 schulte.eric at gmail.com writes: Andreas Kiermeier andreas.kiermeier at gmail.com writes: On 4 August 2014 21:23, Eric Schulte schulte.eric at gmail.com wrote: Why are you setting the output type to graphics when you are trying to Hi Andreas, I can't reproduce your

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

2014-07-31 Thread Charles Berry
Bastien bzg at gnu.org writes: Hi Nick, Nick Dokos ndokos at 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

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

2014-07-27 Thread Charles Berry
Rainer M Krug Rainer at krugs.de writes: Nicolas Goaziou mail at nicolasgoaziou.fr writes: Hello, Rainer M Krug Rainer at 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 ndokos at gmail.com writes: Charles Berry ccberry at ucsd.edu writes: Matt Lundin mdl at 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 removes the drawer and replaces

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

2014-07-23 Thread Charles Berry
Matt Lundin mdl at 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

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

2014-07-14 Thread Charles Berry
Shiyuan gshy2014 at 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

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

2014-06-24 Thread Charles Berry
Alan Schmitt alan.schmitt at 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

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

2014-06-23 Thread Charles Berry
Nicolas Girard girard.nicolas at 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

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

2014-06-19 Thread Charles Berry
Aaron Ecay aaronecay at 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-names

Re: [O] navigation broken in recent maint

2014-06-18 Thread Charles Berry
Samuel Wales samologist at 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

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

2014-06-16 Thread Charles Berry
Federico Beffa beffa at 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

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 gcr at 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 | print-abc | print-def | #+END_SRC `

[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

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

2014-06-08 Thread Charles Berry
Thorsten Jolitz tjolitz at gmail.com writes: Grant Rettke gcr at 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 mankoff at 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

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

2014-05-07 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at 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

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

2014-05-07 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes: Rainer M Krug Rainer at 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,

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

2014-05-01 Thread Charles Berry
Miguel Guedes miguel.a.guedes at 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

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

2014-05-01 Thread Charles Berry
Grant Rettke gcr at 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 an

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

2014-04-29 Thread Charles Berry
Rainer M Krug Rainer at 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

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

2014-04-26 Thread Charles Berry
David Masterson dsmasterson at gmail.com writes: Dotan Cohen dotancohen at 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.

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

2014-04-19 Thread Charles Berry
Pete Ley peteley11235 at 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

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

2014-04-16 Thread Charles Berry
Alan Schmitt alan.schmitt at 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:

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

2014-04-14 Thread Charles Berry
Ken Mankoff mankoff at 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 the target is

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

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

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

2014-04-03 Thread Charles Berry
Rick DeNatale rick.denatale at 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    

Re: [O] Controlling example block export?

2014-04-01 Thread Charles Berry
Heikki Lehvaslaiho heikki.lehvaslaiho at 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

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

2014-04-01 Thread Charles Berry
RG Williams rgwills at 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.

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

2014-03-29 Thread Charles Berry
Pontus Michael m.pontus at 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

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

2014-03-25 Thread Charles Berry
Rainer M Krug Rainer at 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

Re: [O] Out of Order Evaluation

2014-03-20 Thread Charles Berry
Andreas Leha andreas.leha at med.uni-goettingen.de writes: Hi Michael, Michael Weylandt michael.weylandt at 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]

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

2014-03-19 Thread Charles Berry
John Hendy jw.hendy at 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] Octave/Matlab Code Export Issue?

2014-03-13 Thread Charles Berry
Phil Regier pregier at 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:

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

2014-03-13 Thread Charles Berry
Bastien bzg at gnu.org writes: Hi Charles, Charles Berry ccberry at 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' error from inside the while loop. I just pushed

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

2014-03-13 Thread Charles Berry
Bastien bzg at gnu.org writes: Charles Berry ccberry at 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-12 Thread Charles Berry
Bastien bzg at gnu.org writes: Hi Arun, Arun Persaud apersaud at 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

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

2014-02-09 Thread Charles Berry
John Hendy jw.hendy at gmail.com writes: On Sat, Feb 8, 2014 at 11:18 AM, Charles Berry ccberry at 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 reference(s) in place

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

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

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

2014-02-07 Thread Charles Berry
John Hendy jw.hendy at 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] Proposal/request for input: slidify export for html slides

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

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

2014-01-12 Thread Charles Berry
James Harkins jamshark70 at 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

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien bzg at gnu.org writes: Hi Ista, Ista Zahn istazahn at 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 keyword

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Charles Berry ccberry at ucsd.edu writes: Bastien bzg at gnu.org writes: Hi Ista, Ista Zahn istazahn at 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

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien bzg at gnu.org writes: Charles Berry ccberry at 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 branch. Looking at org-md-export-block shouldn't

Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Nicolas Goaziou n.goaziou at gmail.com writes: Hello, Bastien bzg at gnu.org writes: Ista Zahn istazahn at 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

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

2013-12-31 Thread Charles Berry
Shuguang Sun shuguang at 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

Re: [O] re-export using same options

2013-12-23 Thread Charles Berry
Daniel Clemente n142857 at 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:

Re: [O] re-export using same options

2013-12-22 Thread Charles Berry
Daniel Clemente n142857 at 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?

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

2013-11-29 Thread Charles Berry
Sebastien Vauban sva-news@... writes: Hello Nicolas, Nicolas Goaziou wrote: Sebastien Vauban sva-news@... 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)

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

2013-11-29 Thread Charles Berry
Thomas S. Dye tsd at tsdye.com writes: Aloha Alan, Alan Schmitt alan.schmitt at 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

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

2013-11-23 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes: Charles Berry ccberry at ucsd.edu writes: Eric Schulte schulte.eric at gmail.com writes: Charles Berry ccberry at ucsd.edu writes: [snip] Indeed the fix was to set this element of info to point to the front of the inline src

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

2013-11-23 Thread Charles Berry
Eric Schulte schulte.eric at 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

[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

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

2013-11-22 Thread Charles Berry
Eric Schulte schulte.eric at gmail.com writes: Charles Berry ccberry at 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 getting org

[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 jkitchin at 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

Re: [O] LaTeX export with Code

2013-10-07 Thread Charles Berry
Sam Flint swflint at 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

Re: [O] input data for babel blocks

2013-10-01 Thread Charles Berry
Alan Schmitt alan.schmitt at polytechnique.org writes: Hi Charles, ccberry at 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

Re: [O] input data for babel blocks

2013-09-30 Thread Charles Berry
Alan Schmitt alan.schmitt at 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:lang deleted] I have

Re: [O] LaTeX export: images subplots

2013-09-11 Thread Charles Berry
Martin Leduc mart_00 at 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

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

2013-09-06 Thread Charles Berry
Bastien bzg at 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] Superscript before character

2013-09-06 Thread Charles Berry
Roger Mason rmason at 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

Re: [O] asynchronous code evaluation

2013-09-04 Thread Charles Berry
Johannes Rainer johannes.rainer at 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

Re: [O] macro expansion in source code

2013-08-29 Thread Charles Berry
Johannes Rainer johannes.rainer at 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

Re: [O] Filters not working

2013-08-09 Thread Charles Berry
Thomas S. Dye tsd at tsdye.com writes: Aloha all, After an upgrade from 8.0.3 this morning I'm unable to export a large writing project that has kept me from reading the ML regularly for the last few months. It seems that filters that used to work, no longer do so. For example,

Re: [O] Filters not working

2013-08-09 Thread Charles Berry
Thomas S. Dye tsd at tsdye.com writes: Charles Berry ccberry at ucsd.edu writes: [filter to demo extracting back-end name deleted] , | type-of back-end: vector | name of back-end: latex ` Yes, it does. Take a look at (defstruct (org-export-backend... in ox.el

Re: [O] Help with new exporter

2013-07-10 Thread Charles Berry
John Rakestraw lists at johnrakestraw.com writes: Apologies for responding to myself, but I realized after writing the message below that if I use sed to remove the lines with the word label and all of the empty brackets (i.e., =[]= and ={}= ) in the tex file, then I'm very, very close

Re: [O] [ANN] Convert Org-mode file to Source-code file

2013-06-21 Thread Charles Berry
Thorsten Jolitz tjolitz at gmail.com writes: Charles Berry ccberry at ucsd.edu writes: Thorsten Jolitz tjolitz at gmail.com writes: Hi List, it is now possible to convert existing Org-mode files with source-blocks into machine-executable source-code files, using

  1   2   >