[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [patch][babel] `org-babel-result-end' bug fix and regression tes

From: Eric Schulte
Subject: Re: [O] [patch][babel] `org-babel-result-end' bug fix and regression tests
Date: Fri, 06 Jan 2012 10:47:26 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Hi Martyn,

Unfortunately there is no way to remove raw results because there is no
way to know where the results end.  While your patch will certainly work
most of the time, it will not work in cases where the results includes
an empty line, and ultimately I think any attempt to remove raw results
will result in confusion.

If removable raw results are desired then the ":results wrap" option may
be used.  I believe this is mentioned in the manual (if not it should

I think this patch should not be applied (although maybe some of the
test cases could still be useful).


Martyn Jago <address@hidden> writes:

> `org-babel-result-end' bug fix and `org-babel-remove-result' regression tests.
> * lisp/ob.el:
> The code block below will currently act as though :results prepend 
> is set. This is due to `org-babel-result-end' being unable to
> find the correct end of a raw result. This patch fixes that.
> #+begin_src emacs-lisp :results raw
> "a line"
> #+end_src
> #+results:
> a line
> a line
> * testing/lisp/test-ob.el:
> Several regression tests that test the correct (multiple) execution of
> code blocks in the various results formats. The tests also test that
> 'org-babel-remove-result' correctly removes the result.
> Best, Martyn

Eric Schulte

reply via email to

[Prev in Thread] Current Thread [Next in Thread]