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 ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:07:18 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-freemind.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!\210\304\305\306\307\310\302%\207" [require xml org org-exp custom-declare-group org-freemind nil "Customization group for org-freemind export/import." :group] 6) #@15 Internal use. (defvar org-freemind-node-style nil (#$ . 769)) #@41 Styles to apply to node. NOT READY YET. (custom-declare-variable 'org-freemind-node-styles nil '(#$ . 837) :type '(repeat (list :tag "Node styles for file" (regexp :tag "File name") (repeat (list :tag "Node" (regexp :tag "Node name regexp") (set :tag "Node properties" (list :format "%v" (const :format #1="" node-style) (choice :tag "Style" :value bubble (const bubble) (const fork))) (list :format "%v" (const :format #1# color) (color :tag "Color" :value "red")) (list :format "%v" (const :format #1# background-color) (color :tag "Background color" :value "yellow")) (list :format "%v" (const :format #1# edge-color) (color :tag "Edge color" :value "green")) (list :format "%v" (const :format #1# edge-style) (choice :tag "Edge style" :value bezier (const :tag "Linear" linear) (const :tag "Bezier" bezier) (const :tag "Sharp Linear" sharp-linear) (const :tag "Sharp Bezier" sharp-bezier))) (list :format "%v" (const :format #1# edge-width) (choice :tag "Edge width" :value thin (const :tag "Parent" parent) (const :tag "Thin" thin) (const 1) (const 2) (const 4) (const 8))) (list :format "%v" (const :format #1# italic) (const :tag "Italic font" t)) (list :format "%v" (const :format #1# bold) (const :tag "Bold font" t)) (list :format "%v" (const :format #1# font-name) (string :tag "Font name" :value "SansSerif")) (list :format "%v" (const :format #1# font-size) (integer :tag "Font size" :value 12))))))) :group 'org-freemind) #@728 Export the current buffer as a Freemind file. If there is an active region, export only the region. HIDDEN is obsolete and does nothing. EXT-PLIST is a property list with external parameters overriding org-mode's default settings, but still inferior to file-local settings. When TO-BUFFER is non-nil, create a buffer with that name and export to that buffer. If TO-BUFFER is the symbol `string', don't leave any buffer behind but just return the resulting HTML as a string. When BODY-ONLY is set, don't produce the file header and footer, simply return the content of the document (all top level sections). When PUB-DIR is set, use this as the publishing directory. See `org-freemind-from-org-mode' for more information. (defalias 'org-export-as-freemind #[(&optional hidden ext-plist to-buffer body-only pub-dir) "\306\307 \310 #\311 \211\205 \312 \n\205 \313 \314 \315\"?\2055 \n\2055 \212b\210\316 \2054 \317\320\211\"\fY)\211\203A \321 \"\202B \211!\322\323 \206M p!\"\324#\206Z \325\326 \"!\327 \203i \330\312 \331\320#\206m \332\"!!\333Q$\334$!\203~ \335$!\210 \203\214 \336\337!$\"\202\222 \340\"$\".\207" [ext-plist opt-plist region-p rbeg rend subtree-p org-combine-plists org-default-export-plist org-infile-export-plist org-region-active-p region-beginning region-end plist-get :ignore-subtree-p org-at-heading-p org-end-of-subtree t org-export-add-subtree-options buffer-file-name buffer-base-buffer file-name-as-directory org-export-directory :ascii file-name-sans-extension org-entry-get "EXPORT_FILE_NAME" file-name-nondirectory ".mm" file-exists-p delete-file org-freemind-from-org-mode-node line-number-at-pos org-freemind-from-org-mode org-export-opt-plist bfname pub-dir filename] 7 (#$ . 2280) "P"]) #@32 Show file MM-FILE in Freemind. (defalias 'org-freemind-show #[(mm-file) "\301!\207" [mm-file org-open-file] 2 (#$ . 4036) (list (let ((save-match-data-internal (match-data))) (unwind-protect (progn (let ((name (read-file-name "FreeMind file: " nil nil nil (if (buffer-file-name) (let* ((name-ext (file-name-nondirectory (buffer-file-name))) (name (file-name-sans-extension name-ext)) (ext (file-name-extension name-ext))) (cond ((string= "mm" ext) name-ext) ((string= "org" ext) (let ((name-mm (concat name ".mm"))) (if (file-exists-p name-mm) name-mm (message "Not exported to Freemind format yet") #1=""))) (t #1#))) #1#) #'(lambda (fn) (string-match "^mm$" (file-name-extension fn)))))) (setq name (expand-file-name name)) name)) (set-match-data save-match-data-internal 'evaporate))))]) (defconst org-freemind-org-nfix "--org-mode: ") #@94 Do some html-escaping of ORG-STR and return the result. The characters "&<> will be escaped. (defalias 'org-freemind-escape-str-from-org #[(org-str) "\305\306\"\307\211\306\211\203W \f@ \310W\203G \311U\203# \312\202N \313U\203- \314\202N \315U\2037 \316\202N \317U\203A \320\202N \321!\202N \322\323\324\325\"\"P\fA\211\204 * *\207" [org-str fm-str chars cc --dolist-tail-- append nil "" 160 34 """ 38 "&" 60 "<" 62 ">" char-to-string format "&#x%x;" encode-char ucs] 7 (#$ . 4882)]) #@150 Do some html-unescaping of FM-STR and return the result. This is the opposite of `org-freemind-escape-str-from-org' but it will also unescape &#nn;. (defalias 'org-freemind-unescape-str-to-org #[(fm-str) "\302\303\304 #\302\305\306 #\302\307\310 #\302\311\312 #\302\313\314 #\211)\207" [fm-str org-str replace-regexp-in-string """ "\"" "&" "&" "<" "<" ">" ">" "&#x\\([a-f0-9]\\{2,4\\}\\);" #[(m) "\301\302\303\304\"\305\"\306\\!\207" [m char-to-string string-to-number match-string 1 16 0] 5]] 4 (#$ . 5405)]) #@85 Helper for `org-freemind-convert-links-from-org'. MATCHED is the link just matched. (defalias 'org-freemind-convert-links-helper #[(matched) "\306\307\"\306\310\"\311 !\312 \313\314\315 \f#,\316 !\2052 \317O\211\320\235)\211 \203H \321\322 \323\n\324\325\326\n\327\330\260\202O \331 \332\n\333\260-\207" [matched link text ext start string match-string 1 2 file-name-extension ":" nil t string-match image-type-from-file-name 0 ("file" "http" "https") "<table border=\"0\" style=\"border: solid 1px #ddd;\"><tr><td>" "<img src=\"" "\" alt=\"" "\" />" "<br />" "<i>" "</i>" "</td></tr></table>" "<a href=\"" "\">" "</a>" regexp inhibit-changing-match-data col-pos url-type is-img] 12 (#$ . 5944)]) #@71 Convert org links in ORG-STR to freemind links and return the result. (defalias 'org-freemind-convert-links-from-org #[(org-str) "\302\303\304\305\211\306&\302\307\310 \311\211%)\207" [org-str fm-str replace-regexp-in-string "[^\"[]\\(http ?://[--:#%&()=?-Z_a-z~]+\\)" "[[\\1][\\1]]" nil 1 "\\[\\[\\(.*?\\)]\\[\\(.*?\\)]]" org-freemind-convert-links-helper t] 7 (#$ . 6670)]) #@70 Convert freemind links in FM-STR to org links and return the result. (defalias 'org-freemind-convert-links-to-org #[(fm-str) "\301\302\303#\207" [fm-str replace-regexp-in-string "<a[[:space:]]\\(?:[^>]*[[:space:]]\\)*href=\"\\([^\"]*\\)\"[^>]*>\\([^<]*\\)</a>" "[[\\1][\\2]]"] 5 (#$ . 7055)]) (defvar org-freemind-bol-helper-base-indent nil) #@77 Helper for `org-freemind-convert-text-p'. MATCHED is the link just matched. (defalias 'org-freemind-bol-helper #[(matched) "\306\307\310\"\310\211\2038 @\211\311U\203+ \312 W\203$ S\2021 \n\313P\2021 \n\314\f!P A\211\204 *\n*\207" [org-freemind-bol-helper-base-indent bi res matched cc --dolist-tail-- "" append nil 32 0 " " char-to-string] 4 (#$ . 7404)]) #@43 Convert TEXT to html with <p> paragraphs. (defalias 'org-freemind-convert-text-p #[(text) "\306\307\310\311\n #,\312!\313\314\315#\313\316\317#\320P\313\321\322#\313\323\324#\313\325\326#\211\327P\330!\207" [text start string regexp inhibit-changing-match-data org-freemind-bol-helper-base-indent "[^ ]" nil t string-match org-freemind-escape-str-from-org replace-regexp-in-string "\\([[:space:]]\\)\\(/\\)\\([^/]+\\)\\(/\\)\\([[:space:]]\\)" "\\1<i>\\3</i>\\5" "\\([[:space:]]\\)\\(*\\)\\([^*]+\\)\\(*\\)\\([[:space:]]\\)" "\\1<b>\\3</b>\\5" "<p>" "\n[[:blank:]]*\n" "</p><p>" "\\(?:<p>\\|\n\\) +" org-freemind-bol-helper "\n" "<br />" "</p>" org-freemind-convert-links-from-org] 5 (#$ . 7786)]) #@31 CSS style for Freemind nodes. (custom-declare-variable 'org-freemind-node-css-style "p { margin-top: 3px; margin-bottom: 3px; }" '(#$ . 8512) :version "24.1" :group 'org-freemind) #@237 Convert text part of org node to freemind subnode or note. Convert the text part of the org node named NODE-NAME. The text is in the current buffer between START and END. Drawers matching DRAWERS-REGEXP are converted to freemind notes. (defalias 'org-freemind-org-text-to-freemind-subnode/note #[(node-name start end drawers-regexp) "\306 \"\307\211\310 \311\216\312%\313&\f\"\2031 \314\315\f\"%B%\f\315\211\224O\f\315\225\312OP\202 %\203x %\312'\211(\203w (@'\316'\317\"\211)\312*\211(\203m (@*\n+*\320R(A\211(\204W +(A\211(\204A *)\nG\315V\203\213 \321\322\323\324\n\325\326\327\260\fG\330V\203\331\332\322,G\315U\203\241 \307\202\251 \333\334,\335\336\260\323\324\260\337\340\312\211\211-./01\3131\f\"\203\f\315\211\224O/\315\225-\341/!P\f-\312O\3130\f\"\211.\203\357 \315\225-\202\372 \342\343!\210\fG\211.-\f\315.OP\f-\312O\202\275 \341\f!P-\325\326\327\n\344\260\n-D\207" [start end note-res node-res text save-match-data-internal buffer-substring-no-properties "" match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) nil string-match match-string 0 split-string "\n" "<br />\n" "<richcontent TYPE=\"NOTE\"><html>\n" "<head>\n" "</head>\n" "<body>\n" "</body>\n" "</html>\n" "</richcontent>\n" 1 "<node style=\"bubble\" background_color=\"#eeee00\">\n" "<richcontent TYPE=\"NODE\"><html>\n" "<style type=\"text/css\">\n" "<!--\n" "-->\n" "</style>\n" "#\\+BEGIN_HTML" "#\\+END_HTML" org-freemind-convert-text-p message "org-freemind: Missing #+END_HTML" "</node>\n" drawers drawers-regexp drawer --dolist-tail-- lines line org-freemind-org-nfix org-freemind-node-css-style end-pos-match end-pos head end-html-mark begin-html-mark] 9 (#$ . 8699)]) (defalias 'org-freemind-write-node #[(mm-buffer drawers-regexp num-left-nodes base-level current-level next-level this-m2 this-node-end this-children-visible next-node-start next-has-some-visible-child) "\306\211\306\211\306\211\307\3106\"\203\255 \311\312\306\2116$6\313\300\314\"\210\315\307\3166\"\203\255 \317\320\3216\"!7\311\312\306\2116$67\322U\203O \313\300\323\"\210\324\202\254 7\325U\203` \313\300\326\"\210\327\202\254 7\330U\203q \313\300\331\"\210\332\202\254 7\333U\203\202 \313\300\334\"\210\335\202\254 7\336U\203\221 \313\300\337\"\210\202\254 7\340U\203\240 \313\300\341\"\210\202\254 7\342U\203\254 \313\300\343\"\210)\3446!6\30786\"\203\324 \345\320\3216\"\320\3466\"\347R\311\350\306\2116\351%6\3526!\3539:S;$\211<@<A@)r=q\210\354\n\203\374 \n\202\375 \312\355\356\261\210\3576!\210>?V\203@\204A\204\360c\210?BTU\2035C\351V\2035CSC\361c\210 \203?\362 \356\261\210\363c\210\203f\306D\211E\203eE@D\364D\365\261\210EA\211E\204P*)r=q\210\f\203s\fc\210.C\207" [this-icons this-bg-color this-m2-link this-m2-escaped this-rich-node this-rich-note nil string-match "TODO" replace-match "" add-to-list "button_cancel" "#ffff88" "\\[#\\(.\\)\\]" string-to-char match-string 1 65 "full-1" "#ff0000" 66 "full-2" "#ffaa00" 67 "full-3" "#ffdd00" 68 "full-4" "#ffff00" 69 "full-5" 70 "full-6" 71 "full-7" org-trim "link=\"" 3 "\" " "\\5" 0 org-freemind-escape-str-from-org org-freemind-org-text-to-freemind-subnode/note "<node " "text=\"" "\"" org-freemind-get-node-style " folded=\"true\"" " position=\"left\"" " background_color=\"" ">\n" "<icon builtin=\"" "\"/>\n" this-m2 prior org-bracket-link-analytic-regexp this-node-end next-node-start drawers-regexp node-notes mm-buffer next-level current-level this-children-visible next-has-some-visible-child base-level num-left-nodes icon --dolist-tail--] 7]) #@234 Check if file FILE already exists. If FILE does not exists return t. If INTERACTIVELY is non-nil ask if the file should be replaced and return t/nil if it should/should not be replaced. Otherwise give an error say the file exists. (defalias 'org-freemind-check-overwrite #[(file interactively) "\302!\203 \203 \303\304\305\"!\207\306\307\"\207\310\207" [file interactively file-exists-p y-or-n-p format "File %s exists, replace it? " error "File %s already exists" t] 4 (#$ . 12374)]) (defvar org-freemind-node-pattern "^\\(\\*+\\)[[:space:]]+\\(.*?\\)$") (defalias 'org-freemind-look-for-visible-child #[(node-level) "\212\306 \307\216\310 \2044 \311\n\310\312#\2034 \313\314!\211G \fY\203&