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!\207" [require ob shell cl-lib] 2) |
|
16 |
(defvar org-babel-default-header-args:shell nil) |
|
17 |
#@164 Define execution functions associated to shell names. |
|
18 |
This function has to be called whenever `org-babel-shell-names' |
|
19 |
is modified outside the Customize interface. |
|
20 |
(defalias 'org-babel-shell-initialize #[0 "\211\205: \211@\301\302\303\304P!\305\306\307\"\310\311DC\312BB\257!\210\301\313\314\303\315P!D\316\306\317\"F!\210A\266\202\202 \207" [org-babel-shell-names eval defun intern "org-babel-execute:" (body params) format "Execute a block of %s commands with Babel." let shell-file-name ((org-babel-execute:shell body params)) defalias quote "org-babel-variable-assignments:" 'org-babel-variable-assignments:shell "Return list of %s statements assigning to the block's variables."] 10 (#$ . 540) nil]) |
|
21 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \207" [custom-declare-variable org-babel-shell-names funcall function #[0 "\300\207" [("sh" "bash" "csh" "ash" "dash" "ksh" "mksh" "posh")] 1] "List of names of shell supported by babel shell code blocks.\nCall `org-babel-shell-initialize' when modifying this variable\noutside the Customize interface." :group org-babel :type (repeat (string :tag "Shell name: ")) :set #[514 "\300\"\210\301 \207" [set-default org-babel-shell-initialize] 5 "\n\n(fn SYMBOL VALUE)"]] 10) |
|
22 |
#@123 Execute a block of Shell commands with Babel. |
|
23 |
This function is called by `org-babel-execute-src-block'. |
|
24 |
|
|
25 |
(fn BODY PARAMS) |
|
26 |
(defalias 'org-babel-execute:shell #[514 "\300\301\236A!\302\236A\211\205 \303\304!!\262\305\236A\306\307!#\310\311%\312\313\236A\314 \236A\"\312\315 \236A\316\n\236A\"#\207" [org-babel-sh-initiate-session :session :stdin org-babel-sh-var-to-string org-babel-ref-resolve :cmdline org-babel-expand-body:generic org-babel-variable-assignments:shell org-babel-reassemble-table org-babel-sh-evaluate org-babel-pick-name :colname-names :colnames :rowname-names :rownames] 13 (#$ . 1800)]) |
|
27 |
#@93 Prepare SESSION according to the header arguments specified in PARAMS. |
|
28 |
|
|
29 |
(fn SESSION PARAMS) |
|
30 |
(defalias 'org-babel-prep-session:shell #[514 "\301!\302!\303!\204 \304\305\"\210\306 \307\310\311\312\313!\314\"\315$\216rq\210\212\316\317\307\320\321\312\313!\322\"\323\324%\"\210,\210\207" [comint-input-filter org-babel-sh-initiate-session org-babel-variable-assignments:shell org-babel-comint-buffer-livep error "Buffer %s does not exist or has no process" match-data make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 #[257 "\300\207" [nil] 2 "\n\n(fn INPUT)"] mapc 257 "\211c\210\301\302\303\"\210\304\300!\207" [comint-send-input nil t org-babel-comint-wait-for-output] 4 "\n\n(fn VAR)"] 12 (#$ . 2435)]) |
|
31 |
#@51 Load BODY into SESSION. |
|
32 |
|
|
33 |
(fn SESSION BODY PARAMS) |
|
34 |
(defalias 'org-babel-load-session:shell #[771 "\300 \301\302\303\304\305!\306\"\307$\216\310\"r\211q\210\311\312p!!b\210\313!c\210)\211\262)\207" [current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 org-babel-prep-session:shell process-mark get-buffer-process org-babel-chomp] 10 (#$ . 3189)]) |
|
35 |
#@115 Returns a list of statements declaring the values as a generic variable. |
|
36 |
|
|
37 |
(fn VARNAME VALUES &optional SEP HLINE) |
|
38 |
(defalias 'org-babel--variable-assignments:sh-generic #[1026 "\300\301\302##\207" [format "%s=%s" org-babel-sh-var-to-sh] 11 (#$ . 3599)]) |
|
39 |
#@109 Returns a list of statements declaring the values as a bash array. |
|
40 |
|
|
41 |
(fn VARNAME VALUES &optional SEP HLINE) |
|
42 |
(defalias 'org-babel--variable-assignments:bash_array #[1026 "\300\301\211\302\303\304\305\306\307\"\310\"\311\312%\313#$\207" [format "unset %s\ndeclare -a %s=( %s )" mapconcat make-byte-code 257 "\302\300\301#\207" vconcat vector [org-babel-sh-var-to-sh] 5 "\n\n(fn VALUE)" " "] 16 (#$ . 3866)]) |
|
43 |
#@119 Returns a list of statements declaring the values as bash associative array. |
|
44 |
|
|
45 |
(fn VARNAME VALUES &optional SEP HLINE) |
|
46 |
(defalias 'org-babel--variable-assignments:bash_assoc #[1026 "\300\301\211\302\303\304\305\306\307
\f\f#\310\"\311\312%\313#$\207" [format "unset %s\ndeclare -A %s\n%s" mapconcat make-byte-code 257 "\303\304\300\305@\301\302#\305A\301\302#$\207" vconcat vector [format "%s[%s]=%s" org-babel-sh-var-to-sh] 9 "\n\n(fn ITEMS)" "\n"] 17 (#$ . 4287)]) |
|
47 |
#@100 Represents the parameters as useful Bash shell variables. |
|
48 |
|
|
49 |
(fn VARNAME VALUES &optional SEP HLINE) |
|
50 |
(defalias 'org-babel--variable-assignments:bash #[1026 ":\2036 @\211:\203/ \211A\211:\203 |