Re: [O] org-babel python eval discrepancy

2017-08-03 Thread Dushyant Juneja
t On Thu, Aug 3, 2017 at 2:22 PM Dov Grobgeld wrote: > Shell is using python3 and org-mode python2? > > On Aug 3, 2017 8:31 PM, "Dushyant Juneja" > wrote: > >> Hi, >> >> I have the following code block in my org mode based literate programming >>

[O] Adding custom arguments to org-babel src code eval

2017-08-03 Thread Dushyant Juneja
Hi, Is it possible to add custom arguments to source code evaluation in org babel? For example, if the source code block is: #+BEGIN_SRC python # valid comment 1 print("Hi there!") # valid comment 2 print("# Invalid comment! #UsefulForHashtags!") print ("Space is fine here!") #+END_SRC The gener

[O] org-babel python eval discrepancy

2017-08-03 Thread Dushyant Juneja
Hi, I have the following code block in my org mode based literate programming notes: #+BEGIN_SRC python print('1+2 > 4 is ', 1+2 > 4) print("What is 3 + 2?", 3 + 2) #+END_SRC When I tangle it and run the script, it gives me expected output as follows: > python notes.py 1+2 > 4 is False What is

Re: [O] [RFC] The "c" Org macro

2017-05-08 Thread Dushyant Juneja
A very useful macro indeed! One suggestion: can this also be made to support nested headings. For instance: * Part {{{c}}} ** Part {{{c}}}.{{{c}}} * Part {{{c}}} should export to: * Part 1 ** Part 1.1 * Part 2 I reckon this will be very useful when a paragraphs need to be broken into several su

[O] use-package with ox-latex

2016-12-27 Thread Dushyant Juneja
Hi all, I was trying to wrap ox-latex in a use-package configuration. My use-package statement is super simple: (use-package ox-latex :defer t) However, emacs cribs on this at startup as follows: package-compute-transaction: Package ‘ox-latex-’ is unavailable Any ideas of what could be going w

Re: [O] Bug with (comment-line)

2016-10-26 Thread Dushyant Juneja
On Wed, Oct 26, 2016 at 4:12 PM Kaushal Modi wrote: On Wed, Oct 26, 2016, 1:28 AM Dushyant Juneja wrote: bug or a feature? If latter, how do I comment current line in org-babel? It looks like this bug which was recently fixed in the master (dev) branch: http://orgmode.org/cgit.cgi/org

Re: [O] Issue with :cache yes

2016-10-26 Thread Dushyant Juneja
Thanks for the quick response, Uli! On Wed, Oct 26, 2016 at 1:09 PM Ulrich J. Herter wrote: > Hi, > > Am Mittwoch, den 26.10.2016, 05:49 + schrieb Dushyant Juneja: > > * New Heading > > #+call: execBlk1( "newHeading" ) :cache yes > > Shouldn't it b

[O] Issue with :cache yes

2016-10-25 Thread Dushyant Juneja
Hi, I have an org file (as below) with pre-computed outputs already available in the RESULTS drawer: ## #+OPTIONS: ':t *:t -:t ::t <:t H:3 \n:nil ^:{} arch:headline author:t #+OPTIONS: c:nil creator:nil d:(not "LOGBOOK") date:t e:t email:nil #+O

[O] Bug with (comment-line)

2016-10-25 Thread Dushyant Juneja
Hi, (comment-line) function (bound to C-x C-; by default) seems to have a bug. Normally, with pointer on a line, if I do C-x C-; - it comments the current line. In org-mode, it adds comment at the end of the line. For instance, I have the following verilog file (sth.sv) (line numbers for clarity

Re: [O] Fwd: bug with org-babel/sqlite?

2016-09-17 Thread Dushyant Juneja
To: > > > Kaushal Modi writes: > > > Hi Dushyant, > > > > The folks following the org mailing list might be able to help you out > on this. So I am forwarding this > > email there. > > > > I haven't tried recreating this as I do not use sq