Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-11 Thread Nicolas Goaziou
"Charles C. Berry" writes: >>> Apart from that, the documentation needs to reverse this in 14.2: >>> >>> "may replace sequences of spaces with tab characters" >>> >>> as it is spaces that replace tab characters. >> >> OK. So with the new behaviour, this is the only necessary

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-11 Thread Charles C. Berry
On Sun, 11 Oct 2015, Nicolas Goaziou wrote: What about the following: ‘org-src-preserve-indentation’ By default, the value is ‘nil’, which means that code blocks evaluated during export or tangled are indented according to context, possibly altering leading sequences of

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-11 Thread Nicolas Goaziou
"Charles C. Berry" writes: >> What about the following: >> >> ‘org-src-preserve-indentation’ By default, the value is ‘nil’, which >> means that code blocks evaluated during export or tangled are >> indented according to context, possibly altering leading >>

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-08 Thread Nicolas Goaziou
Hello, "Charles C. Berry" writes: > More than one bug, I am afraid. > >> Do you have any such example? > > Sure, make sure that the whitespace in the `> <' below is a TAB > character (C-q C-i). Running the src block replaces the TAB when > `org-src-preserve-indentation' is

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-08 Thread Charles C. Berry
On Thu, 8 Oct 2015, Nicolas Goaziou wrote: "Charles C. Berry" writes: If `org-src-preserve-indentation' is nil, then embedded (not just leading/trailing) tabs in src blocks are converted to spaces when `org-edit-src-code' is called This is now fixed in master. Thank you.

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-08 Thread Nicolas Goaziou
"Charles C. Berry" writes: > If `org-src-preserve-indentation' is nil, then embedded (not just > leading/trailing) tabs in src blocks are converted to spaces when > `org-edit-src-code' is called This is now fixed in master. Thank you. >or when exported. I cannot reproduce

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-08 Thread Charles C. Berry
On Thu, 8 Oct 2015, Nicolas Goaziou wrote: Hello, "Charles C. Berry" writes: [...] The main culprit is `org-do-remove-indentation', which doesn't need to untabify the buffer in order to proceed. I changed that in master. It should go a long way towards fixing the issue.

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-07 Thread Nicolas Goaziou
Hello, "Charles C. Berry" writes: > Attached is a patch. Thank you. > I think it is an improvement, but `org-src-preserve-indentation' > behaves differently according to context, which makes it hard to > document succinctly. There's something suspicious here. This variable

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-10-07 Thread Charles C. Berry
On Wed, 7 Oct 2015, Nicolas Goaziou wrote: Hello, "Charles C. Berry" writes: Attached is a patch. Thank you. I think it is an improvement, but `org-src-preserve-indentation' behaves differently according to context, which makes it hard to document succinctly. There's

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-25 Thread Charles C. Berry
On Thu, 24 Sep 2015, Nicolas Goaziou wrote: Hello, "Charles C. Berry" writes: On Tue, 22 Sep 2015, Charles C. Berry wrote: Just to tie this up, this is an issue with `org-src-preserve-indentation', see (info "(org) Editing source code") for the best

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-24 Thread Nicolas Goaziou
Hello, "Charles C. Berry" writes: > On Tue, 22 Sep 2015, Charles C. Berry wrote: > > Just to tie this up, this is an issue with `org-src-preserve-indentation', > see > > (info "(org) Editing source code") > > for the best documentation. I found the "replace sequences of

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-24 Thread Charles C. Berry
On Thu, 24 Sep 2015, Nicolas Goaziou wrote: Hello, "Charles C. Berry" writes: On Tue, 22 Sep 2015, Charles C. Berry wrote: Just to tie this up, this is an issue with `org-src-preserve-indentation', see (info "(org) Editing source code") for the best

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-22 Thread Charles C. Berry
On Tue, 22 Sep 2015, Charles C. Berry wrote: Just to tie this up, this is an issue with `org-src-preserve-indentation', see (info "(org) Editing source code") for the best documentation. I found the "replace sequences of spaces with tab characters" for nil values confusing. The

[O] [BUG] R src blocks untabify literal constant TABs

2015-09-22 Thread Charles C. Berry
ECM follows: Make a string of three characters :'A', '', and 'B': #+BEGIN_SRC R res <- paste0("A","\t","B") nchar(res) #+END_SRC #+RESULTS: : 3 Make a src block in which the string appears literally, then execute the resulting src block: #+BEGIN_SRC R :results raw :wrap "src R" res <-

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-22 Thread Charles C. Berry
Sorry, I just walked in the door and didn't put on my thinking cap... On Tue, 22 Sep 2015, Charles C. Berry wrote: On Tue, 22 Sep 2015, Grant Rettke wrote: On Tue, Sep 22, 2015 at 5:04 PM, Charles C. Berry wrote: ECM follows: I just ran it and got 10 chars like you

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-22 Thread Grant Rettke
On Tue, Sep 22, 2015 at 5:04 PM, Charles C. Berry wrote: > > ECM follows: I just ran it and got 10 chars like you expected: #+BEGIN_src R nchar("AB") #+END_src #+RESULTS: : 10 --- Emacs Version: src_emacs-lisp{emacs-version} {{{results("24.4.1")}}} Org Version from

Re: [O] [BUG] R src blocks untabify literal constant TABs

2015-09-22 Thread Charles C. Berry
On Tue, 22 Sep 2015, Grant Rettke wrote: On Tue, Sep 22, 2015 at 5:04 PM, Charles C. Berry wrote: ECM follows: I just ran it and got 10 chars like you expected: #+BEGIN_src R nchar("AB") #+END_src #+RESULTS: : 10 10 is not what I expected. Should be 3