MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.158.174
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/org/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/org/ob-tangle.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:45 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/ob-tangle.el
;;; in Emacs version 24.3.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\303\304\305\306\307\310\311\312\313\314&	\210\303\315\316\317\307\320\311\312\313\321&	\210\303\322\323\324\307\320\311\312\313\321&	\210\303\325\316\326\307\320\311\312\313\321&	\210\303\327\330\331\307\320\311\312\313\332&	\210\303\333\334\331\307\320\311\312\313\332&	\210\303\335\336\337\307\320\311\312\313\340&	\207" [require ob org-src custom-declare-variable org-babel-tangle-lang-exts '(("emacs-lisp" . "el")) "Alist mapping languages to their file extensions.\nThe key is the language name, the value is the string that should\nbe inserted as the extension commonly used to identify files\nwritten in this language.  If no entry is found in this list,\nthen the name of the language is used." :group org-babel-tangle :version "24.1" :type (repeat (cons (string "Language name") (string "File Extension"))) org-babel-post-tangle-hook nil "Hook run in code files tangled by `org-babel-tangle'." org-babel hook org-babel-pre-tangle-hook '(save-buffer) "Hook run at the beginning of `org-babel-tangle'." org-babel-tangle-body-hook "Hook run over the contents of each code block body." org-babel-tangle-comment-format-beg "[[%link][%source-name]]" "Format of inserted comments in tangled code files.\nThe following format strings can be used to insert special\ninformation into the output using `org-fill-template'.\n%start-line --- the line number at the start of the code block\n%file --------- the file from which the code block was tangled\n%link --------- Org-mode style link to the code block\n%source-name -- name of the code block\n\nWhether or not comments are inserted during tangling is\ncontrolled by the :comments header argument." string org-babel-tangle-comment-format-end "%source-name ends here" org-babel-process-comment-text #'org-babel-trim "Function called to process raw Org-mode text collected to be\ninserted as comments in tangled source-code files.  The function\nshould take a single string argument and return a string\nresult.  The default value is `org-babel-trim'." function] 10)
#@81 Find file ensuring that the latest changes on disk are
represented in the file.
(defalias 'org-babel-find-file-noselect-refresh #[(file) "\301!\210r\302!q\210\303\304\211\211#)\207" [file find-file-noselect get-file-buffer revert-buffer t] 4 (#$ . 2611)])
#@135 Open FILE into a temporary buffer execute BODY there like
`progn', then kill the FILE buffer returning the result of
evaluating BODY.
(defalias 'org-babel-with-temp-filebuffer '(macro . #[(file &rest body) "\306\307!\306\310!\306\311!\306\312!\313\fD\314DD\n	F\315D\316	\314DE\317	\316\n\320
BEE\321\322	DE\n\257,\207" [visited-p temp-file temp-result temp-path file body make-symbol "temp-path" "temp-result" "temp-file" "visited-p" let* get-file-buffer org-babel-find-file-noselect-refresh setf with-current-buffer progn unless kill-buffer] 10 (#$ . 2876)]))
(byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put org-babel-with-temp-filebuffer lisp-indent-function 1 edebug-form-spec (form body)] 4)
#@174 Load Emacs Lisp source code blocks in the Org-mode FILE.
This function exports the source code using
`org-babel-tangle' and then loads the resulting file using
`load-file'.
(defalias 'org-babel-load-file #[(file) "\304\305	!\211\306P\307!\203	!!V\204 \310	\311#\210\312!\210\313\314\"+\207" [age file base-name exported-file #[(file) "\301\302\303 \304\305\306!!\206\305!8\"!\207" [file float-time time-subtract current-time 5 file-attributes file-truename] 7] file-name-sans-extension ".el" file-exists-p org-babel-tangle-file "emacs-lisp" load-file message "Loaded %s"] 5 (#$ . 3603) "fFile to load: "])
#@297 Extract the bodies of source code blocks in FILE.
Source code blocks are extracted with `org-babel-tangle'.
Optional argument TARGET-FILE can be used to specify a default
export file for all source blocks.  Optional argument LANG can be
used to limit the exported source code blocks by language.
(defalias 'org-babel-tangle-file #[(file &optional target-file lang) "\306\307!!\310\311 \312\216\313!\210p\314\310\f
#\210*\n?\205\"\315	!*\207" [file to-be-removed visited-p #1=#:wconfig target-file lang get-file-buffer expand-file-name nil current-window-configuration ((set-window-configuration #1#)) find-file org-babel-tangle kill-buffer] 4 (#$ . 4233) "fFile to tangle: \nP"])
#@51 Tangle FILENAME and place the results in PUB-DIR.
(defalias 'org-babel-tangle-publish #[(_ filename pub-dir) "\301\302\303!\"\207" [filename mapc #[(el) "\302	\303#\207" [el pub-dir copy-file t] 4] org-babel-tangle-file] 4 (#$ . 4926)])
#@339 Write code blocks to source-specific files.
Extract the bodies of all source code blocks from the current
file into their own source-specific files.  Optional argument
TARGET-FILE can be used to specify a default export file for all
source blocks.  Optional argument LANG can be used to limit the
exported source code blocks by language.
(defalias 'org-babel-tangle #[(&optional only-this-block target-file lang) "\306\307!\210\214\2033\310 \204\311\312!\210\313 \314\216\315\316\317\320 8\"A\204,\n\204,\321\322\323 \"*\324\224\324\225}\210\212\324\n\203C\325\316\nBC\"\202D\326\327\330\331\"!\"\210\332\333
\211\334U\203]\335\202^\336\337\323\340 \206fp!!$\210#\203t\327\341\f\"\210\f-\207" [only-this-block save-match-data-internal target-file org-babel-default-header-args path-collector block-counter run-hooks org-babel-pre-tangle-hook org-babel-where-is-src-block-head error "Point is not currently inside of a code block" match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) assoc :tangle 2 org-babel-get-src-block-info read-from-minibuffer "Tangle to: " buffer-file-name 0 org-babel-merge-params nil mapc #[(by-lang) "@A\306	\"A\206	\307\306	
\"A\203#\310\306	
\"A!\206$	\311P!
\312\313\314\n\"-\207" [by-lang lang specs org-babel-tangle-lang-exts ext org-src-lang-modes assoc intern symbol-name "-mode" nil mapc #[(spec) "\306\211\307!\310!\211G\311V\205\n)	\312\230\203!\313\314 !\2023	\315\230\203+\316\2023	G\311V\2053	\211\205J
\203I	\312\230\203I\f\317
Q\202J\f\211&\205\363\320!\211'\205^'\315\230?)\203j\321\322&!\323\"\210\324&!\203~&%\235\204~\325&!\210\326\327!(r(q\210\330\216\331)!\203\226\316\332\333\217\210\203\256&*\235\204\256\334Pc\210&*B*\335+!\210\336 ,\326\327!-r-q\210\337\216\324&!\203\317\340&!\210db\210,c\210\341\316\211&#\210.\203\351\342&\343\"\210.T.\344\345&\"-\207" [get-spec tangle sheb she-bang base-name ext #[(name) "\302\303	8\"A\207" [name spec assoc 4] 4] :tangle :shebang 0 "yes" file-name-sans-extension buffer-file-name "no" nil "." :mkdirp make-directory file-name-directory parents file-exists-p delete-file generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#1=#:temp-buffer buffer-name kill-buffer] 2)) fboundp (funcall lang-f) ((error)) "\n" org-babel-spec-to-string buffer-string ((byte-code "\301!\203\n\302!\210\301\207" [#2=#:temp-buffer buffer-name kill-buffer] 2)) insert-file-contents write-region set-file-modes 493 add-to-list path-collector file-name m #1# lang-f she-banged spec content #2# block-counter] 5] lang-f she-banged] 5] org-babel-tangle-collect-blocks message "Tangled %d code block%s from %s" 1 "" "s" file-name-nondirectory buffer-base-buffer #[(file) "\305	!\306\211\307	!\210\305	!r\fq\210\310\311!)\n\204#\312\f!\210,\207" [file #3=#:temp-path #4=#:visited-p #5=#:temp-result #6=#:temp-file get-file-buffer nil org-babel-find-file-noselect-refresh run-hooks org-babel-post-tangle-hook kill-buffer] 3] lang org-babel-post-tangle-hook] 7 (#$ . 5172) "P"])
#@317 Remove comments inserted by `org-babel-tangle'.
Call this function inside of a source-code file generated by
`org-babel-tangle' to remove all comments inserted automatically
by `org-babel-tangle'.  Warning, this comment removes any lines
containing constructs which resemble org-mode file links or noweb
references.
(defalias 'org-babel-tangle-clean #[nil "eb\210\300\301\302\303#\204\300\304 \302\303#\205)\212\305\306!\210`)\212\306\210\306u\210`)|\210\202\207" [re-search-forward "\\[\\[file:.*\\]\\[.*\\]\\]" nil t org-babel-noweb-wrap beginning-of-line 1] 4 (#$ . 8293) nil])
#@280 Insert SPEC into the current file.
Insert the source-code specified by SPEC into the current
source code file.  This function uses `comment-region' which
assumes that the appropriate major-mode is set.  SPEC has the
form

  (start-line file link source-name params body comment)
(defalias 'org-babel-spec-to-string #[(spec) "@A@\3068\3078\3108\3118 \312\313\3148\"A!\312\315\3148\"A\316\230?\"!\317\230\206F!\320\230\206F!\321\230\206F!\322\230#\323\324\325\"$\326% \203\\% !\210#\203k%\327&$\"!\210\"\203s\330c\210\331\332\333\334\335\336
'\205\200\337\"#\"c\210#\205\223%\327($\"!.\207" [spec start-line file link source-name body 2 3 5 6 assoc :comments 4 :padline "no" "both" "link" "yes" "noweb" mapcar #[(el) "\302!\303!\211;\203	\202\304\305	\")B\207" [el le symbol-name eval format "%S"] 5] (start-line file link source-name) #[(text) "\205&\303\230?\205&	G\304V\205&\n\203\305c\210\306`	c\210`\"\210\307\210\305c\207" [comments text padline "no" 0 "\n" comment-region nil] 3] org-fill-template "\n" format "%s\n" replace-regexp-in-string "^," "" org-babel-trim "[\f\n
]" comment comments padline link-p link-data insert-comment org-babel-tangle-comment-format-beg org-src-preserve-indentation org-babel-tangle-comment-format-end] 8 (#$ . 8887)])
#@274 Collect source blocks in the current Org-mode file.
Return an association list of source-code block specifications of
the form used by `org-babel-spec-to-string' grouped by language.
Optional argument LANG can be used to limit the collected source
code blocks by language.
(defalias 'org-babel-tangle-collect-blocks #[(&optional language) "\306\307\310\311 \211?\206\312\313!!`\310@\314 A\315\216\203'\316!\210p@eb\210\317B\310\320#\203J\321\224b\210\322\321!\321\224\321\225\322\323!\323\224\323\225\322\324!\324\224\324\225\322\325!\325\224\325\225\322\326!\326\224\326\225CDEFGHIJKLMNOPQ\327\330\331\310\332\333\217#\211R	\230\204\223\306R\202\226\nT)\214~\210\334`!T)S\311 T\335\336!\211U@V\337\340\323U8\"A\341\230\204@W\203\310WV\230\203@\335 U\323U8X\324U8Y\342\343Y\"\203\350\322\306Y\"\206\352Z[\344\310!\310\\]\345\346!\203\346\321]G\310]$\210\202$\\\203\347\321]G^]$\210\202$\346\321]G\310]$\210]*_\342`_\"\2057\322\306_\")_\350\325U8\206G\351\352	\n#!a\350\353VP!b\350\354VP!c\355X\340\"\203i\356U!\202mUA@E\337\357X\"\203|E\202\237\345b!\203\215bEX\"\202\237\360EX\345c!\205\236cX!#)E\361\362!drdq\210\363\216Ec\210\342\364Y\"\203\321eb\210\317\327\365\366[#\310\320#\203\321\367\307!\210\202\275\370\371!\210\372 ,E\337\373X\"A\374\230\204\360\337\373X\"A\375\230\205
e\310\376\377\217\212\201hB\310\320#\203\321\225\202e)]`{!f\310g\337V\"Ag\201i\337V\"\"VST_aXEf\257gBBB.,Ob\210.\202-*\f\204V\201j@!\210
b\210,\201k\201l\"\211+\207" [blocks current-heading block-counter #1=#:file visited-p point 1 "" nil buffer-file-name get-file-buffer expand-file-name current-window-configuration ((set-window-configuration #2=#:wconfig)) find-file re-search-forward t 0 match-string 2 3 4 5 replace-regexp-in-string "[ 	]" "-" (byte-code "\300\301 8\206\302\207" [4 org-heading-components "(dummy for heading without text)"] 2) ((error (buffer-file-name))) line-number-at-pos org-babel-get-src-block-info light assoc :tangle "no" string-match "-l \"\\(.+\\)\"" org-store-link fboundp set-text-properties remove-text-properties intern format "%s:%d" "org-babel-expand-body:" "org-babel-variable-assignments:" org-babel-noweb-p org-babel-expand-noweb-references :no-expand org-babel-expand-body:generic generate-new-buffer " *temp*" ((byte-code "\301!\203\n\302!\210\301\207" [#3=#:temp-buffer buffer-name kill-buffer] 2)) "-r" "%s" ".+" replace-match run-hooks org-babel-tangle-body-hook buffer-string :comments "both" "org" (byte-code "\212\300\301!\210\302\225)\207" [org-back-to-heading t 0] 2) ((error (point-min))) to-be-removed #2# org-babel-src-block-regexp end-body beg-body body end-header-args beg-header-args header-args end-switches beg-switches switches end-lang beg-lang lang end-block beg-block full-block new-heading start-line file info src-lang language params extra org-coderef-label-format cref-fmt restricted s org-rm-props link org-bracket-link-regexp source-name expand-cmd assignments-cmd #3# org-babel-process-comment-text comment by-lang re-search-backward delq kill-buffer mapcar #[(by-lang) "@\301A!B\207" [by-lang reverse] 3]] 16 (#$ . 10210)])
#@75 Return a list of begin and end link comments for the code block at point.
(defalias 'org-babel-tangle-comment-links #[(&optional info) "\306 \307 \310\311\312!\210\n\211A@@\313\314\315!\203%\315\316\fG\313\f$\210\202<\2034\317\316\fG
\f$\210\202<\315\316\fG\313\f$\210\f*!\320\206J\321\322!8\323\324\325\"\326\"\326\"-D\207" [start-line file org-stored-links restricted s org-rm-props org-babel-where-is-src-block-head buffer-file-name org-link-escape call-interactively org-store-link nil fboundp set-text-properties 0 remove-text-properties 4 org-babel-get-src-block-info light mapcar #[(el) "\302!\303!\211;\203	\202\304\305	\")B\207" [el le symbol-name eval format "%S"] 5] (start-line file link source-name) org-fill-template link info source-name link-data org-babel-tangle-comment-format-beg org-babel-tangle-comment-format-end] 6 (#$ . 13467)])
#@180 Propagate changes in source file back original to Org-mode file.
This requires that code blocks were tangled with link comments
which enable the original code blocks to be found.
(defalias 'org-babel-detangle #[(&optional source-code-file) "\212\203	\305!\210eb\210\306\307\211\310\f\307\311#\203C\310\312\313\314\315!!\316Q!\203=\306\225\317y\210\212\320 \211\2039\321\n!\210)T	b\210\202\322\323\"\210,\207" [source-code-file end new-body counter org-bracket-link-analytic-regexp find-file 0 nil re-search-forward t " " regexp-quote match-string 5 " ends here" -1 org-babel-tangle-jump-to-org org-babel-update-block-body message "Detangled %d code blocks"] 5 (#$ . 14361) nil])
#@61 Jump from a tangled code file to the related Org-mode file.
(defalias 'org-babel-tangle-jump-to-org #[nil "`\306\211\211\211\211\211\211\211\211$%&'\307 (\310\216\212\311)\306\312#\203c\313 \211&\203\314\315!\211\203\314\316!\211\203\314\317!\211\203\212\320 *\321\216\322\323\324	!\325Q\306\312#\210\326 \211%+\203&\203x&'W\203x'%W\204|\327\330!\210\331&%{!)\332\333\n\"\203\222\n\315\211\224O\334\n!\210p&b\210\335!\210\332\336	\"\203\263\337\340\314\341	\"!!\210\202\267\342	!\210`*\343
!\210\fb\210.\n\207" [body block-name path link target-char target-buffer nil current-window-configuration ((set-window-configuration #1=#:wconfig)) re-search-backward t point-at-eol match-string 0 3 5 match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) re-search-forward " " regexp-quote " ends here" point-at-bol error "Not in tangled code" org-babel-trim string-match "::" find-file org-open-link-from-string "[^ 	\n
]:\\([[:digit:]]+\\)" org-babel-next-src-block string-to-number 1 org-babel-goto-named-src-block pop-to-buffer done end start mid #1# org-bracket-link-analytic-regexp save-match-data-internal] 10 (#$ . 15063) nil])
(provide 'ob-tangle)

MMCT - 2023