ob: Optimize `org-babel-lob-get-info'
commit5f94f49db063784f2ee9079e8d5c91a685412c60
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 28 Jan 2016 10:18:50 +0000 (28 11:18 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 10 Feb 2016 14:40:10 +0000 (10 15:40 +0100)
tree2a2d147b7d80fbb5674754b267343da8647a81d8
parent44e45d528498a05156ed0c10be297b984d4fbd2f
ob: Optimize `org-babel-lob-get-info'

* lisp/ob-core.el (org-babel-goto-named-src-block): Use parser instead
  of `org-babel-lob-one-liner-regexp'.
* lisp/ob-lob.el (org-babel-lob-execute-maybe): Ignore spurious check,
  now handled by the parser.
(org-babel-lob-get-info): Fully use parser.  Accept a new optional
argument to avoid parsing the same location twice.

* lisp/ob-exp.el (org-babel-exp-process-buffer):
* lisp/ob-ref.el (org-babel-ref-resolve): Optimize call to
  `org-babel-lob-get-info'.
lisp/ob-core.el
lisp/ob-exp.el
lisp/ob-lob.el
lisp/ob-ref.el