[O] Fwd: minor ob-sed.el patch for org-mode

2018-04-04 Thread Bjarte Johansen
Hello, This is a minor patch suggested by Brad Knotwell so that ob-sed can support BSD sed and not only GNU sed. Regards, Bjarte 0002-ob-sed-Use-f-instead-of-file-to-support-BSD-sed.patch Description: Binary data

Re: [O] Make ob-shell conform to the org-babel interface

2015-06-03 Thread Bjarte Johansen
Sorry for the delay. Is this better? 0001-ob-shell-Conform-to-variable-assignment-interface.patch Description: Binary data > On 01 Jun 2015, at 19:18, Nicolas Goaziou wrote: > > Hello, > > Bjarte Johansen writes: > >> I found that ob-shell’s org-babel-variable-a

Re: [O] ob-sed

2015-05-30 Thread Bjarte Johansen
> On 30 May 2015, at 14:32, Nicolas Goaziou wrote: > > Bjarte Johansen writes: > >> I think I have addressed all of your comments except I didn’t >> understand the comment about the spaces. Are there two spaces extra or >> do you want me to introduce two spaces

Re: [O] ob-sed

2015-05-29 Thread Bjarte Johansen
: Binary data > On 29 May 2015, at 11:00, Nicolas Goaziou wrote: > > Bjarte Johansen writes: > >> I think I have addressed all your comments in the attached patch. > > Thank you. Some more comments follow. > >> Subject: [PATCH] Org Babel now support

Re: [O] ob-sed

2015-05-28 Thread Bjarte Johansen
I think I have addressed all your comments in the attached patch. Regards, Bjarte 0001-Org-Babel-now-supports-sed-scripts.patch Description: Binary data

[O] Make ob-shell conform to the org-babel interface

2015-05-27 Thread Bjarte Johansen
Hi, I found that ob-shell’s org-babel-variable-assignments:bash function does not respect the interface for org-babel. It takes multiple arguments when it should only take 1. This is a problem when f.ex. org-babel-sha1-hash tries to expand the body of a bash source block and tries to call that

Re: [O] ob-sed

2015-05-27 Thread Bjarte Johansen
I had loosely based it on my own ob-sparql and ob-awk, I saw that there was a remnant of ob-sparql left in there. Here is an updated version. ob-sed.el Description: Binary data

[O] ob-sed

2015-05-27 Thread Bjarte Johansen
Hi, I originally wrote this for Eric Schulte’s sed-mode, but he thought I should post it here instead. I have been using it for little over a week and it has been working perfectly for me. If there is anything that you think should be added or removed before it is accepted into org-mode please

[O] Stop conversion of result on serialising to file

2015-05-26 Thread Bjarte Johansen
When running a source block and storing the result in a file the data will first be converted to a table in org-babel-result-cond and then converted back to text when org-babel-execute-src-block writes it to file. This is takes a very long time when the result is big and it is unnecessary. I hav

[O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-24 Thread Bjarte Johansen
Fix a problem where a source block would return nil oif the result was cached and it was indented. * lisp/ob-core.el (org-babel-execute-src-block): Move point to the the first character of the result instead of the beginning of the line. * testing/lisp/test-ob.el (test-org-babel/indented-cached

Re: [O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-24 Thread Bjarte Johansen
> On 24 May 2015, at 11:53, Bjarte Johansen wrote: > > >> On 24 May 2015, at 11:49, Bjarte Johansen wrote: >> >> >>> On 23 May 2015, at 21:50, Nicolas Goaziou wrote: >>> >>> Bjarte Johansen writes: >>> >>>

Re: [O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-24 Thread Bjarte Johansen
> On 24 May 2015, at 11:49, Bjarte Johansen wrote: > > >> On 23 May 2015, at 21:50, Nicolas Goaziou wrote: >> >> Bjarte Johansen writes: >> >>> Fix a problem where a source block would return nil oif the result was >>> cached and it was in

Re: [O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-24 Thread Bjarte Johansen
> On 23 May 2015, at 21:50, Nicolas Goaziou wrote: > > Bjarte Johansen writes: > >> Fix a problem where a source block would return nil oif the result was >> cached and it was indented. > > Thank you. > > However, the test you provide fails. I suggest

[O] Using buffers instead of string when processing and passing org-babel results

2015-05-22 Thread Bjarte Johansen
Hi, I have been wondering: Is there a reason org-babel passes around results as strings instead of buffers? I understand there will be more to keep track of and right now there is a great chance of breaking code (org-modes code and other people who depend on the current behaviour). However, I

[O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-21 Thread Bjarte Johansen
Fix a problem where a source block would return nil oif the result was cached and it was indented. * lisp/ob-core.el (org-babel-execute-src-block): Move point to the the first character of the result instead of the beginning of the line. * testing/lisp/test-ob.el (test-org-babel/indented-cach

Re: [O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-21 Thread Bjarte Johansen
Thank you for your comments. > You need to add TINYCHANGE at the end of the commit message if you > haven't signed FSF papers yet. I have already signed the FSF papers when I sent some changes to a different Emacs project. I will shortly send a new patch with the proposed changes. Regards, Bja

[O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-20 Thread Bjarte Johansen
Fix a problem where a source block would return nil if the result was cached and it was indented. * lisp/ob-core.el (org-babel-execute-src-block): Move point to the the first character of the result instead of the beginning of the line. * testing/lisp/test-ob.el (test-org-babel/indented-cache

Re: [O] org-babel for prolog

2015-05-17 Thread Bjarte Johansen
> On 16 May 2015, at 15:31, Lawrence Bottorff wrote: > > No worries. I can wait. Thanks again for your efforts. I had some spare time today that I didn’t expect. I believe I have fixed the bug. Kind regards, Bjarte

Re: [O] org-babel for prolog

2015-05-14 Thread Bjarte Johansen
> On 14 May 2015, at 20:22, Puneeth Chaganti wrote: > > On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff wrote: >> >> Confused by the requirement: >> >> ;; To activate ob-prolog add the following to your init.el file: >> ;; >> ;; (eval-after-load 'org >> ;;'(require 'org-prolog)) > >

Re: [O] org-babel for prolog

2015-01-02 Thread Bjarte Johansen
ave to implement the variable stuff and expansion of the body (or I can perhaps just use the generic function). > 19. des. 2014 kl. 16.25 skrev Bjarte Johansen > : > > I just wanted to report that it is now possible to evaluate prolog code and > it should return the correct result.

Re: [O] org-babel for prolog

2014-12-19 Thread Bjarte Johansen
rev Bjarte Johansen > : > > Hi, > > I have started to implement org-babel support for (swi-)prolog. I have gotten > to the point where I can execute a goal in an external process and have the > result show up in the org file. I am now working on getting the session to >

[O] org-babel for prolog

2014-12-10 Thread Bjarte Johansen
Hi, I have started to implement org-babel support for (swi-)prolog. I have gotten to the point where I can execute a goal in an external process and have the result show up in the org file. I am now working on getting the session to work correctly. It runs and prints, but it doesn’t do the corr

[O] org-table not wrapped in table

2012-08-01 Thread Bjarte Johansen
> On 31 Jul, 2012, at 22:55 , t...@tsdye.com (Thomas S. Dye) wrote: > >> Aloha Bjarte, >> >> Did you add a #+CAPTION: and #+LABEL: to your table? I know what I did wrong. I put caption and label underneath the table instead of above. Thanks for the help. Sorry to have bothered you. -- Bjarte

[O] org-table not wrapped in table

2012-07-31 Thread Bjarte Johansen
Is there a reason the org-table does not get wrapped in a \begin{table}[ht] in latex and only tabular? For scientific papers it is usually nice to be able to add label and caption to the table in the same way images/figures have. Right now I just wrapped it in #+BEGIN_table myself and added \c

Re: [O] More flyspell-overlays removed

2012-07-31 Thread Bjarte Johansen
On 31 Jul, 2012, at 17:32 , Bastien wrote: > Bjarte Johansen writes: > >> On 30 Jul, 2012, at 13:03 , Bastien wrote: >> >>> I've pushed a fix which should let flyspell ignore more commonly >>> used Org keywords. Please test it. >> >&g

Re: [O] More flyspell-overlays removed

2012-07-30 Thread Bjarte Johansen
On 30 Jul, 2012, at 13:03 , Bastien wrote: > I've pushed a fix which should let flyspell ignore more commonly > used Org keywords. Please test it. This works great. You forgot #+LATEX_CLASS_OPTIONS: though. On 30 Jul, 2012, at 13:13 , Jeffrey Spencer wrote: > Will give it a test later in

Re: [O] More flyspell-overlays removed

2012-07-29 Thread Bjarte Johansen
On 29 Jul, 2012, at 10:35 , Jeffrey Spencer wrote: > I was also thinking about this recently but hadn't gotten as far as writing a > patch. > > I was thinking some tags you know you want to remove the fly-spell overlays > but for example caption you might or might not want the flyspell overla

Re: [O] More flyspell-overlays removed

2012-07-28 Thread Bjarte Johansen
On 28 Jul, 2012, at 11:27 , Bastien wrote: > I cannot apply it because it adds keywords at the wrong place. > For example you cannot add "startup:" in the first (cond ((...))) > because "startup:" is not a "backend specific content." And some > other discrepencies. OK, I understand. I should

[O] More flyspell-overlays removed

2012-07-20 Thread Bjarte Johansen
Hi - I made a patch to remove some more flyspell-overlays in #-blocks. The reason for no : in the latex_header is that for some reason the : does not get captured in dc1. flyspell is also removed for the full verbatim, lstlisting and src blocks. I hope you guys can use the patch. Regards, Bja