Dear Emacs hackers,
Like all of you, I think orgmode is the best way to organise study notes.
I am solving competitive programming questions from Topcoder.com
There are strict guidelines on memory limit of 256MB and time limit of 2sec
for solutions
How do I enforce the same on my orgmode source
Thanks for the tip Ken.
I will get hold of one of those packages and modify it to my needs.
On Sun, Feb 9, 2020 at 8:24 PM Ken Mankoff wrote:
> On 2020-02-03 at 22:40 -08, Anoop GR wrote...
> > How do I enforce the same on my orgmode source blocks. I want the
> > execution to s
Comments in org babel clojure blocks are not tangled out.
Let us take an example org file with the following contents:-
This org file contains only two source blocks and a total of ten lines.
> #+begin_src clojure :noweb-ref "Define a constant"
>
(def e 2.72)
;;This is a comment on a line of its
be tangled
#+begin_src clojure :noweb yes :tangle output.clj
<>
#+end_src
---
On Tue, Oct 15, 2024 at 11:13 PM Anoop GR wrote:
> Comments in org babel clojure blocks are not tangled out.
>
> Let us take an example org file with the following contents:-
>
> This org file contains onl
The contents of the tangled output.clj file were:-
---
(def e 2.72)
(def pi 3.14) ;;This is a comment not on a line of its own
---
On Tue, Oct 15, 2024 at 11:21 PM Anoop GR wrote:
> The contents of the org file were
> ---
> This file contains only two source blocks
> #+begin_src cl
We are missing the comment that was expected in the second line of the
output.
In its place, there is an empty newline.
On Tue, Oct 15, 2024 at 11:22 PM Anoop GR wrote:
> The contents of the tangled output.clj file were:-
> ---
> (def e 2.72)
>
> (def pi 3.14) ;;This is a commen
Thanks a lot Ihor for the quick response and guidance :-)
On Fri, Oct 18, 2024 at 10:51 PM Ihor Radchenko wrote:
> Anoop GR writes:
>
> > I have attached the patch file, created against the latest main branch.
>
> Thanks!
> Applied, onto main.
> https://git.savanna
>
> I guess that we may leave the comments intact if the code block does not
> have :var.
>
I moved the comment stripping code in org-babel-expand-body:clojure to
follow the above idea:-
---
(defun org-babel-expand-body:clojure (body params)
"Expand BODY according to PARAMS, return the expanded
I have attached the patch file, created against the latest main branch.
On Thu, Oct 17, 2024 at 11:28 PM Ihor Radchenko wrote:
> Anoop GR writes:
>
> >>
> >> I guess that we may leave the comments intact if the code block does not
> >> have :var.
> >>