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:33 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-inlinetask.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\310\303\316\317&\210\312\320\304\321\306\307\310\311&\210\312\322\323\324\310\303\316\325&\207" [require org custom-declare-group org-inlinetask nil "Options concerning inline tasks in Org mode." :tag "Org Inline Tasks" :group org-structure custom-declare-variable org-inlinetask-min-level 15 "Minimum level a headline must have before it is treated as an inline task.\nDon't set it to something higher than `29' or clocking will break since this\nis the hardcoded maximum number of stars `org-clock-sum' will work with.\n\nIt is strongly recommended that you set `org-cycle-max-level' not at all,\nor to a number smaller than this one. In fact, when `org-cycle-max-level' is\nnot set, it will be assumed to be one less than the value of smaller than\nthe value of this variable." :type (choice (const :tag "Off" nil) (integer)) org-inlinetask-show-first-star "Non-nil means display the first star of an inline task as additional marker.\nWhen nil, the first star is not shown." org-inlinetask-export t "Non-nil means export inline tasks.\nWhen nil, they will not be exported." boolean] 8) #@1054 Templates for inline tasks in various exporters. This variable is an alist in the shape of (BACKEND STRING OBJECTS). BACKEND is the name of the backend for the template (ascii, html...). STRING is a format control string. OBJECTS is a list of elements to be substituted into the format string. They can be of any type, from a string to a form returning a value (thus allowing conditional insertion). A nil object will be substituted as the empty string. Obviously, there must be at least as many objects as %-sequences in the format string. Moreover, the following special keywords are provided: `todo', `priority', `heading', `content', `tags'. If some of them are not defined in an inline task, their value is the empty string. As an example, valid associations are: (html "<ul><li>%s <p>%s</p></li></ul>" (heading content)) or, with the additional package "todonotes" for LaTeX, (latex "\todo[inline]{\textbf{\textsf{%s %s}}\linebreak{} %s}" '((unless (eq todo "") (format "\textsc{%s%s}" todo priority)) heading content))) (defvar org-inlinetask-export-templates '((html "<div class=\"inlinetask\"><b>%s%s</b><br />%s</div>" '((unless (eq todo #1="") (format "<span class=\"%s %s\">%s%s</span> " class todo todo priority)) heading content)) (odt "%s" '((org-odt-format-inlinetask heading content todo priority tags))) (latex "\\begin{description}\n\\item[%s%s]~%s\\end{description}" '((unless (eq todo #1#) (format "\\textsc{%s%s} " todo priority)) heading content)) (ascii " -- %s%s%s" '((unless (eq todo #1#) (format "%s%s " todo priority)) heading (unless (eq content #1#) (format "\n ¦ %s" (mapconcat 'identity (org-split-string content "\n") "\n ¦ "))))) (docbook "<variablelist>\n<varlistentry>\n<term>%s%s</term>\n<listitem><para>%s</para></listitem>\n</varlistentry>\n</variablelist>" '((unless (eq todo #1#) (format "%s%s " todo priority)) heading content))) (#$ . 1737)) #@180 Non-nil means make inline tasks have a TODO keyword initially. This should be the state `org-inlinetask-insert-task' should use by default, or nil of no state should be assigned. (custom-declare-variable 'org-inlinetask-default-state nil '(#$ . 3677) :group 'org-inlinetask :version "24.1" :type '(choice (const :tag "No state" nil) (string :tag "Specific state"))) #@94 Insert an inline task. If prefix arg NO-STATE is set, ignore `org-inlinetask-default-state'. (defalias 'org-inlinetask-insert-task #[(&optional no-state) "\306 \203 \307 \203 n\204 \310\311!\210n\204 \312 \210\203$ \313_S\202% \314\n\315\"\316P\211\f\2046 \204: \317\202= \320P\321\261\210*\322\207" [org-odd-levels-only org-inlinetask-min-level indent indent-string no-state org-inlinetask-default-state org-inlinetask-in-task-p org-inlinetask-at-task-p error "Cannot nest inline tasks" newline 2 make-string 42 " " "\n" " \n" "END\n" -1] 5 (#$ . 4049) "P"]) (define-key org-mode-map "t" 'org-inlinetask-insert-task) #@114 Return string matching an inline task heading. The number of levels is controlled by `org-inlinetask-min-level'. (defalias 'org-inlinetask-outline-regexp #[nil "\203 \303_S\202\f \304\305\n\")\207" [org-odd-levels-only org-inlinetask-min-level nstars 2 format "^\\(\\*\\{%d,\\}\\)[ ]+"] 3 (#$ . 4690)]) #@57 Return true if point is at beginning of an inline task. (defalias 'org-inlinetask-at-task-p #[nil "\212\300 \210\301\302 \303P!\205 \304\305\306\307!\227\"?)\207" [beginning-of-line looking-at org-inlinetask-outline-regexp "\\(.*\\)" string-match "^end[ ]*$" match-string 2] 4 (#$ . 5005)]) #@48 Return true if point is inside an inline task. (defalias 'org-inlinetask-in-task-p #[nil "\212\306 \210\307\310 \211\311P \312P\n\307\313\f!*\206/ \314\315\316\307#\205/ \306 \210\307\313\f!*-\207" [case-fold-search stars-re task-beg-re task-end-re regexp inhibit-changing-match-data beginning-of-line t org-inlinetask-outline-regexp "\\(?:.*\\)" "END[ ]*$" looking-at re-search-forward "^\\*+[ ]+" nil] 5 (#$ . 5304)]) #@50 Go to the beginning of the inline task at point. (defalias 'org-inlinetask-goto-beginning #[nil "\304\210\305\306 \307\304\305#\210\310P\305\311\n!*\205 \307\304\305#*\207" [inlinetask-re case-fold-search regexp inhibit-changing-match-data nil t org-inlinetask-outline-regexp re-search-backward "END[ ]*$" looking-at] 4 (#$ . 5741)]) #@58 Go to the end of the inline task at point. Return point. (defalias 'org-inlinetask-goto-end #[nil "\304 \305\216\306 \210\307\310 \211\311P\312!\203 \313y\210\202R \312\n!\203I \313y\210\312!\2032 \313y\210\202R \312\n!\204R \314 \203R \315\n\313\307#\210\313y\210\202R \315\n\313\307#\210\313y\210`-\207" [save-match-data-internal case-fold-search inlinetask-re task-end-re match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) beginning-of-line t org-inlinetask-outline-regexp "END[ ]*$" looking-at nil org-inlinetask-in-task-p re-search-forward] 5 (#$ . 6091)]) #@91 Get the level of the inline task around. This assumes the point is inside an inline task. (defalias 'org-inlinetask-get-task-level #[nil "\212\300\210\301\302 \300\303#\210\304\225\304\224Z)\207" [nil re-search-backward org-inlinetask-outline-regexp t 1] 4 (#$ . 6713)]) #@143 Promote the inline task at point. If the task has an end part, promote it. Also, prevents level from going below `org-inlinetask-min-level'. (defalias 'org-inlinetask-promote #[nil "\306 \204 \307\310!\207\212\311 \312\313\"\211Z\314 \315\"\260\316 W\203+ \307\317!\202b \320 \210`\321\316\322\316\323%\210\324 \210m\203E \325 \210\202H \313y\210`\fU?\205b \321\316\322\316\323%\210\205b \fb\210\326\n!.\207" [lvl next-lvl diff down-task beg org-inlinetask-min-level org-inlinetask-in-task-p error "Not in an inline task" org-inlinetask-get-task-level org-get-valid-level -1 make-string 42 nil "Cannot promote an inline task at minimum level" org-inlinetask-goto-beginning replace-match t 1 org-inlinetask-goto-end beginning-of-line org-fixup-indentation org-adapt-indentation] 7 (#$ . 6992) nil]) #@79 Demote the inline task at point. If the task has an end part, also demote it. (defalias 'org-inlinetask-demote #[nil "\306 \204 \307\310!\207\212\311 \312\313\"\211Z\314 \315\"\260\316\317 \210`\320\316\321\316\313%\210\322 \210m\2039 \323 \210\202<