From mboxrd@z Thu Jan 1 00:00:00 1970
From: Nick Dokos \\)\\([ =0D\n=
]*\\)\\=3D" ... t) (setq par ...) (replace-match "\\2\n")) (insert line "\n=
") (while (and lines ... ...) (insert ... "\n")) (and par (insert " \n"))=
) (throw (quote nextline) nil)) (when (equal "ORG-BLOCKQUOTE-START" line) (=
org-close-par-maybe) (insert " \n") (setq org-par-open t) (setq inverse t) (throw (quot=
e nextline) nil)) (when (equal "ORG-VERSE-END" line) (insert " \\)[^=00]*?\\)\\(\\(\\2\\)\\|\\'\\)" nil t) (pus=
h (match-string 1) footnotes) (replace-match "\\4" t nil) (goto-char (match=
-beginning 0)))) (when footnotes (insert (format org-export-html-footnotes-=
section (nth 4 lang-words) (mapconcat (quote identity) (nreverse footnotes)=
"\n")) "\n")) (let ((bib (org-export-html-get-bibliography))) (when bib (i=
nsert "\n" bib "\n"))) (unless body-only (insert "\n") (let ((html-po=
st (plist-get opt-plist :html-postamble)) (email (mapconcat (lambda ... ...=
) (split-string email ",+ *") ", ")) (creator-info (concat "Org version " o=
rg-version " with Emacs version " (number-to-string emacs-major-version))))=
(when (plist-get opt-plist :html-postamble) (insert "\n \\s-*\\[TABLE-OF-CONTENTS\\]\\s-*" title "
\n")) (if (and org-export-=
with-toc (not body-only)) (progn (push (format "\=
n
\n" thetoc)) (push "\n")) (insert (org-html-pr=
otect (match-string 3 line)) "\n") (when (or (not lines) (not ...)) (setq i=
nfixed nil) (insert "
\n") (org-open-par)) (throw (quote nextline) nil=
)) (when (and (get-text-property 0 (quote org-protected) line) (not (< ... =
...))) (let (par (ind ...)) (when (re-search-backward "\\(\n") (org-open-par) (throw (quote=
nextline) nil)) (when (equal "ORG-BLOCKQUOTE-END" line) (org-close-par-may=
be) (insert "\n
\n") (org-open-par) (throw (quote nextline) nil=
)) (when (equal "ORG-VERSE-START" line) (org-close-par-maybe) (insert "\n") (setq inquote=
t))) ((and org-export-with-tables (string-match "^\\([ ]*\\)\\(|\\|\\+-+\=
\+\\)" line)) (when (not table-open) (setq table-open t table-buffer nil ta=
ble-orig-buffer nil)) (setq table-buffer (cons line table-buffer) table-ori=
g-buffer (cons origline table-orig-buffer)) (when (or ... ...) (setq table-=
open nil table-buffer ... table-orig-buffer ...) (org-close-par-maybe) (ins=
ert ...))) (t (when (get-text-property 0 ... line) (setq line ...)) (when (=
string-match "^[ ]*-\\{5,\\}[ ]*$" line) (if org-par-open ... ...) (throw=
... nil)) (if (string-match "^ [-+*]-\\|^[ ]*$" line) (org-open-par)) (wh=
en org-export-with-footnotes (when ... ...) (when ... ... ...)) (cond (... =
...) (org-export-preserve-breaks ...)) (let (...) (while ... ... ...)) (ins=
ert line "\n"))))) (when inquote (insert "
\n") (org-open-par)) (org-h=
tml-level-start 1 nil umax (and org-export-with-toc (<=3D level umax)) head=
-count opt-plist) (when (and (> umax 0) first-heading-pos) (insert "
= [ =0D\n ]*
" nil t) (replace-match "")) (goto-char (point-min)) (goto-ch= ar (point-min)) (let (beg end n) (while (setq beg (next-single-property-cha= nge (point) (quote org-whitespace))) (setq n (get-text-property beg (quote = org-whitespace)) end (next-single-property-change beg (quote org-whitespace= ))) (goto-char beg) (delete-region beg end) (insert (format "%s" (make-string n 120))))) (goto-char (point= -min)) (when (looking-at "\\s-+\n") (replace-match "")) (remove-text-proper= ties (point-min) (point-max) (quote (display t))) (run-hooks (quote org-exp= ort-html-final-hook)) (or to-buffer (save-buffer)) (goto-char (point-min)) = (or (org-export-push-to-kill-ring "HTML") (message "Exporting... done")) (i= f (eq to-buffer (quote string)) (prog1 (buffer-substring (point-min) (point= -max)) (kill-buffer (current-buffer))) (current-buffer)))) org-export-as-html(nil) call-interactively(org-export-as-html) (if (and bg (nth 2 ass) (not (buffer-base-buffer)) (not (org-region-activ= e-p))) (let ((p (start-process (concat "Exporting " (file-name-nondirectory= (buffer-file-name))) "*Org Processes*" (expand-file-name invocation-name i= nvocation-directory) "-batch" "-l" user-init-file "--eval" "(require 'org-e= xp)" "--eval" "(setq org-wait .2)" (buffer-file-name) "-f" (symbol-name (nt= h 1 ass))))) (set-process-sentinel p (quote org-export-process-sentinel)) (= message "Background process \"%s\": started" p)) (if subtree-p (progn (org-= mark-subtree) (org-activate-mark))) (call-interactively (nth 1 ass)) (when = (and bpos (get-buffer-window cbuf)) (let ((cw (selected-window))) (select-w= indow (get-buffer-window cbuf)) (goto-char cpos) (deactivate-mark) (select-= window cw)))) (let* ((bg (org-xor (equal arg (quote (16))) org-export-run-in-background= )) (subtree-p (or (org-region-active-p) (eq org-export-initial-scope (quote= subtree)))) (help "[t] insert the export option template\n[v] limit ex= port to visible part of outline tree\n[1] switch buffer/subtree export\n[= SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\= n\n[a/n/u] export as ASCII/Latin-1/UTF-8 [A/N/U] to temporary buffe= r\n\n[h] export as HTML [H] to temporary buffer [R] export region\n[= b] export as HTML and open in browser\n\n[l] export as LaTeX [L] to tem= porary buffer\n[p] export as LaTeX and process to PDF [d] ... an= d open PDF file\n\n[D] export as DocBook [V] export as DocBook, process t= o PDF, and open\n\n[o] export as OpenDocumentText [O] ..= . and open\n\n[j] export as TaskJuggler [J] ... and= open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g] export us= ing Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar= file\n[I] export all agenda files as iCalendar files [c] ...as one combi= ned file\n\n[F] publish current file [P] publish current project\n= [X] publish a project... [E] publish every projects") (cmds (quote= ((116 org-insert-export-options-template nil) (118 org-export-visible nil)= (97 org-export-as-ascii t) (65 org-export-as-ascii-to-buffer t) (110 org-e= xport-as-latin1 t) (78 org-export-as-latin1-to-buffer t) (117 org-export-as= -utf8 t) (85 org-export-as-utf8-to-buffer t) (104 org-export-as-html t) (98= org-export-as-html-and-open t) (72 org-export-as-html-to-buffer nil) (82 o= rg-export-region-as-html nil) (120 org-export-as-xoxo t) (103 org-export-ge= neric t) (68 org-export-as-docbook t) (86 org-export-as-docbook-pdf-and-ope= n t) (111 org-export-as-odt t) (79 org-export-as-odt-and-open t) (106 org-e= xport-as-taskjuggler t) (74 org-export-as-taskjuggler-and-open t) (109 org-= export-as-freemind t) (108 org-export-as-latex t) (112 org-export-as-pdf t)= (100 org-export-as-pdf-and-open t) (76 org-export-as-latex-to-buffer nil) = (105 org-export-icalendar-this-file t) (73 org-export-icalendar-all-agenda-= files t) (99 org-export-icalendar-combine-agenda-files t) (70 org-publish-c= urrent-file t) (80 org-publish-current-project t) (88 org-publish t) (69 or= g-publish-all t)))) r1 r2 ass (cpos (point)) (cbuf (current-buffer)) bpos) = (save-excursion (save-window-excursion (if subtree-p (message "Export subtr= ee: ") (message "Export buffer: ")) (delete-other-windows) (with-output-to-= temp-buffer "*Org Export/Publishing Help*" (princ help)) (org-fit-window-to= -buffer (get-buffer-window "*Org Export/Publishing Help*")) (while (eq (set= q r1 (read-char-exclusive)) 49) (cond (subtree-p (setq subtree-p nil) (mess= age "Export buffer: ")) ((not subtree-p) (setq subtree-p t) (setq bpos (poi= nt)) (message "Export subtree: ")))) (when (eq r1 32) (let ((case-fold-sear= ch t) (end (save-excursion ... ...))) (outline-next-heading) (if (re-search= -backward "^[ ]+\\(:latex_class:\\|:export_title:\\|:export_file_name:\\)[= ]+\\S-" end t) (progn (org-back-to-heading t) (setq subtree-p t) (setq bp= os ...) (message "Select command (for subtree): ") (setq r1 ...)) (error "N= o enclosing node with LaTeX_CLASS or EXPORT_TITLE or EXPORT_FILE_NAME")))))= ) (if (fboundp (quote redisplay)) (redisplay)) (and bpos (goto-char bpos)) = (setq r2 (if (< r1 27) (+ r1 96) r1)) (unless (setq ass (assq r2 cmds)) (er= ror "No command associated with key %c" r1)) (if (and bg (nth 2 ass) (not (= buffer-base-buffer)) (not (org-region-active-p))) (let ((p (start-process (= concat "Exporting " (file-name-nondirectory ...)) "*Org Processes*" (expand= -file-name invocation-name invocation-directory) "-batch" "-l" user-init-fi= le "--eval" "(require 'org-exp)" "--eval" "(setq org-wait .2)" (buffer-file= -name) "-f" (symbol-name (nth 1 ass))))) (set-process-sentinel p (quote org= -export-process-sentinel)) (message "Background process \"%s\": started" p)= ) (if subtree-p (progn (org-mark-subtree) (org-activate-mark))) (call-inter= actively (nth 1 ass)) (when (and bpos (get-buffer-window cbuf)) (let ((cw (= selected-window))) (select-window (get-buffer-window cbuf)) (goto-char cpos= ) (deactivate-mark) (select-window cw))))) org-export(nil) call-interactively(org-export nil nil) --=-=-=--