;ELC
|
;;; Compiled
|
;;; in Emacs version 26.1
|
;;; 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\300\302!\210\300\303!\210\300\304!\207" [require cl-lib ob-eval org-macs org-compat] 2)
|
(defconst org-babel-exeext (byte-code "\301>\205 \302\207" [system-type (windows-nt cygwin) ".exe"] 2))
|
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\306\301\316\317\320\321& \210\322\311\323\324#\210\310\325\312\313\326DD\327\306\301\316\317\320\330& \210\310\331\312\313\332DD\333\306\301\316\334\335\336\320\337\340\341& \210\310\342\312\313\343DD\344\306\301\320\337&\210\310\345\312\313\346DD\347\306\301\320\337&\210\310\350\312\313\351DD\352\306\301\320\337&\210\322\350\323\353#\210\310\354\312\313\355DD\356\306\301\320\330\316\357\335\360\340\361& \210\310\362\312\313\363DD\364\306\301\320\330\316\357\335\365\340\361& \207" [custom-declare-group org-babel nil "Code block evaluation and management in `org-mode' documents." :tag "Babel" :group org custom-declare-variable org-confirm-babel-evaluate funcall function #[0 "\300\207" [t] 1] "Confirm before evaluation.\n\\<org-mode-map>Require confirmation before interactively evaluating code\nblocks in Org buffers. The default value of this variable is t,\nmeaning confirmation is required for any code block evaluation.\nThis variable can be set to nil to inhibit any future\nconfirmation requests. This variable can also be set to a\nfunction which takes two arguments the language of the code block\nand the body of the code block. Such a function should then\nreturn a non-nil value if the user should be prompted for\nexecution or nil if no prompt is required.\n\nWarning: Disabling confirmation may result in accidental\nevaluation of potentially harmful code. It may be advisable\nremove code block execution from `\\[org-ctrl-c-ctrl-c]' as further protection\nagainst accidental code block evaluation. The\n`org-babel-no-eval-on-ctrl-c-ctrl-c' variable can be used to\nremove code block execution from the `\\[org-ctrl-c-ctrl-c]' keybinding." :version "24.1" :type (choice boolean function) put safe-local-variable #[257 "\211\300=\207" [t] 3 "\n\n(fn X)"] org-babel-no-eval-on-ctrl-c-ctrl-c #[0 "\300\207" [nil] 1] "\\<org-mode-map>Remove code block evaluation from the `\\[org-ctrl-c-ctrl-c]' key binding." boolean org-babel-results-keyword #[0 "\300\207" [#1="RESULTS"] 1 #1#] "Keyword used to name results generated by code blocks.\nIt should be \"RESULTS\". However any capitalization may be\nused." "24.4" :package-version (Org . "8.0") string :safe #[257 "\211;\205 \300\301\302\211\302\211\303&\303=\207" [compare-strings "RESULTS" nil t] 9 "\n\n(fn V)"] org-babel-noweb-wrap-start #[0 "\300\207" [#2="<<"] 1 #2#] "String used to begin a noweb reference in a code block.\nSee also `org-babel-noweb-wrap-end'." org-babel-noweb-wrap-end #[0 "\300\207" [#3=">>"] 1 #3#] "String used to end a noweb reference in a code block.\nSee also `org-babel-noweb-wrap-start'." org-babel-inline-result-wrap #[0 "\300\207" [#4="=%s="] 1 #4#] "Format string used to wrap inline results.\nThis string must include a \"%s\" which will be replaced by the results." #[257 "\211;\205 \301\302\303\304#)\266\203\207" [inhibit-changing-match-data "%s" nil t string-match] 8 "\n\n(fn VALUE)"] org-babel-hash-show-time #[0 "\300\207" [nil] 1] "Non-nil means show the time the code block was evaluated in the result hash." "26.1" (Org . "9.0") booleanp org-babel-uppercase-example-markers #[0 "\300\207" [nil] 1] "When non-nil, begin/end example markers will be inserted in upper case." (Org . "9.1")] 14)
|
#@25
|
|
(fn &optional REGEXP)
|
(defalias 'org-babel-noweb-wrap #[256 "\206 \302 Q\207" [org-babel-noweb-wrap-start org-babel-noweb-wrap-end "\\([^ \n].+?[^ ]\\|[^ \n]\\)"] 4 (#$ . 3930)])
|
#@54 Regular expression used to match a source name line.
|
(defvar org-babel-src-name-regexp "^[ ]*#\\+name:[ ]*" (#$ . 4123))
|
#@63 Regular expression used to match multi-line header arguments.
|
(defvar org-babel-multi-line-header-regexp "^[ ]*#\\+headers?:[ ]*\\([^\n]*\\)$" (#$ . 4252))
|
#@38 Regexp used to identify code blocks.
|
(defvar org-babel-src-block-regexp "^\\([ ]*\\)#\\+begin_src[ ]+\\([^ \f \n ]+\\)[ ]*\\([^\":\n]*\"[^\"\n*]*\"[^\":\n]*\\|[^\":\n]*\\)\\([^\n]*\\)\n\\([^ ]*?\n\\)??[ ]*#\\+end_src" (#$ . 4416))
|
#@227 Return the babel variable assignments in PARAMS.
|
|
PARAMS is a quasi-alist of header args, which may contain
|
multiple entries for the key `:var'. This function returns a
|
list of the cdr of all the `:var' entries.
|
|
(fn PARAMS)
|
(defalias 'org-babel--get-vars #[257 "\300\301\302\303\"\"\207" [mapcar cdr cl-remove-if-not #[257 "\211@\300=\207" [:var] 3 "\n\n(fn X)"]] 6 (#$ . 4659)])
|
#@169 Buffer containing original contents of the exported buffer.
|
This is used by Babel to resolve references in source blocks.
|
Its value is dynamically bound during export.
|
(defvar org-babel-exp-reference-buffer nil (#$ . 5049))
|
#@219 Check whether INFO allows code block evaluation.
|
|
Returns nil if evaluation is disallowed, t if it is
|
unconditionally allowed, and the symbol `query' if the user
|
should be asked whether to allow evaluation.
|
|
(fn INFO)
|
(defalias 'org-babel-check-confirm-evaluate #[257 "\3028\303\236A\206 \304\236\205 \305\211\306\235\211\205 \307\235\206! \211\310\232\206D \2031 \311\232\206D \312 !\203C @A@\"\202D \203L \313\202U \211\203T \314\202U \315\207" [org-babel-exp-reference-buffer org-confirm-babel-evaluate 2 :eval :noeval "no" ("no" "never") ("no-export" "never-export") "query" "query-export" functionp nil query t] 10 (#$ . 5280)])
|
#@192 Check if code block INFO should be evaluated.
|
Do not query the user, but do display an informative message if
|
evaluation is blocked. Returns non-nil if evaluation is not blocked.
|
|
(fn INFO)
|
(defalias 'org-babel-check-evaluate #[257 "\300!\211\204 \301\302@\3038\211\203 \304\305\"\202 \306\262#\210\211\207" [org-babel-check-confirm-evaluate message "Evaluation of this %s code block%sis disabled." 4 format " (%s) " " "] 9 (#$ . 5940)])
|
#@518 Confirm evaluation of the code block INFO.
|
|
This query can also be suppressed by setting the value of
|
`org-confirm-babel-evaluate' to nil, in which case all future
|
interactive code block evaluations will proceed without any
|
confirmation from the user.
|
|
Note disabling confirmation may result in accidental evaluation
|
of potentially harmful code.
|
|
The variable `org-babel-confirm-evaluate-answer-no' is used by
|
the async export process, which requires a non-interactive
|
environment, to override this check.
|
|
(fn INFO)
|
(defalias 'org-babel-confirm-evaluate #[257 "\301!@\3028\211\203 \303\304\"\202 \305\204 \306\202Q \307=\203& |