Browse Source

DONE empty parens () not recognised as lob call

Eric Schulte 16 years ago
parent
commit
2bfa420c6a
2 changed files with 6 additions and 4 deletions
  1. 1 1
      lisp/org-babel-lob.el
  2. 5 3
      org-babel.org

+ 1 - 1
lisp/org-babel-lob.el

@@ -63,7 +63,7 @@ add files to this list use the `org-babel-lob-ingest' command."
 
 ;; functions for executing lob one-liners
 
-(defvar org-babel-lob-one-liner-regexp "#\\+lob:[ \t]+\\([^\(\)\n]+\\)\(\\([^\n]+\\)\)[ \t]*\n")
+(defvar org-babel-lob-one-liner-regexp "#\\+lob:[ \t]+\\([^\(\)\n]+\\)\(\\([^\n]*\\)\)[ \t]*\n")
 
 (defun org-babel-lob-execute-maybe ()
   "Detect if this is context for a org-babel Library Of Babel

+ 5 - 3
org-babel.org

@@ -2436,16 +2436,18 @@ a+b
 : 30
 
 ****** DONE Rely on defaults
-#+lob: adder1( )
+#+lob: adder1()
 
-#+resname: adder1( )
+#+resname: adder1()
 : 30
 
 ## should be 30
 ## OK, but
-******* TODO empty parens () not recognised as lob call
+******* DONE empty parens () not recognised as lob call
 	E.g. remove spaces between parens above
 
+        updated [[file:lisp/org-babel-lob.el::defvar%20org%20babel%20lob%20one%20liner%20regexp%20lob%20t%20n%20n%20t%20n][org-babel-lob-one-liner-regexp]]
+
 ****** TODO One supplied, one default
 #+lob: adder1(a=0)