%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/org/ |
Current File : //usr/local/share/emacs/27.2/lisp/org/ob-core.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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\335\357\340\360&\210\310\361\312\313\362DD\363\306\301\320\330\316\364\335\365\340\360& \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." (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." "26.1" (Org . "9.1")] 14) #@185 Return regexp matching a Noweb reference. Match any reference, or only those matching REGEXP, if non-nil. When matching, reference is stored in match group 1. (fn &optional REGEXP) (defalias 'org-babel-noweb-wrap #[256 "\302!\206 \303\302 !Q\207" [org-babel-noweb-wrap-start org-babel-noweb-wrap-end regexp-quote "\\([^ \n]\\(?:.*?[^ \n]\\)?\\)"] 5 (#$ . 3923)]) #@54 Regular expression used to match a source name line. (defvar org-babel-src-name-regexp "^[ ]*#\\+name:[ ]*" (#$ . 4300)) #@63 Regular expression used to match multi-line header arguments. (defvar org-babel-multi-line-header-regexp "^[ ]*#\\+headers?:[ ]*\\([^\n]*\\)$" (#$ . 4429)) #@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" (#$ . 4593)) #@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 (#$ . 4836)]) #@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 (#$ . 5226)) #@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 @\313 !\"\202D \203L \314\202U \211\203T \315\202U \316\207" [org-babel-exp-reference-buffer org-confirm-babel-evaluate 2 :eval :noeval "no" ("no" "never") ("no-export" "never-export") "query" "query-export" functionp org-babel--expand-body nil query t] 11 (#$ . 5457)]) #@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 (#$ . 6143)]) #@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\202K \307\267\202D \310\202K \311\300!\2030 \204: \312\303\313#!\206K \314\315#\210\306\202K \316\317\"\262\207" [org-babel-confirm-evaluate-answer-no org-babel-check-confirm-evaluate 4 format " (%s) " " " nil #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (t 34 query 38)) t boundp yes-or-no-p "Evaluate this %s code block%son your system? " message "Evaluation of this %s code block%sis aborted." error "Unexpected value `%s' from `org-babel-check-confirm-evaluate'"] 10 (#$ . 6597)]) (defalias 'org-babel-execute-safely-maybe #[0 "?\205 \301 \207" [org-babel-no-eval-on-ctrl-c-ctrl-c org-babel-execute-maybe] 1]) (defalias 'org-babel-execute-maybe #[0 "\300 \206 \301 \207" [org-babel-execute-src-block-maybe org-babel-lob-execute-maybe] 1 nil nil]) #@113 Execute BODY if point is in a source block and return t. Otherwise do nothing and return nil. (fn &rest BODY) (defalias 'org-babel-when-in-src-block '(macro . #[128 "\300\301\302\303\304\"B\305BBB\207" [if (memq (org-element-type (org-element-context)) '(inline-src-block src-block)) progn append (t) (nil)] 7 (#$ . 8026)])) #@137 Conditionally execute a source block. Detect if this is context for a Babel src-block and if so then run `org-babel-execute-src-block'. (defalias 'org-babel-execute-src-block-maybe #[0 "\301\302 !\303>\205 \304 \210\305!\210\306\207" [current-prefix-arg org-element-type org-element-context (inline-src-block src-block) org-babel-eval-wipe-error-buffer org-babel-execute-src-block t] 2 (#$ . 8361) nil]) #@175 Display information on the current source block. This includes header arguments, language and name, and is largely a window into the `org-babel-get-src-block-info' function. (defalias 'org-babel-view-src-block-info #[0 "\305\306!\307\310\205\314 \311\211\223\210\312 B\313\nB\314 \315 \316!\211\311\211\3178@\320 8\321\n8\203; \322\"\210\203E \323\"\210\324!\210\325\326`\327\330#\"\210\331\326`\332P\330##\210 !\203o \333\"\210\334!\210\335\336\"\211\205\251 \211@\337\340A\"!\203\242 \n\341@\337\342@\"G\343V\203\235 \344\202\236 \345A$\210A\266\202\202x \262\266\204\262rq\210\346\311\"\262)\347\350!\203\307 \350\"\202\310 \211)\266\204*\207" [help-window-point-marker temp-buffer-window-setup-hook temp-buffer-window-show-hook help-window-old-frame standard-output org-babel-get-src-block-info light #[257 "\211G\300V\207" [0] 3 "\n\n(fn IT)"] #[385 "\300\301\302#!\207" [princ apply format] 7 "\n\n(fn FMT &rest ARGS)"] nil help-mode-setup help-mode-finish selected-frame help-buffer temp-buffer-window-setup 4 3 2 "Name: %s\n" "Lang: %s\n" "Properties:\n" " :header-args %s\n" org-entry-get "header-args" t " :header-args:%s %s\n" "header-args:" "Switches: %s\n" "Header Arguments:\n" sort #[514 "\300@!\300@!\231\207" [symbol-name] 5 "\n\n(fn A B)"] format "%s" " %S%s %s\n" "%S" 7 "" " " temp-buffer-window-show functionp help-window-setup] 19 (#$ . 8774) nil]) #@140 Conditionally expand a source block. Detect if this is context for an org-babel src-block and if so then run `org-babel-expand-src-block'. (defalias 'org-babel-expand-src-block-maybe #[0 "\301\302 !\303>\205 \304!\210\305\207" [current-prefix-arg org-element-type org-element-context (inline-src-block src-block) org-babel-expand-src-block t] 2 (#$ . 10211) nil]) #@150 Conditionally load a source block in a session. Detect if this is context for an org-babel src-block and if so then run `org-babel-load-in-session'. (defalias 'org-babel-load-in-session-maybe #[0 "\301\302 !\303>\205 \304!\210\305\207" [current-prefix-arg org-element-type org-element-context (inline-src-block src-block) org-babel-load-in-session t] 2 (#$ . 10584) nil]) (add-hook 'org-metaup-hook 'org-babel-load-in-session-maybe) #@136 Conditionally pop to a session. Detect if this is context for an org-babel src-block and if so then run `org-babel-switch-to-session'. (defalias 'org-babel-pop-to-session-maybe #[0 "\301\302 !\303>\205 \304!\210\305\207" [current-prefix-arg org-element-type org-element-context (inline-src-block src-block) org-babel-switch-to-session t] 2 (#$ . 11026) nil]) (add-hook 'org-metadown-hook 'org-babel-pop-to-session-maybe) (defconst org-babel-common-header-args-w-values '((cache (no yes)) (cmdline . :any) (colnames (nil no yes)) (comments (no link yes org both noweb)) (dir . :any) (eval (yes no no-export strip-export never-export eval never query)) (exports (code results both none)) (epilogue . :any) (file . :any) (file-desc . :any) (file-ext . :any) (file-mode (493 365 292 :any)) (hlines (no yes)) (mkdirp (yes no)) (no-expand) (noeval) (noweb (yes no tangle no-export strip-export)) (noweb-ref . :any) (noweb-sep . :any) (output-dir . :any) (padline (yes no)) (post . :any) (prologue . :any) (results (file list vector table scalar verbatim) (raw html latex org code pp drawer link graphics) (replace silent none append prepend) (output value)) (rownames (no yes)) (sep . :any) (session . :any) (shebang . :any) (tangle (tangle yes no :any)) (tangle-mode (493 365 292 :any)) (var . :any) (wrap . :any))) #@140 Common header arguments used by org-babel. Note that individual languages may define their own language specific header arguments as well. (defconst org-babel-header-arg-names (mapcar 'car org-babel-common-header-args-w-values) (#$ . 12346)) #@554 A list of safe header arguments for babel source blocks. The list can have entries of the following forms: - :ARG -> :ARG is always a safe header arg - (:ARG . (VAL1 VAL2 ...)) -> :ARG is safe as a header arg if it is `equal' to one of the VALs. - (:ARG . FN) -> :ARG is safe as a header arg if the function FN returns non-nil. FN is passed one argument, the value of the header arg (as a string). (defconst org-babel-safe-header-args '(:cache :colnames :comments :exports :epilogue :hlines :noeval :noweb :noweb-ref :noweb-sep :padline :prologue :rownames :sep :session :tangle :wrap (:eval "never" "query") (:results lambda (str) (not (string-match "file" str)))) (#$ . 12595)) #@418 Return a function that determines whether a list of header args are safe. Intended usage is: (put \='org-babel-default-header-args \='safe-local-variable (org-babel-header-args-safe-p org-babel-safe-header-args) This allows org-babel languages to extend the list of safe values for their `org-babel-default-header-args:foo' variable. For the format of SAFE-LIST, see `org-babel-safe-header-args'. (fn SAFE-LIST) (defalias 'org-babel-header-args-safe-fn '(macro . #[257 "\300\301\302\303\304\300\305\302\306\307\310EEE\311BBEE\207" [lambda (value) and (listp value) cl-every (pair) (consp pair) org-babel-one-header-arg-safe-p pair (value)] 13 (#$ . 13437)])) #@58 Default arguments to use when evaluating a source block. (defvar org-babel-default-header-args '((:session . "none") (:results . "replace") (:exports . "code") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no")) (#$ . 14109)) (put 'org-babel-default-header-args 'safe-local-variable #[257 "\211<\205 \300\301\"\207" [cl-every #[257 "\211:\205 \301\"\207" [org-babel-safe-header-args org-babel-one-header-arg-safe-p] 4 "\n\n(fn PAIR)"]] 4 "\n\n(fn VALUE)"]) #@66 Default arguments to use when evaluating an inline source block. (defvar org-babel-default-inline-header-args '((:session . "none") (:results . "replace") (:exports . "results") (:hlines . "yes")) (#$ . 14592)) (put 'org-babel-default-inline-header-args 'safe-local-variable #[257 "\211<\205 \300\301\"\207" [cl-every #[257 "\211:\205 \301\"\207" [org-babel-safe-header-args org-babel-one-header-arg-safe-p] 4 "\n\n(fn PAIR)"]] 4 "\n\n(fn VALUE)"]) #@33 Regexp matching a NAME keyword. (defconst org-babel-name-regexp (format "^[ ]*#\\+%s:[ ]*" "\\(?:\\(?:TBL\\)?NAME\\)") (#$ . 15052)) #@140 Regular expression used to match result lines. If the results are associated with a hash key then the hash will be saved in match group 1. (defconst org-babel-result-regexp "^[ ]*#\\+results\\(?:\\[\\(?:([[:digit:]]\\{4\\}\\(?:-[[:digit:]]\\{2\\}\\)\\{2\\} [[:digit:]]\\{2\\}\\(?::[[:digit:]]\\{2\\}\\)\\{2\\}) \\)?\\([[:xdigit:]]+\\)]\\)?:[ ]*" (#$ . 15194)) #@80 Regexp matching a RESULTS keyword with a name. Name is saved in match group 9. (defconst org-babel-result-w-name-regexp (concat org-babel-result-regexp "\\(?9:[^ \n \f]+\\)") (#$ . 15562)) #@344 The minimum number of lines for block output. If number of lines of output is equal to or exceeds this value, the output is placed in a #+begin_example...#+end_example block. Otherwise the output is marked as literal by inserting colons at the starts of the lines. This variable only takes effect if the :results output option is in effect. (defvar org-babel-min-lines-for-block-output 10 (#$ . 15760)) #@147 Raise errors when noweb references don't resolve. Also see `org-babel-noweb-error-langs' to control noweb errors on a language by language bases. (defvar org-babel-noweb-error-all-langs nil (#$ . 16172)) #@292 Languages for which Babel will raise literate programming errors. List of languages for which errors should be raised when the source code block satisfying a noweb reference in this language can not be resolved. Also see `org-babel-noweb-error-all-langs' to raise errors for all languages. (defvar org-babel-noweb-error-langs nil (#$ . 16383)) #@64 Number of initial characters to show of a hidden results hash. (defvar org-babel-hash-show 4 (#$ . 16734)) #@69 Hook for functions to be called after `org-babel-execute-src-block' (defvar org-babel-after-execute-hook nil (#$ . 16847)) #@222 Generate a regexp used to match a source block named NAME. If NAME is nil, match any name. Matched name is then put in match group 9. Other match groups are defined in `org-babel-src-block-regexp'. (fn &optional NAME) (defalias 'org-babel-named-src-block-regexp-for-name #[256 "\203 \302!\202\f \303\304P\305\306 \307\"R\207" [org-babel-src-name-regexp org-babel-src-block-regexp regexp-quote "\\(?9:.*?\\)" "[ ]*" "\\(?:\n[ ]*#\\+\\S-+:.*\\)*?\n" substring 1] 7 (#$ . 16977)]) #@61 Generate a regexp used to match data named NAME. (fn NAME) (defalias 'org-babel-named-data-regexp-for-name #[257 "\301!\302Q\207" [org-babel-name-regexp regexp-quote "[ ]*$"] 4 (#$ . 17470)]) #@180 Normalize body for element or object DATUM. DATUM is a source block element or an inline source block object. Remove final newline character and spurious indentation. (fn DATUM) (defalias 'org-babel--normalize-body #[257 "\301\302\"\303\304\"\203 \305\306\307#\202 \211\310!\311=\203$ \312\313\314#\2026 \204/ \301\315\"\2033 \211\2026 \316!\207" [org-src-preserve-indentation org-element-property :value string-suffix-p "\n" substring 0 -1 org-element-type inline-src-block replace-regexp-in-string "\n[ ]*" " " :preserve-indent org-remove-indentation] 7 (#$ . 17673)]) #@280 Marker pointing to the source block currently being executed. This may also point to a call line or an inline code block. If multiple blocks are being executed (e.g., in chained execution through use of the :var header argument) this marker points to the outer-most code block. (defvar org-babel-current-src-block-location nil (#$ . 18263)) #@613 Extract information from a source block or inline source block. When optional argument LIGHT is non-nil, Babel does not resolve remote variable references; a process which could likely result in the execution of other code blocks, and do not evaluate Lisp values in parameters. By default, consider the block at point. However, when optional argument DATUM is provided, extract information from that parsed object instead. Return nil if point is not on a source block. Otherwise, return a list with the following pattern: (language body arguments switches name start coderef) (fn &optional LIGHT DATUM) (defalias 'org-babel-get-src-block-info #[512 "\211\206 \302 \303!\211\304=\305>\205\303 \306\307\"\310\311P!\306\312\"\313!\314\315\2030 \2021 \316!\205= \317\320\"\321\306\322\"\212\323!\203O \324!q\210\212\214~\210\211\206X `b\210\325\"+\262\326\327\330\331\332\333!\334\"\335\336%\306\337\"\306\340\"B\"\"$\306\341\n\"\206\210 \342\306 \203\223 \322\202\224 \343\f\" ?\205\241 \344\f!\257\204\264 \211AA\211\345\3468!\240\266\211AA\211\347\3468\"\240\266\266\203\207" [org-babel-default-inline-header-args org-babel-default-header-args org-element-context org-element-type inline-src-block (inline-src-block src-block) org-element-property :language intern "org-babel-default-header-args:" :name org-babel--normalize-body apply org-babel-merge-params boundp eval t append :begin markerp marker-buffer org-babel-params-from-properties mapcar make-byte-code 257 "\301\300\"\207" vconcat vector [org-babel-parse-header-arguments] 4 "\n\n(fn H)" :parameters :header :switches "" :post-affiliated org-src-coderef-format org-babel-process-params 2 org-babel-generate-file-param] 23 (#$ . 18612)]) #@69 Expand noweb references in body and remove any coderefs. (fn INFO) (defalias 'org-babel--expand-body #[257 "\3008\301\3028\303\"\203 \304!\202 A@\204 \211\202( \305\306!\307\310\211\311&\207" [6 org-babel-noweb-p 2 :eval org-babel-expand-noweb-references replace-regexp-in-string org-src-coderef-regexp "" nil 1] 10 (#$ . 20373)]) #@602 Execute the current source code block. Insert the results of execution into the buffer. Source code execution and the collection and formatting of results can be controlled through a variety of header arguments. With prefix argument ARG, force re-execution even if an existing result cached in the buffer would otherwise have been returned. Optionally supply a value for INFO in the form returned by `org-babel-get-src-block-info'. Optionally supply a value for PARAMS which will be merged with the header arguments specified at the front of the source code block. (fn &optional ARG INFO PARAMS) (defalias 'org-babel-execute-src-block #[768 "\206\f \3038\206\f \304 \203 \305!\202 \306 \211AA\211\307@\"\240\266\310!\205\211AA\211\311@!\240\266\3128\313\236A?\205I \211\205I \211\314\230\262\211\205S \315\316\"\205Y \317 \205` \232\211\203\210 \212\320\321\"b\210\321y\210\322\321w\210\323 \324\325\326\327\330\331\"#!\210\211\262)\202 \332!\205 @\333\236A\334!\335\236A\336 \236A\204\254 \202\307 \211\337\235\203\272 \340\341!!\202\307 \340\341!!\342\343\"\210\211\262\344\345P!\321\346!\204\333 \347\350\"\210\324\351\352 !\3538\211\203\360 \330\354\"\202\361 \355\262#\210\356\235\203 \"\210\324\357!\210\202\365 \"\360 \236A\361=\2031\362\235\204&\363\235\2031\211<\2041\211CC\2022\211\262\262\364\235\205B\365\f\236A\211\203\245\203\242\366\235\204\242\367\235\204\242\211\370\371!\372\373\374\375\376!\377\"\312$\216r\211q\210\201@ \201A \236A\"c\210)r\211q\210\201B \321\211\321\373%\210*\266\201C \236\203\242\201D \201C \236A\"\210\211\262\201E \236A\211\203\345\204\270\202\317\201F \201G \236\211\205\314\211A\206\314\262\"\201H !\262\203\344\201I \364 \"\262)\210\201J \f%\266\201K \201L !\210)\266\206\266\205)\207" [org-babel-current-src-block-location default-directory *this* 5 org-babel-where-is-src-block-head copy-tree org-babel-get-src-block-info org-babel-merge-params org-babel-check-evaluate org-babel-process-params 2 :cache "yes" org-babel-sha1-hash :eval org-babel-current-result-hash org-babel-where-is-src-block-result nil " " org-babel-read-result message replace-regexp-in-string "%" "%%" format "%S" org-babel-confirm-evaluate :result-params org-babel--expand-body :dir :mkdirp ("no" "nil" nil) file-name-as-directory expand-file-name make-directory parents intern "org-babel-execute:" fboundp error "No org-babel-execute function for %s!" "executing %s code block%s..." capitalize 4 " (%s)" "" "none" "result silenced" :result-type value "vector" "table" "file" :file "link" "graphics" generate-new-buffer " *temp file*" make-byte-code 0 "\301\300!\205 \302\300!\207" vconcat vector [buffer-name kill-buffer] org-babel-format-result :sep write-region :file-mode set-file-modes :post org-babel-result-to-file :file-desc org-babel-ref-resolve remove org-babel-insert-result run-hooks org-babel-after-execute-hook] 25 (#$ . 20723) nil]) #@287 Expand BODY with PARAMS. Expand a block of code with org-babel according to its header arguments. This generic implementation of body expansion is called for languages which have not defined their own specific org-babel-expand-body:lang function. (fn BODY PARAMS &optional VAR-LINES) (defalias 'org-babel-expand-body:generic #[770 "\300\236A\301\236A\302\303\304\205 C C\205 C$\305#\207" [:prologue :epilogue mapconcat identity append "\n"] 12 (#$ . 23742)]) #@178 Expand the current source code block. Expand according to the source code block's header arguments and pop open the results in a preview buffer. (fn &optional ARG INFO PARAMS) (defalias 'org-babel-expand-src-block #[768 "\206 \300 \211@AA\211\301\302\3038\"\304\"\240\262A\211\305\306\"\203* \307!\202- A@\240\262\310\311P!\310\312P!\313!\203G \"\202U \314\313!\205T !#\315\316!\203j \317\320\321 \322\n\323\260\"\202k \211\207" [org-babel-get-src-block-info sort org-babel-merge-params 2 #[514 "\300@!\300@!\231\207" [symbol-name] 5 "\n\n(fn EL1 EL2)"] org-babel-noweb-p :eval org-babel-expand-noweb-references intern "org-babel-expand-body:" "org-babel-variable-assignments:" fboundp org-babel-expand-body:generic called-interactively-p any org-edit-src-code "*Org-Babel Preview " buffer-name "[ " " ]*"] 17 (#$ . 24223) nil]) #@75 Return the edit (levenshtein) distance between strings S1 S2. (fn S1 S2) (defalias 'org-babel-edit-distance #[514 "GG\300\301\302\303\304\300\305!\306\"\307\310%\311\312T\"\"!\313\314H\211\314\211I\266\311\312\"\211\203@ \211@\314HI\266A\266\202\202) \210\311\312\"\211\203\260 \211@H\211\314I\266\311\312\"\211\203\250 \211@H\nS#T S#T^SHSH\232\203\220 \314\202\221 \312\n\f\nS S#\\^I\266A\266\202\202Y \210A\266\202\202E \210\211#\207" [vconcat mapcar make-byte-code 257 "\301\300T\302\"\207" vector [make-vector nil] 4 "\n\n(fn _)" number-sequence 1 #[771 "HH\207" [] 5 "\n\n(fn DIST I J)"] 0] 20 (#$ . 25089)]) #@95 Combine a number of lists of header argument names and arguments. (fn ORIGINAL &rest OTHERS) (defalias 'org-babel-combine-header-arg-lists #[385 "\300!\211\2038 \211@\211\211\2030 \211@\211@\301\302\303\304\305\306!\307\"\310\311%\"B\262\210A\266\202\202 \210A\266\202\202 \210\211\207" [copy-sequence cl-remove-if make-byte-code 257 "\300@\232\207" vconcat vector [] 3 "\n\n(fn PAIR)"] 16 (#$ . 25773)]) #@66 Check for misspelled header arguments in the current code block. (defalias 'org-babel-check-src-block #[0 "\302\303\304\"\303\305\306 \205, \307\310\311!\312\211\203 \313\314G $\210\202( \315\314G\312$\210\266\202!\"\211\203e \211@\211\203] \211@\230\204V \316\"X\203V \235\204V \317\320#\210A\266\202\2024 \210A\266\202\202- \210\321\322!\207" [org-babel-header-arg-names org-rm-props 2 mapcar symbol-name #[257 "\300\301@!\302\"\207" [substring symbol-name 1] 4 "\n\n(fn ARG)"] org-babel-where-is-src-block-head org-babel-parse-header-arguments match-string 4 nil remove-text-properties 0 set-text-properties org-babel-edit-distance error "Supplied header \"%S\" is suspiciously close to \"%S\"" message "No suspicious header arguments found."] 12 (#$ . 26198) nil]) #@107 Insert a header argument selecting from lists of common args and values. (fn &optional HEADER-ARG VALUE) (defalias 'org-babel-insert-header-arg #[512 "\301\302!\211@\3038\304\305P!\306\307!\205 \310\311\"\"\206&