"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
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
"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
>>
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
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.
"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
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.
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
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
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
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
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
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
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 <-
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
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
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
17 matches
Mail list logo