?
Current Path : /usr/share/emacs/24.3/lisp/org/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/org/org-lparse.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:07:40 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-lparse.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\300\303!\207" [require org-exp org-list format-spec] 2) #@274 Export outline to TARGET-BACKEND via NATIVE-BACKEND and open exported file. If there is an active region, export only the region. The prefix ARG specifies how many levels of the outline should become headlines. The default is 3. Lower levels will become bulleted lists. (defalias 'org-lparse-and-open #[(target-backend native-backend arg &optional file-or-buf) "\306\206 \307 \n\310$\205; \311!\203 \202( \312!\203% \202( \313\314!\315\316\f\"\210\317\f\320\"\210\205; \321p!*\207" [file-or-buf target-backend native-backend arg f buffer-file-name nil org-lparse hidden bufferp file-exists-p error "org-lparse-and-open: This shouldn't happen" message "Opening file %s" org-open-file system kill-buffer org-export-kill-product-buffer-when-displayed] 6 (#$ . 653)]) #@240 Call the function `org-lparse'. This function can be used in batch processing as: emacs --batch --load=$HOME/lib/emacs/org.el --eval "(setq org-export-headline-levels 2)" --visit=MyFile --funcall org-lparse-batch (defalias 'org-lparse-batch #[(target-backend &optional native-backend) "\206 \303 \n\304$\207" [native-backend target-backend org-export-headline-levels org-lparse hidden] 5 (#$ . 1441)]) #@125 Call `org-lparse' with output to a temporary buffer. No file is created. The prefix ARG is passed through to `org-lparse'. (defalias 'org-lparse-to-buffer #[(backend arg) "\304\305\226\"\306\211\n\307\211 &\210\205 \310 !)\207" [backend tempbuf arg org-export-show-temporary-export-buffer format "*Org %s Export*" org-lparse nil switch-to-buffer-other-window] 7 (#$ . 1881)]) #@229 Assume the current region has org-mode syntax, and convert it to HTML. This can be used in any buffer. For example, you could write an itemized list in org-mode syntax in an HTML buffer and then use this command to convert it. (defalias 'org-replace-region-by #[(backend beg end) "\306\211\211\211\307 \310\216\311\312!\203 \313 \314\315%\202D {\316\317!r q\210\320 \210c\210\312 \210\313 ed\314\315%)\321 !\210*|\210\nc,\207" [pop-up-frames buf backend-string reg #1=#:wconfig backend nil current-window-configuration ((set-window-configuration #1#)) derived-mode-p org-mode org-lparse-region t string get-buffer-create "*Org tmp*" erase-buffer kill-buffer beg end] 6 (#$ . 2271)]) #@690 Convert region from BEG to END in org-mode buffer to HTML. If prefix arg BODY-ONLY is set, omit file header, footer, and table of contents, and only produce the region of converted text, useful for cut-and-paste operations. If BUFFER is a buffer or a string, use/create that buffer as a target of the converted HTML. If BUFFER is the symbol `string', return the produced HTML as a string and leave not buffer behind. For example, a Lisp program could call this function in the following way: (setq html (org-lparse-region "html" beg end t 'string)) When called interactively, the output buffer is selected, and shown in a window. A non-interactive call will only return the buffer. (defalias 'org-lparse-region #[(backend beg end &optional body-only buffer) "\306\211\307\211\310 \311\306#\fb\210\312`!\210 b\210\313\211\307\211 &\314\315!\203\262 \307!\2048 !\205\260 \"\316=\203F \242\316=\202H \"\203\203 \317 \203\203 \320 \203\203 #\203f \321\322#\"\210\307#\202\203 \323 \324 U\204\203 \325\322!\204z \326\322!\204\203 \321\322\323 \324 {\"\210!\204\240 \327=\204\232 \242\316=\203\240 A\204\240 \307\211\202\260 \242\316=\203\252 A\307$\330\331!)\210\332\333!\203\304 \334!\203\304 \335!\202\305 ,\207" [rtn ext-plist zmacs-regions transient-mark-mode end beg t nil plist-put :ignore-subtree-p set-mark org-lparse fboundp deactivate-mark only region-active-p display-selections-p x-set-selection PRIMARY region-beginning region-end x-selection-owner-p x-selection-exists-p lambda run-hooks deactivate-mark-hook called-interactively-p any bufferp switch-to-buffer-other-window backend buffer body-only force select-active-regions saved-region-selection mark-active] 8 (#$ . 2985)]) (defvar org-lparse-par-open nil) #@284 Return non-nil if link FILENAME should be inlined. The decision to inline the FILENAME link is based on the current settings. DESCP is the boolean of whether there was a link description. See variables `org-export-html-inline-images' and `org-export-html-inline-image-extensions'. (defalias 'org-lparse-should-inline-p #[(filename descp) "\304\305!\304\306!\211\307=\204 \205 \n?\205 \310\"*\207" [inline-image-extensions inline-images descp filename org-lparse-get INLINE-IMAGES INLINE-IMAGE-EXTENSIONS t org-file-image-p] 4 (#$ . 4754)]) #@82 Return LINE with markup of Org mode links. OPT-PLIST is the export options list. (defalias 'org-lparse-format-org-link #[(line opt-plist) "\306\203 \307!\202\f \310\n\311\"\312\211\211\211\211\211\211\211\211\211\211\211@ABCDEFGHIJK\313LMK#\203\377\312\306\224K\314 N\315\216\316\317\320M\"!*D\321\225\203e \317\321M\"\202\200 \314 N\322\216\323D!\206w \313\324D\"*\203 \325\202\200 \326H\327D!D\330\306\331D#C\332\225\205\232 \317\332M\"@\321\225\203\252 H\333DQ\202\254 D@\205\267 @ \232?A@\206\277 BA\203\372 \334B\335\336!\"\203\372 \337\314 N\340\216\313\341B\"\203\350 B\306\225\312OB*\314 N\342\216\343\344\345B\"\346\"B*H\326\232\2037\347D!\350U\203D\351\312O\202DO\344\352\n\353\211\354\314 N\355\216\316O!*\312\"BCA&E)\202\350H\356\232\203x\357D!\211G\203x\314 N\360\216\361G\307P!\"G\344\352\nHG\362D!\205g\363DPBCA&E*\202\350H\364\235\203\224\344\352\nHD\312BCA&E\202\350H\365\235\203\260\344\352\nHD\312BCA&E\202\350H\366\230\203\313\344\352\nH\353DB\312A&E\202\350\367\321\370HQ\"8\211F!\203\314 N\371\216F\316D!@\372\373!\205\375\374;\375\"\203\373\376\202\375;#*E\202\350H\325\230\203\316\314 N\377\216\313\201Y D\"\203-\201Z \353\337\312D$\317\351D\"D\2021D\312D\211R@SR\211TA@)\211U\205l\313\201[ U\"?\205l\313\201\\ U\"?\205l\313\201] U\"?\205l\354\316U!!V\313\341B\"\203\235\201Z \353\337\211B$W\313\201^ W\"\203\227\201Z \353\337\211W$\202\231W)\202\237BX\367I!\203\267ISJ\"\204\267B\202\307\344\352\n\325SVXCA&E.\202\350\201_ H\333\314 N\201` \216\316D!*\201a \260E\201Z E\337\211M$MKEG\\K\2027 M.\207" [buffer-file-name default-directory opt-plist org-lparse-link-description-is-image link desc2 0 file-name-directory plist-get :link-validation-function nil string-match match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-link-unescape match-string 3 2 ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) file-name-absolute-p "^\\.\\.?/" "file" "internal" org-extract-attributes get-text-property org-attributes 5 ":" org-file-image-p org-lparse-get INLINE-IMAGE-EXTENSIONS t ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "^file:" ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-add-props org-lparse-format INLINE-IMAGE (org-protected t) string-to-char 35 1 ORG-LINK "" org-solidify-link-text ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "id" org-id-find-id-file ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) file-relative-name org-uuidgen-p "ID-" ("http" "https") ("ftp" "mailto" "news") "coderef" functionp assoc ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) boundp org-lparse-backend eql xhtml html ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) desc1 descp desc attr path rpl fnc id-file type link-validate current-dir start org-bracket-link-analytic-regexp++ line save-match-data-internal frag-0 org-current-export-file org-link-protocols components path-1 x fragment-0 fragment-1 desc-1 desc-2 "::\\(.*\\)" replace-match "^[0-9]*$" "^\\*" "^/.*/$" "\\.org$" "<i><" ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "></i>"] 16 (#$ . 5310)]) (defalias 'org-lparse-stash-save-paragraph-state #[nil "\302!\204\f \303\304\305C\"\210 \306\211\207" [org-lparse-par-open-stashed org-lparse-par-open zerop signal cl-assertion-failed (zerop org-lparse-par-open-stashed) nil] 3]) (defalias 'org-lparse-stash-pop-paragraph-state #[nil "\302\211\207" [org-lparse-par-open-stashed org-lparse-par-open 0] 2]) (defalias 'with-org-lparse-preserve-paragraph-state '(macro . #[(&rest body) "\301\302\303\304\305\"BBB\207" [body let ((org-lparse-do-open-par org-lparse-par-open)) (org-lparse-end-paragraph) append ((when org-lparse-do-open-par (org-lparse-begin-paragraph)))] 6])) (put 'with-org-lparse-preserve-paragraph-state 'edebug-form-spec '(body)) #@694 List of native backends registered with `org-lparse'. A backend can use `org-lparse-register-backend' to add itself to this list. All native backends must implement a get routine and a mandatory set of callback routines. The get routine must be named as org-<backend>-get where backend is the name of the backend. The exporter uses `org-lparse-get' and retrieves the backend-specific callback by querying for ENTITY-CONTROL and ENTITY-FORMAT variables. For the sake of illustration, the html backend implements `org-xhtml-get'. It returns `org-xhtml-entity-control-callbacks-alist' and `org-xhtml-entity-format-callbacks-alist' as the values of ENTITY-CONTROL and ENTITY-FORMAT settings. (defvar org-lparse-native-backends nil (#$ . 9565)) #@90 Make BACKEND known to `org-lparse' library. Add BACKEND to `org-lparse-native-backends'. (defalias 'org-lparse-register-backend #[(backend) "\205! 9\203 \301!\202 ;\203 \202 \302\303\"\304\305\"\207" [backend symbol-name error "Error while registering backend: %S" add-to-list org-lparse-native-backends] 3 (#$ . 10316)]) (defalias 'org-lparse-unregister-backend #[(backend) "\3029\203\f \303!\202 ;\205 \"\304\305\"\207" [backend org-lparse-native-backends remove symbol-name message "Unregistered backend %S"] 3]) #@287 Return verbose info about formats to which IN-FMT can be converted. Return a list where each element is of the form (CONVERTER-PROCESS . OUTPUT-FMT-ALIST). See `org-export-odt-convert-processes' for CONVERTER-PROCESS and see `org-export-odt-convert-capabilities' for OUTPUT-FMT-ALIST. (defalias 'org-lparse-do-reachable-formats #[(in-fmt) "\306 \306\211\203K @\307\n\310\"\307\n\311\"\f\203C \306\211\203B @\fA@\235\203; \f\3128BBA\211\204$ **A\211\204\n \306+\207" [reachable-formats org-lparse-native-backends backend --dolist-tail-- converter capabilities nil org-lparse-backend-get CONVERT-METHOD CONVERT-CAPABILITIES 2 c in-fmt] 4 (#$ . 10860)]) #@112 Return list of formats to which IN-FMT can be converted. The list of the form (OUTPUT-FMT-1 OUTPUT-FMT-2 ...). (defalias 'org-lparse-reachable-formats #[(in-fmt) "\302\303\304\305\306\307\310\311 !\"\"\"\210)\207" [l in-fmt nil mapc #[(e) "\301\302\"\207" [e add-to-list l] 3] apply append mapcar #[(e) "\301\302A\"\207" [e mapcar car] 3] org-lparse-do-reachable-formats] 8 (#$ . 11546)]) #@55 Return non-nil if IN-FMT can be converted to OUT-FMT. (defalias 'org-lparse-reachable-p #[(in-fmt out-fmt) "\300\301\215\207" [done (byte-code "\306!\211\307\211\205* @\310\f\nA\"\211\203! \311\312\n@ B\"\210)A\211\204\f \307+\207" [in-fmt reachable-formats e --dolist-tail-- out-fmt out-fmt-spec org-lparse-do-reachable-formats nil assoc throw done] 5)] 2 (#$ . 11945)]) (defalias 'org-lparse-backend-is-native-p #[(backend) " \235\207" [backend org-lparse-native-backends] 2]) #@1347 Export the outline to various formats. If there is an active region, export only the region. The outline is first exported to NATIVE-BACKEND and optionally converted to TARGET-BACKEND. See `org-lparse-native-backends' for list of known native backends. Each native backend can specify a converter and list of target backends it exports to using the CONVERT-PROCESS and OTHER-BACKENDS settings of it's get method. See `org-xhtml-get' for an illustrative example. ARG is a prefix argument that specifies how many levels of outline should become headlines. The default is 3. Lower levels will become bulleted lists. HIDDEN is obsolete and does nothing. EXT-PLIST is a property list that controls various aspects of export. The settings here override org-mode's default settings and but are inferior to file-local settings. TO-BUFFER dumps the exported lines to a buffer or a string instead of a file. If TO-BUFFER is the symbol `string' return the exported lines as a string. If TO-BUFFER is non-nil, create a buffer with that name and export to that buffer. BODY-ONLY controls the presence of header and footer lines in exported text. If BODY-ONLY is non-nil, don't produce the file header and footer, simply return the content of <body>...</body>, without even the body tags themselves. PUB-DIR specifies the publishing directory. (defalias 'org-lparse #[(target-backend native-backend arg &optional hidden ext-plist to-buffer body-only pub-dir) "\306!\n\205 \306\n!\307\310\311\"\210\307\312\313\"\210\314!\204! \315\316\"\210\n\232\2047 \317\n\"\2047 \315\320\n\321\322\"#\210\323\324!\210\325\f &\326\310\311\"\210\326\312\313\"\210*\207" [native-backend org-lparse-backend target-backend org-lparse-other-backend arg hidden intern add-hook org-export-preprocess-hook org-lparse-strip-experimental-blocks-maybe org-export-preprocess-after-blockquote-hook org-lparse-preprocess-after-blockquote org-lparse-backend-is-native-p error "Don't know how to export natively to backend %s" org-lparse-reachable-p "Don't know how to export to backend %s %s" format "via %s" run-hooks org-export-first-hook org-do-lparse remove-hook ext-plist to-buffer body-only pub-dir] 7 (#$ . 12442)]) #@180 Control flashing of messages logged with `org-lparse-warn'. When non-nil, messages are fontified with warning face and the exporter lingers for a while to catch user's attention. (custom-declare-variable 'org-lparse-use-flashy-warning nil '(#$ . 14663) :type 'boolean :group 'org-lparse) #@110 Return IN-FILE and OUT-FMT params for `org-lparse-do-convert'. This is a helper routine for interactive use. (defalias 'org-lparse-convert-read-params #[nil "\306\307!\203\n \310\202 \311\312\313\314 \315$\316\n!\317!\211\203) \320\f\314\211\211%\206- \321\322\"\n -D\207" [input buffer-file-name in-file in-fmt out-fmt-choices out-fmt featurep ido ido-completing-read completing-read read-file-name "File to be converted: " nil t file-name-extension org-lparse-reachable-formats "Output format: " error "No known converter or no known output formats for %s files"] 7 (#$ . 14958)]) #@49 Workhorse routine for `org-export-odt-convert'. (defalias 'org-lparse-do-convert #[(in-file out-fmt &optional prefix-arg) "\306\307!\210\310\206\n !\311!\206 \312\313\"\314!\f\206\"