commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\207" [require cl-lib ob-eval org-macs org-compat] 2) |
|
16 |
(defconst org-babel-exeext (byte-code "\301>\205 \302\207" [system-type (windows-nt cygwin) ".exe"] 2)) |
|
17 |
(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) |
|
18 |
#@25 |
|
19 |
|
|
20 |
(fn &optional REGEXP) |
|
21 |
(defalias 'org-babel-noweb-wrap #[256 "\206 \302 Q\207" [org-babel-noweb-wrap-start org-babel-noweb-wrap-end "\\([^ \n].+?[^ ]\\|[^ \n]\\)"] 4 (#$ . 3930)]) |
|
22 |
#@54 Regular expression used to match a source name line. |
|
23 |
(defvar org-babel-src-name-regexp "^[ ]*#\\+name:[ ]*" (#$ . 4123)) |
|
24 |
#@63 Regular expression used to match multi-line header arguments. |
|
25 |
(defvar org-babel-multi-line-header-regexp "^[ ]*#\\+headers?:[ ]*\\([^\n]*\\)$" (#$ . 4252)) |
|
26 |
#@38 Regexp used to identify code blocks. |
|
27 |
(defvar org-babel-src-block-regexp "^\\([ ]*\\)#\\+begin_src[ ]+\\([^ \f \n
]+\\)[ ]*\\([^\":\n]*\"[^\"\n*]*\"[^\":\n]*\\|[^\":\n]*\\)\\([^\n]*\\)\n\\([^ ]*?\n\\)??[ ]*#\\+end_src" (#$ . 4416)) |
|
28 |
#@227 Return the babel variable assignments in PARAMS. |
|
29 |
|
|
30 |
PARAMS is a quasi-alist of header args, which may contain |
|
31 |
multiple entries for the key `:var'. This function returns a |
|
32 |
list of the cdr of all the `:var' entries. |
|
33 |
|
|
34 |
(fn PARAMS) |
|
35 |
(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)]) |
|
36 |
#@169 Buffer containing original contents of the exported buffer. |
|
37 |
This is used by Babel to resolve references in source blocks. |
|
38 |
Its value is dynamically bound during export. |
|
39 |
(defvar org-babel-exp-reference-buffer nil (#$ . 5049)) |
|
40 |
#@219 Check whether INFO allows code block evaluation. |
|
41 |
|
|
42 |
Returns nil if evaluation is disallowed, t if it is |
|
43 |
unconditionally allowed, and the symbol `query' if the user |
|
44 |
should be asked whether to allow evaluation. |
|
45 |
|
|
46 |
(fn INFO) |
|
47 |
(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)]) |
|
48 |
#@192 Check if code block INFO should be evaluated. |
|
49 |
Do not query the user, but do display an informative message if |
|
50 |
evaluation is blocked. Returns non-nil if evaluation is not blocked. |
|
51 |
|
|
52 |
(fn INFO) |
|
53 |
(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)]) |
|
54 |
#@518 Confirm evaluation of the code block INFO. |
|
55 |
|
|
56 |
This query can also be suppressed by setting the value of |
|
57 |
`org-confirm-babel-evaluate' to nil, in which case all future |
|
58 |
interactive code block evaluations will proceed without any |
|
59 |
confirmation from the user. |
|
60 |
|
|
61 |
Note disabling confirmation may result in accidental evaluation |
|
62 |
of potentially harmful code. |
|
63 |
|
|
64 |
The variable `org-babel-confirm-evaluate-answer-no' is used by |
|
65 |
the async export process, which requires a non-interactive |
|
66 |
environment, to override this check. |
|
67 |
|
|
68 |
(fn INFO) |
|
69 |
(defalias 'org-babel-confirm-evaluate #[257 "\301!@\3028\211\203 \303\304\"\202 \305\204 \306\202Q \307=\203& |