-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org-babel-exp-process-buffer: Improve performance
* lisp/ob-exp.el (org-babel-exp-src-block): New optional argument providing ELEMENT at point. (org-babel-exp-code-template): Use lower-case #+begin/#+end lines to avoid triggering source code block changes when the blocks are exported with :exports code and also contain lower-case #+begin/#+end. We prefer lower-case default because other parts of Org, like `org-insert-structure-template' default to lower-case as well. (org-babel-exp-process-buffer): Do no disable cache as changes are not expected to be as frequent anymore. Pass pre-calculated element at point to inner function calls to `org-in-commented-heading-p', `org-in-archived-heading-p', `org-element-context', and `org-babel-exp-src-block'. Do not force-replace source block contents when no change is required. * testing/lisp/test-ob-exp.el (ob-export/export-with-results-before-block): (ob-export/body-with-coderef): (ob-exp/src-block-with-affiliated-keyword): Update tests according to the new `org-babel-exp-code-template'.
- Loading branch information
Showing
2 changed files
with
170 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters