org-mode/lisp
Ihor Radchenko 3bbbf77f36
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'.
2022-06-16 13:21:39 +08:00
..
Makefile Move link-related core functions out of "org.el" 2019-03-10 18:00:27 +01:00
ob-C.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-R.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-awk.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-calc.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-clojure.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-comint.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-core.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ob-css.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-ditaa.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-dot.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-emacs-lisp.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-eshell.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-eval.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-exp.el org-babel-exp-process-buffer: Improve performance 2022-06-16 13:21:39 +08:00
ob-forth.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-fortran.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-gnuplot.el ob-gnuplot.el: Honour `default-directory' 2022-04-21 20:00:22 +08:00
ob-groovy.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-haskell.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-java.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-js.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-julia.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-latex.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ob-lilypond.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
ob-lisp.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-lob.el Fix signature for org-element-at-point 2022-01-12 22:26:10 +08:00
ob-lua.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-makefile.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-matlab.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-maxima.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-ocaml.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-octave.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-org.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-perl.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-plantuml.el ob-plantuml: Allow setting PlantUML args for jar file 2022-05-08 14:44:58 +08:00
ob-processing.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-python.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-ref.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
ob-ruby.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-sass.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-scheme.el lisp/ob-scheme.el: Use synchronous eval. 2022-05-08 17:59:59 +08:00
ob-screen.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-sed.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-shell.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
ob-sql.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-sqlite.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ob-table.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ob-tangle.el org-babel-tangle: Do not overwrite when contents does not change 2022-05-30 11:02:07 +08:00
ob.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
oc-basic.el Merge branch 'bugfix' 2022-04-16 18:05:16 +08:00
oc-biblatex.el Merge branch 'bugfix' 2022-03-23 23:38:50 +01:00
oc-bibtex.el Update main-only copyright years 2022-01-01 15:25:06 -05:00
oc-csl.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
oc-natbib.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
oc.el org-cite-list-citations: Cache footnote-definition searches 2022-06-16 10:43:29 +08:00
ol-bbdb.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-bibtex.el Merge branch 'bugfix' 2022-02-05 19:19:49 +08:00
ol-docview.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-doi.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-eshell.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-eww.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ol-gnus.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-info.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-irc.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-man.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-mhe.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-rmail.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol-w3m.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ol.el lisp/ol.el: Fix shadowed radio targets 2022-06-09 16:22:44 +08:00
org-agenda.el org-compile-prefix-format: Document argument 2022-05-03 11:38:10 +08:00
org-archive.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-attach-git.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
org-attach.el ob-core.el/babel: Special handling for attachment links in src block 2022-06-14 21:44:25 +08:00
org-capture.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-clock.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-colview.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-compat.el ox-latex: Replace `org-latex-listings' 2022-05-13 00:43:17 +08:00
org-crypt.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-ctags.el Replace all uses of the old `defadvice` with the new `advice-add` 2022-04-01 07:50:01 +02:00
org-cycle.el org-cycle-hide-block-startup: Fix docstring 2022-05-27 15:11:17 +08:00
org-datetree.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
org-duration.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-element.el org-element-map: Avoid repetitive `plist-get' call 2022-06-16 09:28:27 +08:00
org-entities.el org-entities: Change \minus to - 2022-05-04 23:49:48 +08:00
org-faces.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-feed.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-fold-core.el Don't quote symbols in defcustom types 2022-06-14 16:05:17 +03:00
org-fold.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
org-footnote.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-goto.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-habit.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
org-id.el Fix macro indentation and re-indent code misindented by nameless 2022-05-14 16:58:35 +08:00
org-indent.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
org-inlinetask.el org-inlinetask.el: Fix visibility cycling for inlinetasks 2022-04-30 16:54:15 +08:00
org-install.el Use lexical-binding cookie in some trivial files 2021-01-24 22:36:30 -05:00
org-keys.el Rename remaining org-force-cycle-archived → org-cycle-force-archived 2022-04-25 19:40:06 +08:00
org-lint.el org-lint: don't complain about #+include URL 2022-06-12 18:02:25 +08:00
org-list.el Use `set-default-toplevel-value' in `defcustom' setters 2022-06-14 21:54:45 +08:00
org-macro.el Fix function declarations 2022-06-16 12:35:52 +08:00
org-macs.el Do not mark buffer as modified with org-preserve-local-variables 2022-06-14 22:02:10 +08:00
org-mobile.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-mouse.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org-num.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
org-pcomplete.el Fix signature for org-element-at-point 2022-01-12 22:26:10 +08:00
org-persist.el Don't quote symbols in defcustom types 2022-06-14 16:05:17 +03:00
org-plot.el org-plot: Run `org-plot/gnuplot-script' in org buf 2022-06-01 23:48:25 +08:00
org-protocol.el Replace all uses of the old `defadvice` with the new `advice-add` 2022-04-01 07:50:01 +02:00
org-refile.el org-refile: Restore previous behaviour of not revealing the refiled headline 2022-04-26 17:46:37 +08:00
org-src.el org-src-font-lock-fontify-block: Do not transfer non-existing properties 2022-05-28 09:35:32 +08:00
org-table.el orgtbl-toggle-comment: Fix when table is at `point-min' or `point-max' 2022-05-09 21:31:54 +08:00
org-tempo.el Replace all uses of the old `defadvice` with the new `advice-add` 2022-04-01 07:50:01 +02:00
org-timer.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
org.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-ascii.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-beamer.el ox-latex: Replace `org-latex-listings' 2022-05-13 00:43:17 +08:00
ox-html.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-icalendar.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-koma-letter.el ox-koma-letter: Collapse space in copyright line 2022-01-01 17:47:00 -05:00
ox-latex.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-man.el Update copyright year to 2022 2022-01-01 15:17:08 -05:00
ox-md.el Merge branch 'bugfix' 2022-01-01 15:21:37 -05:00
ox-odt.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-org.el Rename old function call to use org-fold 2022-04-25 19:39:53 +08:00
ox-publish.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00
ox-texinfo.el ox-texinfo: Allow enabling compact syntax for @itemx per file 2022-02-09 00:38:23 +01:00
ox.el Fix native-comp warnings 2022-06-16 13:19:10 +08:00