lesser-than as open paren

2023-01-31 Thread Andreas Röhler
Hi, when taking notes in plain org-mode, run into trouble for instance with this scala-snippet:   def scalaFiles =     for {     file <- filesHere     if file.getName.endsWith(".scala")   } yield file With cursor on lesser-than sign, get a type-mismatch. The culprit resides in org.el:  

Re: bug#51167: 29.0.50; org-indent-line broken

2021-10-16 Thread Andreas Röhler
On 13.10.21 14:59, Max Nikulin wrote: On 13/10/2021 01:35, Kévin Le Gouguec wrote: Andreas Röhler writes: With following stuff in org-mode buffer: * bla asd M-x org-indent-line RET on second line has no effect. Andreas, do the following settings make behavior consistent with you

bug#51167: 29.0.50; org-indent-line broken

2021-10-13 Thread Andreas Röhler
On 13.10.21 09:34, Kévin Le Gouguec wrote: Andreas Röhler writes: Sounds like a chain of confusion. A command called "indent-line" definitely should indent. org-indent-line indents just like every indentation function in every other major mode: if the syntactic conven

bug#51167: 29.0.50; org-indent-line broken

2021-10-13 Thread Andreas Röhler
On 12.10.21 20:35, Kévin Le Gouguec wrote: Andreas Röhler writes: With following stuff in org-mode buffer: * bla asd M-x org-indent-line RET on second line has no effect. Org 9.5 changed the default value of org-adapt-indentation from t to nil, as that seemed to be what a lot of users

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  

ical2org.awk

2020-05-07 Thread Andreas Röhler
Hi, thanks providing ical2org.awk. When running on Debian8 however, encountered a bunch of errors: awk: ./ical2org.awk: line 394: function strftime never defined awk: ./ical2org.awk: line 394: function gensub never defined awk: ./ical2org.awk: line 394: function gensub never defined awk:

Re: [PATCH] Fix ob-python.el initiate session error with py-shell

2020-02-20 Thread Andreas Röhler
, On 20.02.20 06:45, stardiviner wrote: Hi, python-mode.el developer here. Since python.el is built-in to Emacs, I think that things should continue to work for python-mode.el users, even if we entirely switch over to only using python.el. Thanks supporting python-mode.el. Both python-modes

[O] bug: copyright-sign not printed

2019-08-13 Thread Andreas Röhler
#+BEGIN_SRC python :results output print(u'\\xA9') #+END_SRC #+RESULTS: : \xA9 AFAUI cause in in calling  org-babel--shell-command-on-region, line 108 of ob-eval.el         (process-file shell-file-name input-file where python is run through a bash. While in a Emacs python-shell

[O] bug#25466: 25.1.91; hs-show-all broken

2017-01-18 Thread Andreas Röhler
On 17.01.2017 20:29, Glenn Morris wrote: Andreas Röhler wrote: With org-mode, hs-minor-mode: hs-show-all has no effect, but"Showing all blocks ... done" is messaged. BTW M-x show-all RET works as expected. I don't think hideshow has ever done anything useful in Org mode, which

Re: [O] fill paragraph: break after sentence.

2016-09-09 Thread Andreas Röhler
On 06.09.2016 10:23, Uwe Brauer wrote: Hello I would like to modify the auto-fill function such that after every sentence a new line starts like this In order to prove our nonlinear instability result, we want to use the linear growing mode in Proposition to construct small initial data for

Re: [O] bug#22597: [25.0.90.1] org-table-import docu

2016-02-08 Thread Andreas Röhler
On 08.02.2016 21:51, Rasmus wrote: Hi Andreas, Thanks for your report. Andreas Röhler <andreas.roeh...@easy-emacs.de> writes: saying: The file is assumed to be tab-separated While internally org-table-convert-region is used receiving optional argument SEPARATOR: \(4) Use the

[O] Filling headers refused

2015-08-25 Thread Andreas Röhler
Hi, when using org-mode taking notes --separated by stars-- M-q refuses to take action, as it doesn't fill headers. Any solution? Thanks, Andreas

Re: [O] babel python example not reproducible

2014-06-19 Thread Andreas Röhler
On 19.06.2014 15:40, Eric Schulte wrote: Andreas Röhler andreas.roeh...@easy-emacs.de writes: On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions

Re: [O] babel python example not reproducible

2014-06-18 Thread Andreas Röhler
On 18.06.2014 15:59, Eric Schulte wrote: Shiyuan gshy2...@gmail.com writes: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-:

Re: [O] babel python example not reproducible

2014-06-17 Thread Andreas Röhler
On 17.06.2014 08:21, Shiyuan wrote: Hi all, I found a solution to fix the echo problem of the emacs python shell: http://stackoverflow.com/questions/8060609/python-interpreter-in-emacs-repeats-lines That is, in the Interior Python buffer, do M-: (setq comint-process-echoes t) ;; or nil

Re: [O] Babel python question: use of ipython and %cpaste

2013-12-03 Thread Andreas Röhler
Am 03.12.2013 07:08, schrieb Arun Persaud: Hi being able to use python as a source block is great, but I often stumble over the fact that when using sessions you have to treat empty lines in a special way (i.e. as the end of an indentation block). I was wondering if it would be easy to create

[O] [RFC] defcustom sorting-type

2013-10-23 Thread Andreas Röhler
In docstring of `org-sort-entries' it's told The command prompts for the sorting type unless it has been given to the function through the SORTING-TYPE argument, which needs to be a character, \(?n ?N ?a ?A ?t ?T ?s ?S ?d ?D ?p ?P ?o ?O ?r ?R ?f ?F). Suggest to extend it somehow like that way

[O] broken names

2013-10-23 Thread Andreas Röhler
Hi all, as I have to deal with different Emacs versions, notice several name-changes, which break my code. Are you sure `org-forward-same-level' needed be renamed `org-forward-heading-same-level' for example? Please stay as conservative as possible WRT to this, please consider providing an

[O] [BUG] mention org-after-sorting-entries-or-items-hook

2013-10-23 Thread Andreas Röhler
`org-sort-entries' calls a useful hook `org-after-sorting-entries-or-items-hook', which isn't mentioned in docstring. BTW using this to restore empty lines swallowed by sort. Thanks all, Andreas

[O] BUG: Decimal numbers using commata not recognised

2013-09-09 Thread Andreas Röhler
Given the table below cash 20,000 short term debt 89,000 cash 20,000 short term debt 89,000 cash 20,000 short term debt 89,000 cash 20,000 short term debt 89,000 cash 20,000 short term debt 89,000 cash

Re: [O] BUG: Decimal numbers using commata not recognised

2013-09-09 Thread Andreas Röhler
Am 09.09.2013 10:22, schrieb Bastien: Hi Andreas, Andreas Röhler andreas.roeh...@easy-emacs.de writes: Decimal numbers using commata not recognised by org-table-convert-region Did you try to customize `org-table-number-regexp'? Hi Bastiens, okay, for me that customization would be fine

Re: [O] org-cut-subtree, bug?

2013-06-09 Thread Andreas Röhler
Issue doesn't show up with Emacs built from trunk GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.18) of 2013-06-07 Thanks, Andreas

[O] org-cut-subtree, bug?

2013-06-06 Thread Andreas Röhler
Hi, I'm misusing org-mode for a review of (slightly transformed) diffs as below. When done, want to delete the current section. Unfortunatly a call of M-x `org-cut-subtree' not just deletes the current section, but also deletes the header-start of section beneath. A bug? Better ways to do

Re: [O] org-cut-subtree, bug?

2013-06-06 Thread Andreas Röhler
Am 06.06.2013 10:11, schrieb Carsten Dominik: On 6 jun. 2013, at 09:58, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Hi, I'm misusing org-mode for a review of (slightly transformed) diffs as below. When done, want to delete the current section. Unfortunatly a call of M-x `org-cut

Re: [O] org-cut-subtree, bug?

2013-06-06 Thread Andreas Röhler
Am 06.06.2013 10:44, schrieb Carsten Dominik: On 6 jun. 2013, at 10:30, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 06.06.2013 10:11, schrieb Carsten Dominik: On 6 jun. 2013, at 09:58, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Hi, I'm misusing org-mode for a review

Re: [O] org-cut-subtree, bug?

2013-06-06 Thread Andreas Röhler
Am 06.06.2013 10:56, schrieb Carsten Dominik: The star, `*', introducing the header below. Which get's killed. I am not able to reproduce this. - Carsten Thanks, Andreas Okay, registered a kbd-macro which restores the star. Fine for me. I would still be interested if anyone

Re: [O] How to prevent tabs from turning into spaces in source-code export?

2013-05-30 Thread Andreas Röhler
Am 30.05.2013 15:22, schrieb Nicolas Goaziou: Hello, James Harkins jamshar...@gmail.com writes: I have (where TAB is a tab character): #+BEGIN_SRC {} // SuperCollider code here ( r = p.chan.play(Pspawner { |sp| TABvar num, subdiv, ... }); ) #+END_SRC The exported .tex file contains:

Re: [O] Org-mode v8 broke my workflow

2013-05-18 Thread Andreas Röhler
Am 18.05.2013 00:52, schrieb Marcin Borkowski: Hi list, can't resist;): http://xkcd.com/1172/ I have this at the end of my .emacs: (setq inhibit-splash-screen t) (org-agenda-list) (delete-window) The point is that I want agenda to appear as the only thing when I start Emacs. However,

Re: [O] Org-mode v8 broke my workflow

2013-05-18 Thread Andreas Röhler
Am 18.05.2013 13:54, schrieb Marcin Borkowski: Dnia 2013-05-18, o godz. 08:07:07 Andreas Röhler andreas.roeh...@easy-emacs.de napisał(a): Am 18.05.2013 00:52, schrieb Marcin Borkowski: Hi list, can't resist;): http://xkcd.com/1172/ I have this at the end of my .emacs: (setq inhibit-splash

Re: [O] How to set C-o back to open-line?

2013-05-16 Thread Andreas Röhler
Am 17.05.2013 04:28, schrieb Christopher Allan Webber: Suvayu Ali writes: Hello Christopher, On Thu, May 16, 2013 at 05:38:11PM -0500, Christopher Allan Webber wrote: I really hate org-open-line... I can see why people might want it, but it's messed up my workflow. I'd like to set C-o back.

Re: [O] Babel blocks not indented

2013-05-13 Thread Andreas Röhler
[ ... ] I change my mode to whatever my src is in when I want indenting to work properly, then change it back when I want to see it as an org file again. Dave Probably it would pay to have a minor mode for that, running with idle-timer and switching the mode according to SRC context.

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef at MY-PATH/)]

2013-05-09 Thread Andreas Röhler
Am 08.05.2013 22:50, schrieb Roland Donat: Yes, you're right Andreas. It fails to show the accented characters if you try to print the entire tuple. It fails too if you evaluate a[0][0] in your interpreter. You should see : a[0][0] '\xc3\xa9' But print a[0][0] gives the expected answer 'é'

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef at MY-PATH/)]

2013-05-09 Thread Andreas Röhler
Am 09.05.2013 16:33, schrieb Roland Donat: Andreas Röhler andreas.roehler at easy-emacs.de writes: Am 08.05.2013 22:50, schrieb Roland Donat: Yes, you're right Andreas. It fails to show the accented characters if you try to print the entire tuple. It fails too if you evaluate a[0][0

Re: [O] org-babel, python, encoding and table

2013-05-08 Thread Andreas Röhler
Am 07.05.2013 22:05, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de writes: So it's up to choose the Python default interpreter. Unfortunatly (org-babel-do-load-languages 'org-babel-load-languages '((python3 . t))) seems not working. The language is still python

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef @ MY-PATH/)]

2013-05-08 Thread Andreas Röhler
org-babel-python-mode was python3

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef @ MY-PATH/)]

2013-05-08 Thread Andreas Röhler
Am 08.05.2013 09:12, schrieb Andreas Röhler: org-babel-python-mode was python3 e, org-babel-python-command

Re: [O] org-babel, python, encoding and table

2013-05-08 Thread Andreas Röhler
Am 07.05.2013 18:41, schrieb Eric Schulte: #+NAME: test2 #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a a = ( ( é, a ), ( a, à ) ) b = é #+end_src #+RESULTS: test2 | \303\251 | a| | a| \303\240 | Maybe this isn't an execution problem, but is

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef @ MY-PATH/)]

2013-05-08 Thread Andreas Röhler
Am 08.05.2013 14:40, schrieb Eric Schulte: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 08.05.2013 09:12, schrieb Andreas Röhler: org-babel-python-mode was python3 e, org-babel-python-command I can't reproduce this problem. After evaluating the following (setq

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef at MY-PATH/)]

2013-05-08 Thread Andreas Röhler
Am 08.05.2013 15:20, schrieb Roland Donat: hmm, indeed, shows up nicely now. Please close, cheers, Andreas That's right, it works with python3 but that is not the case with python2... Cheers, Roland. python2 fails here already with a common shell, independently from Emacs. OTOH that

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef at MY-PATH/)]

2013-05-08 Thread Andreas Röhler
Am 08.05.2013 16:02, schrieb Roland Donat: Andreas Röhler andreas.roehler at easy-emacs.de writes: Am 08.05.2013 15:20, schrieb Roland Donat: hmm, indeed, shows up nicely now. Please close, cheers, Andreas That's right, it works with python3 but that is not the case with python2

Re: [O] Bug: Python SRC exec tuple fails [7.9.3f (release_7.9.3f-17-g7524ef at MY-PATH/)]

2013-05-08 Thread Andreas Röhler
Am 08.05.2013 16:02, schrieb Roland Donat: Andreas Röhler andreas.roehler at easy-emacs.de writes: Am 08.05.2013 15:20, schrieb Roland Donat: hmm, indeed, shows up nicely now. Please close, cheers, Andreas That's right, it works with python3 but that is not the case with python2

Re: [O] How to initiate source edits

2013-05-07 Thread Andreas Röhler
Hi Alexander, Am 07.05.2013 10:22, schrieb Alexander Baier: Hi Andreas, Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 03.05.2013 10:34, schrieb Myles English: Hi Andreas, Andreas Röhler writes: Hi, have in some source file, let's assume Python, the following: foo

Re: [O] org-babel-demarcate-block added to menu

2013-05-07 Thread Andreas Röhler
Am 07.05.2013 12:41, schrieb Bastien: Hi Andreas, thanks for the suggestion -- I'll let other decide on it. An important point: since you do not want to assign your copyright to the FSF for Emacs/Org, I think it's better not to send patches but just to make suggestions for changes, especially

Re: [O] org-babel, python, encoding and table

2013-05-07 Thread Andreas Röhler
Am 07.05.2013 18:41, schrieb Eric Schulte: #+NAME: test2 #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a a = ( ( é, a ), ( a, à ) ) b = é #+end_src #+RESULTS: test2 | \303\251 | a| | a| \303\240 | Maybe this isn't an execution problem, but is

Re: [O] org-babel, python, encoding and table

2013-05-07 Thread Andreas Röhler
Am 07.05.2013 20:18, schrieb Eric Schulte: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 07.05.2013 18:41, schrieb Eric Schulte: #+NAME: test2 #+begin_src python :results value :preamble # -*- coding: utf-8 -*- :return a a = ( ( é, a ), ( a, à ) ) b = é #+end_src #+RESULTS: test2

Re: [O] org-babel, python, encoding and table

2013-05-07 Thread Andreas Röhler
Am 07.05.2013 21:20, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 07.05.2013 20:18, schrieb Eric Schulte: Andreas Röhler andreas.roeh...@easy-emacs.de writes: ... Maybe Python simply needs to be convinced to print in utf-8 format? Get the wrong results

[O] [feature request] choosing the interpreter

2013-05-07 Thread Andreas Röhler
Hi Erik, taking the interpreter issue showed up at other python thread, here a suggestion: let's go rid of static lists like (org-babel-do-load-languages 'org-babel-load-languages '( (sh . t) (python . t))) unless maybe as fallback. But from SRC, read the interpreter there.

Re: [O] org-babel, python, encoding and table

2013-05-07 Thread Andreas Röhler
[ ... ] But, what is hurting my poor little neurone is the fact that I don't understand why I get the correct result when the evaluation returns a single value and a wrong answer with a table. that's not the case. One from returns a, the other b, which are bound differently. The tuple fails

Re: [O] How to initiate source edits

2013-05-03 Thread Andreas Röhler
Am 03.05.2013 10:07, schrieb Achim Gratz: Andreas Röhler andreas.roehler at easy-emacs.de writes: What is the best way to put this into an #+BEGIN_SRC python foo = { bar: ( baz, qux, ), } #+END_SRC s TAB python C-c ' C-x i src.python C-c ' Regards

Re: [O] How to initiate source edits

2013-05-03 Thread Andreas Röhler
Am 03.05.2013 10:34, schrieb Myles English: Hi Andreas, Andreas Röhler writes: Hi, have in some source file, let's assume Python, the following: foo = { bar: ( baz, qux, ), } What is the best way to put this into an #+BEGIN_SRC python foo = { bar

[O] initiate source edits and region

2013-05-03 Thread Andreas Röhler
Hi all, want to wrap org-mode src markup around code in existing region. Having a look at the way sTAB works internally, it seems hard to make use of it. The region is affected already by inserting sTAB. That part probably would profit being moved closer to the way, edit commands are called

Re: [O] initiate source edits and region

2013-05-03 Thread Andreas Röhler
Am 03.05.2013 13:11, schrieb Sebastien Vauban: Andreas, Andreas Röhler wrote: want to wrap org-mode src markup around code in existing region. Maybe someone already wrote such region-sensitive insert/init? Yes, Eric: C-c C-v C-d Best regards, Seb That's it, thanks!

[O] org-babel-demarcate-block added to menu

2013-05-03 Thread Andreas Röhler
Cheers, Andreas commit 3684737f97fc78eeca8f6d284985e39a88a5393e Author: Andreas Roehler andreas.roeh...@online.de Date: Fri May 3 17:22:33 2013 +0200 menu provide `org-babel-demarcate-block' org-mode menu should enable access to edit commands This change opens a slot, so

[O] How to initiate source edits

2013-05-02 Thread Andreas Röhler
Hi, have in some source file, let's assume Python, the following: foo = { bar: ( baz, qux, ), } What is the best way to put this into an #+BEGIN_SRC python foo = { bar: ( baz, qux, ), } #+END_SRC Thanks, Andreas

Re: [O] how to best make characters invisible in a org-derived mode

2013-05-01 Thread Andreas Röhler
Am 27.04.2013 05:29, schrieb Christian Wittern: Hi orgers, In a mode derived from org-mode, I would like to hide some characters with a special function to make the display cleaner. There are two cases: - special characters that should be always invisible - strings matched by a regex that

Re: [O] how to best make characters invisible in a org-derived mode

2013-05-01 Thread Andreas Röhler
Am 02.05.2013 00:58, schrieb Christian Wittern: Hi Andreas, Hi John Thank both of you for trying to get me on track. On 2013-05-01 16:43, Andreas Röhler wrote: maybe have a look how ar-hide-bracketed-in-line-atpt for example is implemented. I can't actually find this function, but I get

Re: [O] New maintainer

2013-04-22 Thread Andreas Röhler
Hi Bastien, Am 22.04.2013 00:39, schrieb Bastien: Hi Andreas, thanks for the kind words. The decision to step down after 8.0 was taken a long time ago, before the recent problems on the list. I had to find someone willing to step in before I could announce this. Okay, a good news in

Re: [O] New maintainer

2013-04-21 Thread Andreas Röhler
Am 18.04.2013 18:53, schrieb Bastien: Dear all, I'm stepping down as the Org maintainer. Carsten accepted to step up, if the community agrees. Please raise your thumbs up or your concerns, if any. I'm glad I had this opportunity to work as Robin and I'm even more glad Batman may strike back!

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-05 Thread Andreas Röhler
Am 05.04.2013 18:31, schrieb Eric Schulte: [ ... ] Yea, this could be a simple note, e.g., the method by which variables are applied to code blocks are language-specific and determined by the semantics of the programming language of the code block, see Hi, still can't see the purpose of

Re: [O] BUG docu org-babel-default-header-args

2013-04-05 Thread Andreas Röhler
Am 05.04.2013 19:14, schrieb Bastien: Hi Andreas, Andreas Röhler andreas.roeh...@easy-emacs.de writes: http://orgmode.org/manual/System_002dwide-header-arguments.html#System_002dwide-header-arguments Org Mode Info System-wide header arguments System-wide values

Re: [O] BUG typo in languages.html

2013-04-05 Thread Andreas Röhler
Am 05.04.2013 19:21, schrieb Bastien: Hi Andreas, Andreas Röhler andreas.roeh...@easy-emacs.de writes: http://orgmode.org/worg/org-contrib/babel/languages.html LanguageIdentifier Documentation Requirements C c ob-doc-Cnone ; mentiones lesser c

Re: [O] I have terminated my assignment

2013-04-02 Thread Andreas Röhler
Am 03.04.2013 00:25, schrieb John Hendy: On Tue, Apr 2, 2013 at 5:16 PM, Christian Moe m...@christianmoe.com wrote: Jambunathan, If you're leaving the Org-mode community, I'd prefer to remember you with gratitude for leaving us the excellent ODT exporter. Please stop diminishing your legacy

Re: [O] Org-mode as a metalanguage: calling SQL functions

2013-04-02 Thread Andreas Röhler
Am 02.04.2013 23:54, schrieb Eric Schulte: Gary Oberbrunner ga...@oberbrunner.com writes: Aha -- you have to use the :var syntax on the begin_src line, not the params-in-parens syntax on the name line. Your version works: #+name: example-block #+begin_src sh :var input= echo input is

Re: [O] python sessions

2013-03-30 Thread Andreas Röhler
Am 27.03.2013 07:19, schrieb Andreas Röhler: Am 26.03.2013 22:41, schrieb Gary Oberbrunner: I did some further testing. With my patch, my real org-mode python file is now actually working. There were a few gotchas I didn't understand about session mode and python and matplotlib: 1

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
to look for the spot where to fix it. Maybe not the right one yet, just a study. So let's go on until a convenient solution is found, Andreas On Thu, Mar 28, 2013 at 5:55 PM, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Hi, as running python from org-source has been reported broken

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 16:09, schrieb Eric Schulte: with current GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.14) of 2013-03-05 Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ MY_PATH/emacs-24.3/lisp/org/) python from org-source seems completely broken. For example: #+BEGIN_SRC python

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 17:20, schrieb Eric Schulte: A valid opinion, in fact I think I defended that point of view myself, Hi Eric, so, if I'm saying: let's make things considerably easier, working right from the spot, why not try that? What I need still is a specification, what :session and the

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 17:47, schrieb Eric Schulte: As we've proven a couple of times now, Python session are broken with the newest version of Emacs (since the upstream change to an entirely new python.el implementation). I've just pushed up a fix to ob-python.el so that sessions should now work with

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 17:47, schrieb Eric Schulte: As we've proven a couple of times now, Python session are broken with the newest version of Emacs (since the upstream change to an entirely new python.el implementation). I've just pushed up a fix to ob-python.el so that sessions should now work with

Re: [O] Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 20:59, schrieb Gary Oberbrunner: On Fri, Mar 29, 2013 at 11:09 AM, Eric Schulte schulte.e...@gmail.comwrote: Because of quirks of the python language, when executing outside of a session, it is necessary to explicitly specify a return. ... This is clearly stated in the Python

Re: [O] Fwd: Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 21:10, schrieb Gary Oberbrunner: On Fri, Mar 29, 2013 at 11:29 AM, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: IMO org-babel should be able to run source code as is. If an org-mode specific modification is required at such a trivial form, what to expect wrt complex

[O] run python from org, draft

2013-03-28 Thread Andreas Röhler
Hi, as running python from org-source has been reported broken, herewith a patch, which allows basic usage. Requires python-mode.el-6.1 https://launchpad.net/python-mode/trunk/6.1.1/+download/python-mode.el-6.1.1.tar.gz Just a draft, not thought as implementation, Andreas diff --git

Re: [O] python sessions

2013-03-27 Thread Andreas Röhler
Am 26.03.2013 22:41, schrieb Gary Oberbrunner: I did some further testing. With my patch, my real org-mode python file is now actually working. There were a few gotchas I didn't understand about session mode and python and matplotlib: 1. In session mode, you are essentially running an

[O] BUG typo in languages.html

2013-03-27 Thread Andreas Röhler
http://orgmode.org/worg/org-contrib/babel/languages.html LanguageIdentifier Documentation Requirements C c ob-doc-Cnone ; mentiones lesser c as Identifier, seems it should be upper C BTW couldn't see

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 26.03.2013 13:37, schrieb Eric Schulte: Question from here: I use mainly R and have there set file wide #+PROPERTY: session R-session But I also have bash code, which would be evaluated in the R session, unless I use #+begin_src sh :session sh-session ... #+end_src But I do not need

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013 13:37, schrieb Eric Schulte: This can be done system wide by setting the language-specific header arguments. I've yet to see an example on how to do this. #+begin_src emacs-lisp

[O] BUG docu org-babel-default-header-args

2013-03-27 Thread Andreas Röhler
http://orgmode.org/manual/System_002dwide-header-arguments.html#System_002dwide-header-arguments Org Mode Info System-wide header arguments System-wide values of header arguments can be specified by customizing the `org-babel-default-header-args' variable: ;

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013 13:37, schrieb Eric Schulte: This can be done system wide by setting the language-specific header

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 12:48, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013 13

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 13:22, schrieb Rainer M Krug: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27/03/13 13:18, Andreas Röhler wrote: Am 27.03.2013 12:48, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 13:43, schrieb Eric Schulte: org-R is the name of the session. The code blocks illustrate that the value of x (set in the first code block) is preserved and can be used in the second (and subsequent) code blocks. Nick Okay, so the :session argument must not be repeated? No

[O] smart loading languages

2013-03-27 Thread Andreas Röhler
Hi, instead requiring explicit (org-babel-do-load-languages 'org-babel-load-languages '( (LANGUAGE-1 . t) (LANGUAGE-2 . t) ... (LANGUAGE-N . t) )) in Emacs init, AFAIU that might be done first time when a source block is evaluated. Andreas

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
[ ... ] But non-R code blocks do not have a default session value. #+begin_src sh date #+end_src #+RESULTS: : Mi 27. Mär 21:18:49 CET 2013 #+end_org Would say rather: global defaults are not predictable from users perspective, as global :seesion settings may have an effect or not.

Re: [O] python sessions

2013-03-26 Thread Andreas Röhler
Am 25.03.2013 22:37, schrieb Eric Schulte: running into this, func def seems missing: Debugger entered--Lisp error: (void-function org-babel-result-cond) My guess is that you have a mixed install. You are mostly running the Org-mode which ships with Emacs (in which `org-babel-result-cond' is

Re: [O] :session question

2013-03-26 Thread Andreas Röhler
Am 26.03.2013 00:58, schrieb Michael Gauland: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. I don't think so, but perhaps I'm just used to the way it works now. I use a mix of session

Re: [O] :session question

2013-03-26 Thread Andreas Röhler
Thanks! Am 26.03.2013 01:46, schrieb Eric Schulte: Michael Gauland mikely...@no8wireless.co.nz writes: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. Header argument defaults

[O] org-babel header documentation

2013-03-26 Thread Andreas Röhler
Hi all, while digging through the org-babel stuff, which is quite exiting, have some difficulties to grasp the functionality of different header arguments. Info 14.8 Header arguments is useful so far. Still miss an explanation the way Setting X to Y will cause Maybe missing the right

Re: [O] org-babel header documentation

2013-03-26 Thread Andreas Röhler
Am 26.03.2013 16:35, schrieb Eric Schulte: John Hendy jw.he...@gmail.com writes: On Tue, Mar 26, 2013 at 10:00 AM, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Hi all, while digging through the org-babel stuff, which is quite exiting, have some difficulties to grasp the functionality

Re: [O] python sessions

2013-03-25 Thread Andreas Röhler
Am 25.03.2013 03:59, schrieb John Hendy: On Sun, Mar 24, 2013 at 9:38 PM, Nick Dokos nicholas.do...@hp.com wrote: Eric Schulte schulte.e...@gmail.com wrote: From participating in evaluating code throughout the discussion and catching the comments throughout, I'd say yes, at least in terms

[O] :session question

2013-03-25 Thread Andreas Röhler
Hi all, org-babel uses the header argument :session keeping the environment for consecutive evaluations. That feels the opposite of all on-the-fly evaluations commonly done by a (language)-shell. Commonly a shell keeps is values until a new one is created. Would find it more natural if

[O] no info files created w/ current git-repo

2013-03-25 Thread Andreas Röhler
Hi, building from current git-repo make all builds some .pdf and .html docu, but not info directory doc contains: dir Makefile orgguide.texi org-version.inc doclicense.texi org org.html pdflayout.sty Documentation_Standards.org

Re: [O] no info files created w/ current git-repo

2013-03-25 Thread Andreas Röhler
Am 25.03.2013 14:42, schrieb John Hendy: On Mon, Mar 25, 2013 at 6:53 AM, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Hi, building from current git-repo make all builds some .pdf and .html docu, but not info directory doc contains: dir Makefile

[O] void-variable org-list-allow-alphabetical

2013-03-25 Thread Andreas Röhler
Hi, when trying to load git-devel-repo after make all get the error. Traceback attached If defvarred before defcustom, that error is gone. Andreas Debugger entered--Lisp error: (void-variable org-list-allow-alphabetical)

Re: [O] python sessions

2013-03-25 Thread Andreas Röhler
Am 25.03.2013 17:43, schrieb Eric Schulte: John Hendy jw.he...@gmail.com writes: On Mon, Mar 25, 2013 at 11:01 AM, Ista Zahn istaz...@gmail.com wrote: On Mon, Mar 25, 2013 at 11:40 AM, Eric Schulte schulte.e...@gmail.com wrote: John Hendy jw.he...@gmail.com writes: On Sun, Mar 24, 2013 at

Re: [O] python sessions

2013-03-25 Thread Andreas Röhler
Am 24.03.2013 19:41, schrieb Nick Dokos: running into this, func def seems missing: Debugger entered--Lisp error: (void-function org-babel-result-cond) (org-babel-result-cond result-params results (org-babel-python-table-or-string results)) (if (string= (substring

Re: [O] python sessions

2013-03-24 Thread Andreas Röhler
Am 23.03.2013 23:07, schrieb Eric Schulte: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 21.03.2013 08:43, schrieb Bastien: Hi Andreas, Andreas Röhler andreas.roeh...@easy-emacs.de writes: Nonetheless, still thinking let-var session in org-babel-execute:python needs the fix

Re: [O] python sessions

2013-03-24 Thread Andreas Röhler
Am 24.03.2013 15:47, schrieb John Hendy: On Sun, Mar 24, 2013 at 2:47 AM, Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 23.03.2013 23:07, schrieb Eric Schulte: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 21.03.2013 08:43, schrieb Bastien: Hi Andreas, Andreas Röhler

Re: [O] tests with travis-ci

2013-03-22 Thread Andreas Röhler
Am 21.03.2013 21:41, schrieb Bastien: [ ... ] Yes. The limitation of the pre-push hook comes from the fact that various developers may have various testing environments, no one should be prevented from pushing by the fact that tests do not pass for someone else. [ ... ] Hi, just to ask

Re: [O] tests with travis-ci

2013-03-22 Thread Andreas Röhler
Am 22.03.2013 13:55, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de wrote: [ ... ] Not worth bothering about IMO: just run the whole test suite. Nick Hi Nick, thanks a lot for your explanation and patience. Still digging in... :) Andreas

Re: [O] python sessions

2013-03-21 Thread Andreas Röhler
Am 21.03.2013 02:56, schrieb Gary Oberbrunner: Hi Gary, great if you can make it work for you. Nonetheless, still thinking let-var session in org-babel-execute:python needs the fix. Best, Andreas

  1   2   3   >