;ELC ;;; Compiled ;;; in Emacs version 26.3 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313\314\315\316\317& \207" [require ob-core custom-declare-variable org-export-use-babel funcall function #[0 "\300\207" [t] 1] "Switch controlling code evaluation and header processing during export.\nWhen set to nil no code will be evaluated as part of the export\nprocess and no header arguments will be obeyed. Users who wish\nto avoid evaluating code on export should use the header argument\n`:eval never-export'." :group org-babel :version "24.1" :type (choice (const :tag "Never" nil) (const :tag "Always" t)) :safe null] 12) #@248 Evaluate BODY at the source of the Babel block at point. Source is located in `org-babel-exp-reference-buffer'. The value returned is the value of the last form in BODY. Assume that point is at the beginning of the Babel block. (fn &rest BODY) (defalias 'org-babel-exp--at-source '(macro . #[128 "\300\301\302\303\304\305BBEE\207" [let ((source (get-text-property (point) 'org-reference))) with-current-buffer (if source org-babel-exp-reference-buffer (current-buffer)) org-with-wide-buffer (when source (goto-char source))] 8 (#$ . 1008)])) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put org-babel-exp--at-source lisp-indent-function 1 put edebug-form-spec body] 5) #@480 Process source block for export. Depending on the ":export" header argument, replace the source code block like this: both ---- display the code and the results code ---- the default, display the code inside the block but do not process results - just like none only the block is run on export ensuring that its results are present in the Org mode buffer none ---- do not display either code or results upon export Assume point is at block opening line. (defalias 'org-babel-exp-src-block #[0 "\212\303 \211@\3048\305\204\306\307\310 #\210\205q\311\3048\236A\312\235\203l\313\314P!\315`\316\"r\211\2035 \2026pq\210\212\214~\210\211\203C\211b\210AA\211\317\320\321\n\322!\205UJ\323\324 !\fC\"$!\240\266+\266\325\326\"\262\327\330#\266\204)\207" [noninteractive org-babel-exp-reference-buffer org-babel-default-header-args org-babel-get-src-block-info 2 nil message "org-babel-exp process %s at position %d..." line-beginning-position :exports ("both" "results") intern "org-babel-default-header-args:" get-text-property org-reference org-babel-process-params apply org-babel-merge-params boundp append org-babel-params-from-properties org-babel-sha1-hash :export org-babel-exp-do-export block] 16 (#$ . 1706) nil]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable org-babel-exp-call-line-template funcall function #[0 "\300\207" [#1=""] 1 #1#] "Template used to export call lines.\nThis template may be customized to include the call line name\nwith any export markup. The template is filled out using\n`org-fill-template', and the following %keys may be used.\n\n line --- call line\n\nAn example value would be \"\\n: call: %line\" to export the call line\nwrapped in a verbatim environment.\n\nNote: the results are inserted separately after the contents of\nthis template." :group org-babel :type string] 8) #@45 Execute all Babel blocks in current buffer. (defalias 'org-babel-exp-process-buffer #[0 "\205\323\305 \306\307\310\311\312!\313\"\314$\216\315\316\317 \320\216\212eb\210\321\322\315#\2035\307\224\323\324 \325$\266\202eb\210\321\322\315#\205\315\326 \306\307\327\311\312!\330\"\331$\216\332 \206U\333 )\262\2048\334\225\326 \306\307\327\311\312!\335\"\331$\216\203t\336 \202v\337 )\262\340!\211\341>\203\207?\205\213\211\211\262\262\342\343\344\"!\342\212\343\345\"b\210\346\322x\210`)!\347=\203\366\350\322\"\3148A\211\351\236A\203\311\351\236A\352\230\203\311\353 \"\202\314A@\240\266b\210\354\355\"\211\356\232\203\352b\210\357\322w\210`|\210\202\361|\210\211c\210\266\202\277\360>\203J\354\361!\206 \362\363\343\364\"\"\365\"\210\366 \367\343\370\"BC\"\211\356\232\203<b\210\371=\2041\357\322w\210`\2027\346\322w\210\372 |\210\202Fb\210|\210\211c\210\210\202\277\373=\203\277\342\307\224!\374 b\210\375 \211\204eb\210\202\270\211\356\232\203|b\210\346\322w\210\376 \210`|\210\202\270b\210`\212b\210\324 )|\210\211c\210\f\204\230\343\377\"\203\260\212\346\322x\210\201@!\210b\210\201@!\210)\202\270\201A`#\210\210\322\211\223\266\322\211\223\210\211\322\211\223\266\2028,\266\202)\262\207" [org-export-use-babel org-babel-exp-reference-buffer case-fold-search org-babel-exp-call-line-template org-src-preserve-indentation current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 t "\\(call\\|src\\)_\\|^[ ]*#\\+\\(BEGIN_SRC\\|CALL:\\)" org-export-copy-buffer #[0 "\301!\210\302ed\303#\207" [org-babel-exp-reference-buffer kill-buffer remove-text-properties (org-reference nil)] 4] re-search-forward nil put-text-property line-end-position org-reference match-data "\301\300\302\"\207" [set-match-data evaporate] 3 org-in-commented-heading-p org-in-archived-heading-p 1 [set-match-data evaporate] org-element-context org-element-at-point org-element-type (src-block babel-call) copy-marker org-element-property :begin :end " \n" inline-src-block org-babel-get-src-block-info :noweb "yes" org-babel-expand-noweb-references org-babel-exp-do-export inline "" " " (inline-babel-call babel-call) org-babel-lob-get-info user-error "Unknown Babel reference: %s" :call lob org-fill-template "line" :value babel-call line-beginning-position src-block current-indentation org-babel-exp-src-block beginning-of-line :preserve-indent indent-line-to indent-rigidly] 15 (#$ . 3614) nil]) #@156 Return a string with the exported content of a code block. The function respects the value of the :exports header argument. (fn INFO TYPE &optional HASH) (defalias 'org-babel-exp-do-export #[770 "\300\301\302\3038\236A\206 \304\211\305\232\203%\"\210\"\210\306\202p\211\304\232\203B\"\210\"\210\307\"\202p\211\310\232\203V\311\312$\210\306\202p\211\313\232\203o\311\312$\210\307\"\202p\312\262\207" [#[514 "\300\3018\236A\211\302\232?\205\303\304#\207" [:session 2 "none" org-babel-exp-results silent] 7 "\n\n(fn INFO TYPE)"] #[514 "\211\300=\203 \301 \207\302!\207" [inline org-babel-remove-inline-result org-babel-remove-result] 4 "\n\n(fn INFO TYPE)"] :exports 2 "code" "none" "" org-babel-exp-code "results" org-babel-exp-results nil "both"] 11 (#$ . 6154)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\311\315\316\317\320& \207" [custom-declare-variable org-babel-exp-code-template funcall function #[0 "\300\207" [#1="#+BEGIN_SRC %lang%switches%flags\n%body\n#+END_SRC"] 1 #1#] "Template used to export the body of code blocks.\nThis template may be customized to include additional information\nsuch as the code block name, or the values of particular header\narguments. The template is filled out using `org-fill-template',\nand the following %keys may be used.\n\n lang ------ the language of the code block\n name ------ the name of the code block\n body ------ the body of the code block\n switches -- the switches associated to the code block\n flags ----- the flags passed to the code block\n\nIn addition to the keys mentioned above, every header argument\ndefined for the code block may be used as a key and will be\nreplaced with its value." :group org-babel :type string org-babel-exp-inline-code-template #[0 "\300\207" [#2="src_%lang[%switches%flags]{%body}"] 1 #2#] "Template used to export the body of inline code blocks.\nThis template may be customized to include additional information\nsuch as the code block name, or the values of particular header\narguments. The template is filled out using `org-fill-template',\nand the following %keys may be used.\n\n lang ------ the language of the code block\n name ------ the name of the code block\n body ------ the body of the code block\n switches -- the switches associated to the code block\n flags ----- the flags passed to the code block\n\nIn addition to the keys mentioned above, every header argument\ndefined for the code block may be used as a key and will be\nreplaced with its value." :version "26.1" :package-version (Org . "8.3")] 12) #@70 Return the original code block formatted for export. (fn INFO TYPE) (defalias 'org-babel-exp-code #[514 "A\211\303\3048\236A\305\230\203\306\307 \310A@#\202-\311\3048\312\"\203*\313\"\202-A@\240\266\314\315=\203; \202<\n\316@B\317A@\315=\203N\211\202Q\320!\262B\321\3228\323!\205b\324P\262B\325\326\304 8\236\211\205t\324AP\262B\327\330\331\304 8\"\332\333 8\206\210\310BC\"BBBB\"\207" [org-babel-exp-reference-buffer org-babel-exp-inline-code-template org-babel-exp-code-template :noweb 2 "strip-export" replace-regexp-in-string org-babel-noweb-wrap "" org-babel-noweb-p :export org-babel-expand-noweb-references org-fill-template inline "lang" "body" org-escape-code-in-string "switches" 3 org-string-nw-p " " "flags" :flags append mapcar #[257 "\300@!\301\302O\303\304A\"B\207" [symbol-name 1 nil format "%S"] 5 "\n\n(fn PAIR)"] "name" 4] 13 (#$ . 8796)]) #@351 Evaluate and return the results of the current code block for export. Results are prepared in a manner suitable for export by Org mode. This function is called by `org-babel-exp-do-export'. The code block will be evaluated. Optional argument SILENT can be used to inhibit insertion of results into the buffer. (fn INFO TYPE &optional SILENT HASH) (defalias 'org-babel-exp-results #[1026 "\211\205\211\302 \232?\205\256@\303\3048\305\"\203\306\"\202\"A@\307!\310 \311\312\313P!!\205\253\314 \210\211A\211\240\266\211AA\211\315`\316\"r\211\203N\202Opq\210\212\214~\210\211\203\\\211b\210\317\320\3048\321 \203l\322\202m\323BC\"!+\262\240\266\324=\203\204\325\326\"\202\253\327=\203\226\3308b\210\325\326\"\202\253\331=\203\252\212\3308b\210\325\326\")\202\253\326)\266\203\207" [org-babel-exp-reference-buffer org-babel-current-src-block-location org-babel-current-result-hash org-babel-noweb-p 2 :eval org-babel-expand-noweb-references copy-sequence point-marker fboundp intern "org-babel-execute:" org-babel-eval-wipe-error-buffer get-text-property org-reference org-babel-process-params org-babel-merge-params :results "silent" "replace" block org-babel-execute-src-block nil inline 5 lob] 15 (#$ . 9702)]) (provide 'ob-exp)