;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\300\302!\207" [require ob eshell] 2) (defvar org-babel-default-header-args:eshell nil) #@329 Execute a block of Eshell code BODY with PARAMS. This function is called by `org-babel-execute-src-block'. The BODY can be any code which allowed executed in Eshell. Eshell allow to execute normal shell command and Elisp code. More details please reference Eshell Info. The PARAMS are variables assignments. (fn BODY PARAMS) (defalias 'org-babel-execute:eshell #[514 "\303\304\236A!\305\306!#\203;rq\210\307\310\"\211\203/\211@b\210\211c\210\311 \210A\266\202\202\210 b\210\312`\n\")\202X\313\314!r\211q\210\315\316\317\320\321!\322\"\323$\216\324\325\"\210\326 *\262\207" [eshell-last-output-end eshell-last-input-end eshell-last-output-start org-babel-eshell-initiate-session :session org-babel-expand-body:generic org-babel-variable-assignments:eshell split-string "\n" eshell-send-input buffer-substring-no-properties generate-new-buffer " *temp*" make-byte-code 0 "\301\300!\205 \302\300!\207" vconcat vector [buffer-name kill-buffer] 2 eshell-command t buffer-string] 11 (#$ . 522)]) #@93 Prepare SESSION according to the header arguments specified in PARAMS. (fn SESSION PARAMS) (defalias 'org-babel-prep-session:eshell #[514 "\301!\211\302!\303\304!\210\305\306\"\210)\207" [eshell-buffer-name org-babel-eshell-initiate-session org-babel-variable-assignments:eshell call-interactively eshell mapc eshell-command] 7 (#$ . 1539)]) #@49 Non-nil if Eshell SESSION exists. (fn SESSION) (defalias 'ob-eshell-session-live-p #[257 "\300!\207" [get-buffer] 3 (#$ . 1893)]) #@66 Initiate a session named SESSION. (fn &optional SESSION PARAMS) (defalias 'org-babel-eshell-initiate-session #[512 "\205(\301\230?\205(\302 \303\304\305\306\307!\310\"\311$\216\312!\204%\313 \210))\210\207" [eshell-buffer-name "none" current-window-configuration make-byte-code 0 "\301\300!\207" vconcat vector [set-window-configuration] 2 ob-eshell-session-live-p eshell] 9 (#$ . 2031)]) #@92 Convert ob-eshell :var specified variables into Eshell variables assignments. (fn PARAMS) (defalias 'org-babel-variable-assignments:eshell #[257 "\300\301\302!\"\207" [mapcar #[257 "\300\301@A#\207" [format "(setq %s %S)"] 5 "\n\n(fn PAIR)"] org-babel--get-vars] 5 (#$ . 2437)]) #@63 Load BODY into SESSION with PARAMS. (fn SESSION BODY PARAMS) (defalias 'org-babel-load-session:eshell #[771 "\300 \301\302\303\304\305!\306\"\307$\216\310\"r\211q\210db\210\311!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:eshell org-babel-chomp] 10 (#$ . 2726)]) (provide 'ob-eshell)