commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(byte-code "\300\301!\210\300\302!\210\303\304\305\306\307DD\310\311\312\313\314&\210\303\315\305\306\316DD\317\311\312\320\321\322\323\313\324&\207" [require cl-lib org custom-declare-variable org-columns-modify-value-for-display-function funcall function #[0 "\300\207" [nil] 1] "Function that modifies values for display in column view.\nFor example, it can be used to cut out a certain part from a time stamp.\nThe function must take 2 arguments:\n\ncolumn-title The title of the column (*not* the property name)\nvalue The value that should be modified.\n\nThe function should return the value that should be displayed,\nor nil if the normal value should be used." :group org-properties :type (choice (const nil) (function)) org-columns-summary-types #[0 "\300\207" [nil] 1] "Alist between operators and summarize functions.\n\nEach association follows the pattern (LABEL . SUMMARIZE) where\n\n LABEL is a string used in #+COLUMNS definition describing the\n summary type. It can contain any character but \"}\". It is\n case-sensitive.\n\n SUMMARIZE is a function called with two arguments. The first\n argument is a non-empty list of values, as non-empty strings.\n The second one is a format string or nil. It has to return\n a string summarizing the list of values.\n\nNote that the return value can become one value for an higher\norder summary, so the function is expected to handle its own\noutput.\n\nTypes defined in this variable take precedence over those defined\nin `org-columns-summary-types-default', which see." :version "26.1" :package-version (Org . "9.0") (alist :key-type (string :tag " Label") :value-type (function :tag "Summarize"))] 12) |
|
16 |
#@44 Holds the list of current column overlays. |
|
17 |
(defvar org-columns-overlays nil (#$ . 2106)) |
|
18 |
(make-variable-buffer-local 'org-columns-overlays) |
|
19 |
#@59 Local variable, holds the currently active column format. |
|
20 |
(defvar org-columns-current-fmt nil (#$ . 2252)) |
|
21 |
(make-variable-buffer-local 'org-columns-current-fmt) |
|
22 |
#@103 Local variable, holds the currently active column format. |
|
23 |
This is the compiled version of the format. |
|
24 |
(defvar org-columns-current-fmt-compiled nil (#$ . 2420)) |
|
25 |
(make-variable-buffer-local 'org-columns-current-fmt-compiled) |
|
26 |
#@54 Currently active maximum column widths, as a vector. |
|
27 |
(defvar org-columns-current-maxwidths nil (#$ . 2649)) |
|
28 |
(make-variable-buffer-local 'org-columns-current-maxwidths) |
|
29 |
#@73 Points to the position where last a column creation command was called. |
|
30 |
(defvar org-columns-begin-marker nil (#$ . 2823)) |
|
31 |
(make-variable-buffer-local 'org-columns-begin-marker) |
|
32 |
#@61 Points to the position where current columns region starts. |
|
33 |
(defvar org-columns-top-level-marker nil (#$ . 3006)) |
|
34 |
(make-variable-buffer-local 'org-columns-top-level-marker) |
|
35 |
#@64 Number of seconds since the epoch, as a floating point number. |
|
36 |
(defvar org-columns--time 0.0 (#$ . 3185)) |
|
37 |
#@37 The keymap valid in column display. |
|
38 |
(defvar org-columns-map (make-sparse-keymap) (#$ . 3297)) |
|
39 |
#@84 Map operators to summarize functions. |
|
40 |
See `org-columns-summary-types' for details. |
|
41 |
(defconst org-columns-summary-types-default '(("+" . org-columns--summary-sum) ("$" . org-columns--summary-currencies) ("X" . org-columns--summary-checkbox) ("X/" . org-columns--summary-checkbox-count) ("X%" . org-columns--summary-checkbox-percent) ("max" . org-columns--summary-max) ("mean" . org-columns--summary-mean) ("min" . org-columns--summary-min) (":" . org-columns--summary-sum-times) (":max" . org-columns--summary-max-time) (":mean" . org-columns--summary-mean-time) (":min" . org-columns--summary-min-time) ("@max" . org-columns--summary-max-age) ("@mean" . org-columns--summary-mean-age) ("@min" . org-columns--summary-min-age) ("est+" . org-columns--summary-estimate)) (#$ . 3397)) |
|
42 |
#@48 Switch to contents view while in columns view. |
|
43 |
(defalias 'org-columns-content #[0 "\300 \210\301 \207" [org-overview org-content] 1 (#$ . 4183) nil]) |
|
44 |
(byte-code "\301\302\303#\210\301\304\305#\210\301\306\307#\210\301\310\311#\210\301\312\313#\210\301\314\315#\210\301\316\317#\210\301\320\321#\210\301\322\323#\210\301\324\323#\210\301\325\326#\210\301\327\326#\210\301\330\331#\210\301\332\333#\210\301\334\335#\210\301\336\337#\210\301\340\341#\210\301\342\343#\210\301\344\345#\210\301\346\345#\210\301\347\350#\210\301\351\350#\210\301\352\353#\210\301\354\355#\210\301\356\357#\210\301\360\361#\210\301\362\363#\210\301\364\365#\210\366\367\211W\203\311 \211\301\370!\371\372\373\345\372EF#\266\211T\262\202\252 \210\207" [org-columns-map org-defkey "c" org-columns-content "o" org-overview "e" org-columns-edit-value "" org-columns-todo "" org-columns-set-tags-or-toggle "" org-columns-open-link "v" org-columns-show-value "q" org-columns-quit "r" org-columns-redo "g" [left] backward-char "\342" "a" org-columns-edit-allowed "s" org-columns-edit-attributes "\346" #[0 "`Tb\207" #1=[] 1 nil nil] [right] #[0 "`Tb\207" #1# 1 nil nil] [down] #[0 "i\301\302!\210\303 \203 m\204 \301\302!\210\202 \304!\210\305=\205! \306 \207" [major-mode beginning-of-line 2 org-invisible-p2 move-to-column org-agenda-mode org-agenda-do-context-action] 3 nil nil] [up] #[0 "i\301\302!\210\303 \203 o\204 \301\302!\210\202 \304!\210\305=\205! \306 \207" [major-mode beginning-of-line 0 org-invisible-p2 move-to-column org-agenda-mode org-agenda-do-context-action] 3 nil nil] [(shift right)] org-columns-next-allowed-value "n" [(shift left)] org-columns-previous-allowed-value "p" "<" org-columns-narrow ">" org-columns-widen [(meta right)] org-columns-move-right [(meta left)] org-columns-move-left [(shift meta right)] org-columns-new [(shift meta left)] org-columns-delete 10 0 number-to-string lambda nil (interactive)] 12) |
|
45 |
#@17 Org Column Menu |
|
46 |
(defvar org-columns-menu nil (#$ . 6154)) |
|
47 |
(easy-menu-do-define 'org-columns-menu org-columns-map "Org Column Menu" '("Column" ["Edit property" org-columns-edit-value t] ["Next allowed value" org-columns-next-allowed-value t] ["Previous allowed value" org-columns-previous-allowed-value t] ["Show full value" org-columns-show-value t] ["Edit allowed values" org-columns-edit-allowed t] "--" ["Edit column attributes" org-columns-edit-attributes t] ["Increase column width" org-columns-widen t] ["Decrease column width" org-columns-narrow t] "--" ["Move column right" org-columns-move-right t] ["Move column left" org-columns-move-left t] ["Add column" org-columns-new t] ["Delete column" org-columns-delete t] "--" ["CONTENTS" org-columns-content t] ["OVERVIEW" org-overview t] ["Refresh columns display" org-columns-redo t] "--" ["Open link" org-columns-open-link t] "--" ["Quit" org-columns-quit t])) |
|
48 |
#@219 Return displayed value for specification SPEC in current entry. |
|
49 |
SPEC is a column format specification as stored in |
|
50 |
`org-columns-current-fmt-compiled'. VALUE is the real value to |
|
51 |
display, as a string. |
|
52 |
|
|
53 |
(fn SPEC VALUE) |
|
54 |
(defalias 'org-columns--displayed-value #[514 "\302!\203 A@\"\206\261 :\203\255 @\211\303\232\2032 \304\305 S \203( \306\202) \307\"\310\311!Q\202\254 A\211:\203\246 \211A\211:\203\234 \211A\211:\203\222 \211A\211:\203\210 \211@\211\204i A\211\204_ \202d \312\313\n\"\262\202\203 A\211\204| \314\315!\"\262\202\201 \312\313\n\"\262\262\202\215 \312\313\"\262\202\227 \312\313\"\262\202\241 \312\313\"\262\202\252 \312\313\"\262\207\312\313\"\207" [org-columns-modify-value-for-display-function org-hide-leading-stars functionp "ITEM" make-string org-current-level 32 42 "* " org-columns-compact-links error "Invalid column specification format: %S" format string-to-number] 14 (#$ . 7079)]) |
|
55 |
#@350 Collect values for columns on the current line. |
|
56 |
|
|
57 |
Return a list of triplets (SPEC VALUE DISPLAYED) suitable for |
|
58 |
`org-columns--display-here'. |
|
59 |
|
|
60 |
This function assumes `org-columns-current-fmt-compiled' is |
|
61 |
initialized is set in the current buffer. However, it is |
|
62 |
possible to override it with optional argument COMPILED-FMT. |
|
63 |
|
|
64 |
(fn &optional COMPILED-FMT) |
|
65 |
(defalias 'org-columns--collect-values #[256 "\301`\302\"\303\304\305\306\307\310\"\311\"\312\313%\206 \"\207" [org-columns-current-fmt-compiled get-text-property org-summaries mapcar make-byte-code 257 "\211:\205K \211@\211\304\301\"A\206= \305`\306\307$\206= \300\203< |