Re: Bug: org-babel python with :results value sends function definition with a statement after a for loop to the shell incorrectly [9.3.6 (9.3.6-elpa @ /home/username/.emacs.d/elpa/org-9.3.6/)]

2020-07-01 Thread ian martins
your example works for me without any changes. "return 42" works as well. it returns None and there are no errors in the *bug_report* buffer. I'm using: GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian Org mode version 9.3.6 (release_9.3.6-739-g0c1740.

Re: Bug: org-babel python with :results value sends function definition with a statement after a for loop to the shell incorrectly [9.3.6 (9.3.6-elpa @ /home/username/.emacs.d/elpa/org-9.3.6/)]

2020-07-01 Thread Andreas Röhler
On 01.07.20 18:55, Philip Blagoveschensky wrote: #+begin_src python :session bug_report def foobar():     for i in range(5):     pass     print "hello world" foobar() #+end_src Works here like this: #+begin_src python :results output def foobar():     for i in range(5):     pass  

[PATCH] capture: respect KEYS with GOTO arg [9.3.7 (release_9.3.7-661-g4aa4dd @ /home/n/.emacs.d/straight/build/org/)]

2020-07-01 Thread No Wayman
`org-capture' does not pass its KEYS argument to `org-capture-goto-target'. (Must not be a common use-case, as git blame points to org-capture's introduction 10 years ago!) The attached patch does just that. Wasn't sure if this was worthy of a NEWS entry. Will add if needed. Thanks, Nichol

Bug: org-babel python with :results value sends function definition with a statement after a for loop to the shell incorrectly [9.3.6 (9.3.6-elpa @ /home/username/.emacs.d/elpa/org-9.3.6/)]

2020-07-01 Thread Philip Blagoveschensky
Consider the following org-babel block: #+begin_src python :session bug_report def foobar(): for i in range(5): pass print "hello world" foobar() #+end_src When I run it, this is what I see in the *bug_report* buffer: def foobar(): ... for i in range(5): ... p

Bug in filtered version

2020-07-01 Thread Ismael Bouya
Dear org-mode users, I would like to report a bug in filtered mode for org-mode. Take this given file as example: --- * Some heading 1 ** Some header to remove:sometag: ** Some header to keep :othertag:

Re: [PATCH] allow for multiline headers

2020-07-01 Thread Mario Frasca
Good morning Nicolas, On 01/07/2020 05:46, Nicolas Goaziou wrote: There are multiple ways to draw a diagram from a table. […] I didn't check but I think Org Plot predates Org Babel. It probably wouldn't exist otherwise. I'm happy it exists.  it has a very low entrance threshold, just use it

Re: [PATCH] allow for multiline headers

2020-07-01 Thread Nicolas Goaziou
Hello, Mario Frasca writes: > IMO, we are keeping org-plot artificially basic. Exactly. There are multiple ways to draw a diagram from a table. One could use gnuplot, or asymptote, or R, or, matplotlib… From a design point of view, there is no particular reason to favor one way or the other,