Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-12 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Daniel Gerber writes: Not quite. I thought %S was not a typo because it escapes characters more nicely. E.g. with %s the buffer should contain \\\ to mean in python. If that's the intention, then %S is arguably a latent bug, since the escaping it

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-12 Thread Eric Schulte
Bastien b...@gnu.org writes: Achim Gratz strom...@nexgo.de writes: Daniel Gerber writes: Not quite. I thought %S was not a typo because it escapes characters more nicely. E.g. with %s the buffer should contain \\\ to mean in python. If that's the intention, then %S is arguably a latent

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-12 Thread Bastien
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: I think using %S with strip-properties will address the great majority of cases, and is certainly a better interim solution than the current use of %s with no escaping. I find string escaping is *normally* very consistent between

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-09 Thread Achim Gratz
Daniel Gerber writes: Not quite. I thought %S was not a typo because it escapes characters more nicely. E.g. with %s the buffer should contain \\\ to mean in python. If that's the intention, then %S is arguably a latent bug, since the escaping it applies can only by accident be compatible

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-08 Thread Bastien
Achim Gratz strom...@nexgo.de writes: Bastien writes: I don't understand why properties would be a problem here. Can you elaborate a bit on this? With format %S prints an s-expression via prin1, not a string. So either the format should be %s or the properties need to be stripped unless

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-08 Thread Daniel Gerber
Hi Bastien, On 07/01/2014 18:31, Bastien wrote: Daniel Gerberdaniel.g.ger...@gmail.com writes: This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I guess there should be something

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-08 Thread Bastien
Daniel Gerber daniel.g.ger...@gmail.com writes: This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I guess there should be something similar for other languages. I've now fixed this by

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-08 Thread Daniel Gerber
On 08/01/2014 17:31, Bastien wrote: Daniel Gerber daniel.g.ger...@gmail.com writes: This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I guess there should be something similar for other

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-08 Thread Bastien
Daniel Gerber daniel.g.ger...@gmail.com writes: On 08/01/2014 17:31, Bastien wrote: Daniel Gerber daniel.g.ger...@gmail.com writes: This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I

[O] [PATCH] Strip text properties from string code block arguments

2014-01-07 Thread Daniel Gerber
Hi, This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I guess there should be something similar for other languages. diff --git a/lisp/ob-python.el b/lisp/ob-python.el index

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-07 Thread Bastien
Hi Daniel, Daniel Gerber daniel.g.ger...@gmail.com writes: This change in org-babel-python-var-to-python makes python code blocks accept a string with text properties (as one gets when referring another code block). I guess there should be something similar for other languages. I don't

Re: [O] [PATCH] Strip text properties from string code block arguments

2014-01-07 Thread Achim Gratz
Bastien writes: I don't understand why properties would be a problem here. Can you elaborate a bit on this? With format %S prints an s-expression via prin1, not a string. So either the format should be %s or the properties need to be stripped unless one really wants to interpret the result via