;ELC
|
;;; Compiled
|
;;; in Emacs version 26.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&\210\312\313\314\315\316\317\320\321&\210\322\323\324\325\326DD\327\320\313\330\331\332\333\334\335&\210\322\336\324\325\337DD\340\320\313\330\331\332\341\334\335&\210\322\342\324\325\343DD\344\320\313\330\331\332\345\334\346&\210\322\347\324\325\350DD\351\320\313\330\331\332\352\334\335&\210\322\353\324\325\354DD\355\320\313\330\331\332\356\334\357&\210\322\360\324\325\361DD\362\320\363\320\313\330\331\332\364\334\365& \210\322\366\324\325\367DD\370\320\313\330\331\332\371\334\372&\210\322\373\324\325\374DD\375\320\313\330\331\332\376\334\335&\207" [require cl-lib ox org-export-define-backend man ((babel-call . org-man-babel-call) (bold . org-man-bold) (center-block . org-man-center-block) (code . org-man-code) (drawer . org-man-drawer) (dynamic-block . org-man-dynamic-block) (entity . org-man-entity) (example-block . org-man-example-block) (export-block . org-man-export-block) (export-snippet . org-man-export-snippet) (fixed-width . org-man-fixed-width) (footnote-definition . org-man-footnote-definition) (footnote-reference . org-man-footnote-reference) (headline . org-man-headline) (horizontal-rule . org-man-horizontal-rule) (inline-babel-call . org-man-inline-babel-call) (inline-src-block . org-man-inline-src-block) (inlinetask . org-man-inlinetask) (italic . org-man-italic) (item . org-man-item) (keyword . org-man-keyword) (line-break . org-man-line-break) (link . org-man-link) (node-property . org-man-node-property) (paragraph . org-man-paragraph) (plain-list . org-man-plain-list) (plain-text . org-man-plain-text) (planning . org-man-planning) (property-drawer . org-man-property-drawer) (quote-block . org-man-quote-block) (radio-target . org-man-radio-target) (section . org-man-section) (special-block . org-man-special-block) (src-block . org-man-src-block) (statistics-cookie . org-man-statistics-cookie) (strike-through . org-man-strike-through) (subscript . org-man-subscript) (superscript . org-man-superscript) (table . org-man-table) (table-cell . org-man-table-cell) (table-row . org-man-table-row) (target . org-man-target) (template . org-man-template) (timestamp . org-man-timestamp) (underline . org-man-underline) (verbatim . org-man-verbatim) (verse-block . org-man-verse-block)) :menu-entry (77 "Export to MAN" ((109 "As MAN file" org-man-export-to-man) (112 "As PDF file" org-man-export-to-pdf) (111 "As PDF file and open" (lambda (a s v b) (if a (org-man-export-to-pdf t s v b) (org-open-file (org-man-export-to-pdf nil s v b))))))) :options-alist ((:man-class "MAN_CLASS" nil nil t) (:man-class-options "MAN_CLASS_OPTIONS" nil nil t) (:man-header-extra "MAN_HEADER" nil nil newline) (:man-tables-centered nil nil org-man-tables-centered) (:man-tables-verbatim nil nil org-man-tables-verbatim) (:man-table-scientific-notation nil nil org-man-table-scientific-notation) (:man-source-highlight nil nil org-man-source-highlight) (:man-source-highlight-langs nil nil org-man-source-highlight-langs)) custom-declare-group org-export-man nil "Options for exporting Org mode files to Man." :tag "Org Export Man" :group org-export custom-declare-variable org-man-tables-centered funcall function #[0 "\300\207" [t] 1] "When non-nil, tables are exported in a center environment." :version "24.4" :package-version (Org . "8.0") :type boolean org-man-tables-verbatim #[0 "\300\207" [nil] 1] "When non-nil, tables are exported verbatim." (Org . "8.0") org-man-table-scientific-notation #[0 "\300\207" [#1="%sE%s"] 1 #1#] "Format string to display numbers in scientific notation.\nThe format should have \"%s\" twice, for mantissa and exponent\n(i.e. \"%s\\\\times10^{%s}\").\n\nWhen nil, no transformation is made." (Org . "8.0") (choice (string :tag "Format string") (const :tag "No formatting")) org-man-source-highlight #[0 "\300\207" [nil] 1] "Use GNU source highlight to embellish source blocks " (Org . "8.0") org-man-source-highlight-langs #[0 "\300\207" [((emacs-lisp "lisp") (lisp "lisp") (clojure "lisp") (scheme "scheme") (c "c") (cc "cpp") (csharp "csharp") (d "d") (fortran "fortran") (cobol "cobol") (pascal "pascal") (ada "ada") (asm "asm") (perl "perl") (cperl "perl") (python "python") (ruby "ruby") (tcl "tcl") (lua "lua") (java "java") (javascript "javascript") (tex "latex") (shell-script "sh") (awk "awk") (diff "diff") (m4 "m4") (ocaml "caml") (caml "caml") (sql "sql") (sqlite "sql") (html "html") (css "css") (xml "xml") (bat "bat") (bison "bison") (clipper "clipper") (ldap "ldap") (opa "opa") (php "php") (postscript "postscript") (prolog "prolog") (properties "properties") (makefile "makefile") (tml "tml") (vala "vala") (vbscript "vbscript") (xorg "xorg"))] 1] "Alist mapping languages to their listing language counterpart.\nThe key is a symbol, the major mode symbol without the \"-mode\".\nThe value is the string that should be inserted as the language\nparameter for the listings package. If the mode name and the\nlistings name are the same, the language does not need an entry\nin this list - but it does not hurt if it is present." (Org . "8.0") (repeat (list (symbol :tag "Major mode ") (string :tag "Listings language"))) org-man-pdf-process #[0 "\300\207" [("tbl %f | eqn | groff -man | ps2pdf - > %b.pdf" "tbl %f | eqn | groff -man | ps2pdf - > %b.pdf" "tbl %f | eqn | groff -man | ps2pdf - > %b.pdf")] 1] "Commands to process a Man file to a PDF file.\n\nThis is a list of strings, each of them will be given to the\nshell as a command. %f in the command will be replaced by the\nrelative file name, %F by the absolute file name, %b by the file\nbase name (i.e. without directory and extension parts), %o by the\nbase directory of the file and %O by the absolute file name of\nthe output file.\n\nBy default, Org uses 3 runs of to do the processing.\n\nAlternatively, this may be a Lisp function that does the\nprocessing. This function should accept the file name as\nits single argument." org-export-pdf (Org . "8.0") (choice (repeat :tag "Shell command sequence" (string :tag "Shell command")) (const :tag "2 runs of pdfgroff" ("tbl %f | eqn | groff -mm | ps2pdf - > %b.pdf" "tbl %f | eqn | groff -mm | ps2pdf - > %b.pdf")) (const :tag "3 runs of pdfgroff" ("tbl %f | eqn | groff -mm | ps2pdf - > %b.pdf" "tbl %f | eqn | groff -mm | ps2pdf - > %b.pdf" "tbl %f | eqn | groff -mm | ps2pdf - > %b.pdf")) (function)) org-man-logfiles-extensions #[0 "\300\207" [("log" "out" "toc")] 1] "The list of file extensions to consider as Man logfiles." (Org . "8.0") (repeat (string :tag "Extension")) org-man-remove-logfiles #[0 "\300\207" [t] 1] "Non-nil means remove the logfiles produced by PDF production.\nThese are the .aux, .log, .out, and .toc files." (Org . "8.0")] 14)
|
#@221 Return caption and label Man string for ELEMENT.
|
|
INFO is a plist holding contextual information. If there's no
|
caption nor label, return the empty string.
|
|
For non-floats, see `org-man--wrap-label'.
|
|
(fn ELEMENT INFO)
|
(defalias 'org-man--caption/label-string #[514 "\300\211;\203 \301\302#\202 \303A@\"\266\202\304!\304\305\"\204* \204* \306\202Q \2045 \307\310\"\202Q \211\203I \307\311\312\"\312\"#\202Q \307\313\312\"\"\207" [:label get-text-property 0 plist-get org-export-get-caption t "" format "\\fI%s\\fP" "\\fR%s\\fP - \\fI\\P - %s\n" org-export-data "\\fR%s\\fP"] 11 (#$ . 7146)])
|
#@168 Wrap label associated to ELEMENT around OUTPUT, if appropriate.
|
This function shouldn't be used for floats. See
|
`org-man--caption/label-string'.
|
|
(fn ELEMENT OUTPUT)
|
(defalias 'org-man--wrap-label #[514 "\300\211;\203 \301\302#\202 \303A@\"\266\202\203+ \211\203+ \304\230\204+ \211\304\230\203/ \2025 \305\306\"P\207" [:name get-text-property 0 plist-get "" format "%s\n.br\n"] 8 (#$ . 7768)])
|
#@67 Protect minus and backslash characters in string TEXT.
|
|
(fn TEXT)
|
(defalias 'org-man--protect-text #[257 "\300\301\302\303\304%\207" [replace-regexp-in-string "-" "\\-" nil t] 7 (#$ . 8182)])
|
#@160 Return complete document string after Man conversion.
|
CONTENTS is the transcoded contents string. INFO is a plist
|
holding export options.
|
|
(fn CONTENTS INFO)
|
(defalias 'org-man-template #[514 "\300\301\"\205 \302\300\303\"\"\304\305\306\307\310\300\311\"C\312#\"!\300\313\"\2032 \211;\2032 \305\314#\202Q \315\230\203E \211;\203E \305\314\312#\202Q \203P \305\316\"\202Q \317P\207" [plist-get :with-title org-export-data :title read format "(%s)" mapconcat identity :man-class-options " " :section-id ".TH \"%s\" \"%s\" \n" "" ".TH \"%s\" \"1\" \n" ".TH \" \" \"1\" "] 11 (#$ . 8382)])
|
#@146 Transcode BOLD from Org to Man.
|
CONTENTS is the text with bold markup. INFO is a plist holding
|
contextual information.
|
|
(fn BOLD CONTENTS INFO)
|
(defalias 'org-man-bold #[771 "\300\301\"\207" [format "\\fB%s\\fP"] 6 (#$ . 8991)])
|
#@182 Transcode a CENTER-BLOCK element from Org to Man.
|
CONTENTS holds the contents of the center block. INFO is a plist
|
holding contextual information.
|
|
(fn CENTER-BLOCK CONTENTS INFO)
|
(defalias 'org-man-center-block #[771 "\300\301\302\303\304\"GS#\"\207" [org-man--wrap-label format ".ce %d\n.nf\n%s\n.fi" split-string "\n"] 10 (#$ . 9229)])
|
#@67 Transcode a CODE object from Org to Man.
|
|
(fn CODE CONTENTS INFO)
|
(defalias 'org-man-code #[771 "\300\301\302\303\211;\203 \304\305#\202 \306A@\"\266\202!\"\207" [format "\\fC%s\\fP" org-man--protect-text :value get-text-property 0 plist-get] 12 (#$ . 9580)])
|
#@208 Transcode a DRAWER element from Org to Man.
|
DRAWER holds the drawer information
|
CONTENTS holds the contents of the block.
|
INFO is a plist holding contextual information.
|
|
(fn DRAWER CONTENTS INFO)
|
(defalias 'org-man-drawer #[771 "\207" [] 4 (#$ . 9855)])
|
#@201 Transcode a DYNAMIC-BLOCK element from Org to Man.
|
CONTENTS holds the contents of the block. INFO is a plist
|
holding contextual information. See `org-export-data'.
|
|
(fn DYNAMIC-BLOCK CONTENTS INFO)
|
(defalias 'org-man-dynamic-block #[771 "\300\"\207" [org-man--wrap-label] 6 (#$ . 10128)])
|
#@157 Transcode an ENTITY object from Org to Man.
|
CONTENTS are the definition itself. INFO is a plist holding
|
contextual information.
|
|
(fn ENTITY CONTENTS INFO)
|
(defalias 'org-man-entity #[771 "\300\211;\203 \301\302#\202 \303A@\"\207" [:utf-8 get-text-property 0 plist-get] 9 (#$ . 10428)])
|
#@153 Transcode an EXAMPLE-BLOCK element from Org to Man.
|
CONTENTS is nil. INFO is a plist holding contextual
|
information.
|
|
(fn EXAMPLE-BLOCK CONTENTS INFO)
|
(defalias 'org-man-example-block #[771 "\300\301\302\303\"\"\"\207" [org-man--wrap-label format ".RS\n.nf\n%s\n.fi\n.RE" org-export-format-code-default] 10 (#$ . 10729)])
|
#@150 Transcode a EXPORT-BLOCK element from Org to Man.
|
CONTENTS is nil. INFO is a plist holding contextual information.
|
|
(fn EXPORT-BLOCK CONTENTS INFO)
|
(defalias 'org-man-export-block #[771 "\300\211;\203 \301\302#\202 \303A@\"\266\202\304\230\2055 \305\306\211;\203, \301\302#\2022 \303A@\"\266\202!\207" [:type get-text-property 0 plist-get "MAN" org-remove-indentation :value] 10 (#$ . 11064)])
|
#@153 Transcode a EXPORT-SNIPPET object from Org to Man.
|
CONTENTS is nil. INFO is a plist holding contextual information.
|
|
(fn EXPORT-SNIPPET CONTENTS INFO)
|
(defalias 'org-man-export-snippet #[771 "\300!\301=\205 \302\211;\203 \303\304#\202 \305A@\"\266\202\207" [org-export-snippet-backend man :value get-text-property 0 plist-get] 9 (#$ . 11478)])
|
#@148 Transcode a FIXED-WIDTH element from Org to Man.
|
CONTENTS is nil. INFO is a plist holding contextual information.
|
|
(fn FIXED-WIDTH CONTENTS INFO)
|
(defalias 'org-man-fixed-width #[771 "\300\301\302\303\304\211;\203 \305\306#\202 \307A@\"\266\202!\"\"\207" [org-man--wrap-label format "\\fC\n%s\\fP" org-remove-indentation :value get-text-property 0 plist-get] 14 (#$ . 11839)])
|
#@170 Transcode a HEADLINE element from Org to Man.
|
CONTENTS holds the contents of the headline. INFO is a plist
|
holding contextual information.
|
|
(fn HEADLINE CONTENTS INFO)
|
(defalias 'org-man-headline #[771 "\300\"\211\301=\203 \302\202 \211\303=\204 \211\304=\203 \305\202 \306\307\310\211;\2030 \311\312#\2026 \313A@\"\266\202\"\314\211;\203J \311\312#\202P \313A@\"\266\202\203Y \306\202\226 \203e \315\"\203\220 \316\"\205q \317\320\321\"\322\323\324\260\325\"\204\206 \211\202\213 \326\327\330#\262\202\226 \317#\207" [org-export-get-relative-level 1 ".SH \"%s\"\n%s" 2 3 ".SS \"%s\"\n%s" nil org-export-data :title get-text-property 0 plist-get :footnote-section-p org-export-low-level-p org-export-first-sibling-p format "%s\n" ".RS" ".TP\n.ft I\n" "\n.ft\n" ".RE" org-export-last-sibling-p replace-regexp-in-string "[ \n]*\\'" ""] 12 (#$ . 12233)])
|
#@183 Transcode an INLINE-SRC-BLOCK element from Org to Man.
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
contextual information.
|
|
(fn INLINE-SRC-BLOCK CONTENTS INFO)
|
(defalias 'org-man-inline-src-block #[771 "\301\211;\203 \302\303#\202 \304A@\"\266\202\304\305\"\203\255 \306\307\310\"!\306\307\311\"!\312\211;\203; \302\303#\202A \304A@\"\266\202\313!\304\314\"\236A@\307\315!\316\317\320\321 \260\203\243 \322\323\324\325!!\326\303\327\330\331!\332\"\333$\216r\211q\210 c\210)r\211q\210\334\335\211\335\303%\210*\266\336!\210\337!\262\340!\210\340!\210\211\262\202\250 \341\342\"\266\206\202\265 \343\344\345\345\346\260\207" [temporary-file-directory :value get-text-property 0 plist-get :man-source-highlight make-temp-name expand-file-name "srchilite" "reshilite" :language intern :man-source-highlight-langs "source-highlight" " -s " " -f groff_man" " -i " " -o " "" get-buffer-create generate-new-buffer-name " *temp file*" make-byte-code "\301\300!\205 |