Re: [O] Library of Babel confusion

2018-04-11 Thread Thomas S. Dye
Aloha Lawrence, Lawrence Bottorff writes: I'll try that, Thomas, but this was set up by simply doing the on-board customize, i.e., it needs to have this corrected. So how do I request this correction? There are instructions here: https://orgmode.org/org.html#Feedback You'll need to indica

Re: [O] Library of Babel confusion

2018-04-11 Thread Thomas S. Dye
Aloha Lawrence, You probably want (org-babel-lob-ingest &optional FILE) All the best, Tom Lawrence Bottorff writes: Thanks for the help. However, one mystery still remains: Why is this '(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) in my init.el's custom-set-variabl

Re: [O] Library of Babel confusion

2018-04-11 Thread Berry, Charles
> On Apr 11, 2018, at 6:29 AM, Lawrence Bottorff wrote: > > I'll try that, Thomas, but this was set up by simply doing the on-board > customize, i.e., it needs to have this corrected. So how do I request this > correction? The idiom Tom gave you is correct. There are no variables for you to

Re: [O] Library of Babel confusion

2018-04-11 Thread Lawrence Bottorff
I'll try that, Thomas, but this was set up by simply doing the on-board customize, i.e., it needs to have this corrected. So how do I request this correction? On Tue, Apr 10, 2018 at 3:26 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > You probably want (org-babel-lob-ingest &optional FILE) > > A

Re: [O] Library of Babel confusion

2018-04-10 Thread Lawrence Bottorff
Thanks for the help. However, one mystery still remains: Why is this '(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) in my init.el's custom-set-variables not getting handled? I always have to do an org-babel-lob-ingest to actually get library-of-babel.org loaded. On Fri, Apr

Re: [O] Library of Babel confusion

2018-04-06 Thread Berry, Charles
> On Apr 6, 2018, at 4:59 PM, Thomas S. Dye wrote: > [Tom's response covering the main issues deleted] > hth, > Tom > > Lawrence Bottorff writes: > >> I guess I need more information. For example, what is C-c C-v v doing >> exactly? Then C-x C-e? And M-x (symbol-function 'myelsquare) doesn

Re: [O] Library of Babel confusion

2018-04-06 Thread Thomas S. Dye
Aloha Lawrence, #+name: myelsquare #+header: :var x=0 #+begin_src emacs-lisp :var x=0 (defun myelsquare (x) (* x x)) #+end_src #+RESULTS: myelsquare : myelsquare Assuming myelsquare has been evaluated: #+name: eval-myelsquare #+header: :var y=2 #+BEGIN_SRC emacs-lisp (myelsquare y) #+END_S

Re: [O] Library of Babel confusion

2018-04-06 Thread Lawrence Bottorff
I guess I need more information. For example, what is C-c C-v v doing exactly? Then C-x C-e? And M-x (symbol-function 'myelsquare) doesn't work. Again, #+name: myelsquare #+header: :var x=0 #+begin_src emacs-lisp :var x=0 (defun myelsquare (x) (* x x)) #+end_src is Lisp code where the last

Re: [O] Library of Babel confusion

2018-04-04 Thread Lawrence Bottorff
The docs have this example: #+name: square #+header: :var x=0 #+begin_src python return x*x #+end_src #+call: square(x=6) ...so yes, "return", but with (defun myelsquare (x) (* x x)) isn't the final thing evaluated what is "returned" w

Re: [O] Library of Babel confusion

2018-04-04 Thread Nicolas Goaziou
Lawrence Bottorff writes: > I've been trying to grok LOB again. So I've cloned the worg git and > library-of-babel.el is one of the files. org-babel-lob-injest didn't > work, What doesn't work? You call `org-babel-lob-ingest', specify a file, and it stores all source code blocks in the file for

Re: [O] Library of Babel confusion

2018-04-03 Thread Berry, Charles
> On Apr 3, 2018, at 1:31 PM, Lawrence Bottorff wrote: > > I've been trying to grok LOB again. So I've cloned the worg git and > library-of-babel.el is one of the files. org-babel-lob-injest didn't work, Try M-x org-babel-lob-ingest RET org/worg/library-of-babel.org RET Don't be a jester,

Re: [O] library of babel ingest interferes with noweb

2017-09-16 Thread edgar
On 2017-09-14 21:26, Nicolas Goaziou wrote: I have #+BEGIN_EXAMPLE <> #+END_EXAMPLE However, it seems wrong to have #+BEGIN_EXAMPLE a=2 #+END_EXAMPLE because you no longer know what part you are editing. Ooops, I should have said that I did C-c C-v v (org-babel-expand-src-blo

Re: [O] Library of Babel

2017-09-15 Thread Charles Millar
On 09/15/17 19:15, Kyle Meyer wrote: Charles Millar writes: On 09/14/17 09:47, Nicolas Goaziou wrote: Hello, Charles Millar writes: First. Should Sections 14.5 and 14.6 of the manual need revision since lob has been moved to Worg? Or at least a reference to Worg site be inserted. Indee

Re: [O] Library of Babel

2017-09-15 Thread Kyle Meyer
Charles Millar writes: > On 09/14/17 09:47, Nicolas Goaziou wrote: >> Hello, >> >> Charles Millar writes: >> >>> First. Should Sections 14.5 and 14.6 of the manual need revision since >>> lob has been moved to Worg? Or at least a reference to Worg site be >>> inserted. >> Indeed. Would you want

Re: [O] Library of Babel

2017-09-15 Thread Charles Millar
On 09/14/17 09:47, Nicolas Goaziou wrote: Hello, Charles Millar writes: First. Should Sections 14.5 and 14.6 of the manual need revision since lob has been moved to Worg? Or at least a reference to Worg site be inserted. Indeed. Would you want to provide a patch for that? Thank you for th

Re: [O] library of babel ingest interferes with noweb

2017-09-14 Thread Nicolas Goaziou
Hello, ed...@openmail.cc writes: > Hello, > > It seems that when I have two blocks of code with noweb, and then I do > a babel ingest, I don't get my original result (see attached file). > [...] > * This works > #+NAME: test1 > #+BEGIN_SRC bash > a=2 > #+END_SRC > > #+NAME: test2 > #+BEGIN_SR

Re: [O] Library of Babel

2017-09-14 Thread Nicolas Goaziou
Hello, Charles Millar writes: > First. Should Sections 14.5 and 14.6 of the manual need revision since > lob has been moved to Worg? Or at least a reference to Worg site be > inserted. Indeed. Would you want to provide a patch for that? > Second: Am I correct that ob-lob.el has not been remove

Re: [O] library-of-babel location

2015-08-04 Thread Bastien Guerry
Hi Charles, Charles Millar writes: > From the org manual > > 14.6 Library of Babel > * * * * > The central repository of code blocks in the “Library of Babel” is > housed in an Org mode > file located in the ‘contrib’ directory of Org mode. > > However (at least in my case, Org-mode version

Re: [O] library of babel call blocks not invoked on buffer/subtree execute

2011-11-09 Thread Eric Schulte
"Frankel, Rick (CA-CIB)" writes: > There is a bug (?) with #+call block: They are not executed on export/ > invocation of org-babel-execute buffer. > > There are a couple of reasons for this: > >1. org-babel-src-block-regexp, used in org-babel-map-src-blocks > does not match #+call. >

Re: [O] Library of Babel function

2011-08-28 Thread Eric Schulte
Hi Tom, This sounds great, would you mind submitting this as a patch to the library-of-babel.org file in the git repository, with some included usage instructions in the same subtree as the code block? Thanks! -- Eric t...@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > The booktabs-notes func