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!\207" [require org cl-lib] 2) |
|
16 |
#@37 Active buffer for mouse operations. |
|
17 |
(defvar org-mouse-main-buffer nil (#$ . 472)) |
|
18 |
#@47 Regular expression that matches a plain list. |
|
19 |
(defvar org-mouse-plain-list-regexp "\\([ ]*\\)\\([-+*]\\|[0-9]+[.)]\\) " (#$ . 560)) |
|
20 |
#@268 Internal variable indicating whether the current action is direct. |
|
21 |
|
|
22 |
If t, then the current action has been invoked directly through the buffer |
|
23 |
it is intended to operate on. If nil, then the action has been invoked |
|
24 |
indirectly, for example, through the agenda buffer. |
|
25 |
(defvar org-mouse-direct t (#$ . 700)) |
|
26 |
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\306\301\316\317&\210\310\320\312\313\321DD\322\306\301\316\323&\207" [custom-declare-group org-mouse nil "Mouse support for org-mode." :tag "Org Mouse" :group org custom-declare-variable org-mouse-punctuation funcall function #[0 "\300\207" [#1=":"] 1 #1#] "Punctuation used when inserting text by drag and drop." :type string org-mouse-features #[0 "\300\207" [(context-menu yank-link activate-stars activate-bullets activate-checkboxes)] 1] "The features of org-mouse that should be activated.\nChanging this variable requires a restart of Emacs to get activated." (set :greedy t (const :tag "Mouse-3 shows context menu" context-menu) (const :tag "C-mouse-1 and mouse-3 move trees" move-tree) (const :tag "S-mouse-2 and drag-mouse-3 yank link" yank-link) (const :tag "Activate headline stars" activate-stars) (const :tag "Activate item bullets" activate-bullets) (const :tag "Activate checkboxes" activate-checkboxes))] 8) |
|
27 |
#@70 Search the current line for a given regular expression. |
|
28 |
|
|
29 |
(fn REGEXP) |
|
30 |
(defalias 'org-mouse-re-search-line #[257 "\300 \210\301\302 \303#\207" [beginning-of-line re-search-forward point-at-eol t] 5 (#$ . 2016)]) |
|
31 |
#@52 Go to the end of current headline (ignoring tags). |
|
32 |
(defalias 'org-mouse-end-headline #[0 "\300\210\301\300x\210\302\303\304 \"\205 \305\300x\210\301\300x\207" [nil " " looking-back ":[A-Za-z]+:" line-beginning-position ":A-Za-z"] 3 (#$ . 2233) nil]) |
|
33 |
#@138 Function to create the context menu. |
|
34 |
The value of this variable is the function invoked by |
|
35 |
`org-mouse-context-menu' as the context menu. |
|
36 |
(defvar org-mouse-context-menu-function nil (#$ . 2493)) |
|
37 |
(make-variable-buffer-local 'org-mouse-context-menu-function) |
|
38 |
#@190 Invoke the context menu. |
|
39 |
|
|
40 |
If the value of `org-mouse-context-menu-function' is a function, then |
|
41 |
this function is called. Otherwise, the current major mode menu is used. |
|
42 |
|
|
43 |
(fn EVENT PREFIX) |
|
44 |
(defalias 'org-mouse-show-context-menu #[514 "\211:\203 \3048\250\203 \3048\262\202 \305\262\305U\203i \203) \306 \307\245!\203i \310\311!\211@\262!\210\312 \204M \313\311!!b\210l\204I \212\314\315!\210)\306\316!\210\317\n!\203W \n!\207\320\321!\203d \322\321 #\207\323\"\207\324\211!\207" [mark-active double-click-time org-mouse-context-menu-function this-command 2 1 sit-for 1000.0 select-window event-start org-mouse-mark-active posn-point run-hooks post-command-hook 0 functionp fboundp mouse-menu-major-mode-map popup-menu mouse-major-mode-menu mouse-save-then-kill] 7 (#$ . 2756) "@e \nP"]) |
|
45 |
#@290 Return `:beginning' or `:middle' or `:end', depending on the point position. |
|
46 |
|
|
47 |
If the point is at the end of the line, return `:end'. |
|
48 |
If the point is separated from the beginning of the line only by white |
|
49 |
space and *'s (`org-mouse-bolp'), return `:beginning'. Otherwise, |
|
50 |
return `:middle'. |
|
51 |
(defalias 'org-mouse-line-position #[0 "l\203 \300\207\301 \203
\302\207\303\207" [:end org-mouse-bolp :beginning :middle] 1 (#$ . 3569)]) |
|
52 |
#@56 Return non-nil iff the line contains only white space. |
|
53 |
(defalias 'org-mouse-empty-line #[0 "\212\300 \210\301\302!)\207" [beginning-of-line looking-at "[ ]*$"] 2 (#$ . 4005)]) |
|
54 |
#@103 Go to the next heading. |
|
55 |
If there is none, ensure that the point is at the beginning of an empty line. |
|
56 |
(defalias 'org-mouse-next-heading #[0 "\300 ?\205 \301 \210\302 ?\205 \303\210\304 \207" [outline-next-heading beginning-of-line org-mouse-empty-line nil newline] 1 (#$ . 4189)]) |
|
57 |
#@221 Insert a new heading, as `org-insert-heading'. |
|
58 |
|
|
59 |
If the point is at the :beginning (`org-mouse-line-position') of the line, |
|
60 |
insert the new heading before the current line. Otherwise, insert it |
|
61 |
after the current heading. |
|
62 |
(defalias 'org-mouse-insert-heading #[0 "\300 \211\301\267\202 \302 \210\303 \202 \304 \210\303 \207" [org-mouse-line-position #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (:beginning 8)) beginning-of-line org-insert-heading org-mouse-next-heading] 3 (#$ . 4480) nil]) |
|
63 |
#@137 Change the timestamp into SHIFT UNITS in the future. |
|
64 |
|
|
65 |
For the acceptable UNITS, see `org-timestamp-change'. |
|
66 |
|
|
67 |
(fn &optional SHIFT UNITS) |
|
68 |
(defalias 'org-mouse-timestamp-today #[512 "\300\301!\210\205\f \302\"\207" [org-time-stamp nil org-timestamp-change] 5 (#$ . 5019) nil]) |
|
69 |
#@883 A helper function. |
|
70 |
|
|
71 |
Returns a menu fragment consisting of KEYWORDS. When a keyword |
|
72 |
is selected by the user, FUNCTION is called with the selected |
|
73 |
keyword as the only argument. |
|
74 |
|
|
75 |
If SELECTED is nil, then all items are normal menu items. If |
|
76 |
SELECTED is a function, then each item is a checkbox, which is |
|
77 |
enabled for a given keyword iff (funcall SELECTED keyword) return |
|
78 |
non-nil. If SELECTED is neither nil nor a function, then the |
|
79 |
items are radio buttons. A radio button is enabled for the |
|
80 |
keyword `equal' to SELECTED. |
|
81 |
|
|
82 |
ITEMFORMAT governs formatting of the elements of KEYWORDS. If it |
|
83 |
is a function, it is invoked with the keyword as the only |
|
84 |
argument. If it is a string, it is interpreted as the format |
|
85 |
string to (format ITEMFORMAT keyword). If it is neither a string |
|
86 |
nor a function, elements of KEYWORDS are used directly. |
|
87 |
|
|
88 |
(fn KEYWORDS FUNCTION &optional SELECTED ITEMFORMAT) |
|
89 |
(defalias 'org-mouse-keyword-menu #[1026 "\300\301\302\303\304\305D\306\307BBD\310D\311\312BBD\313BBB\314\315 \316BBB\317\304\320\nD\321B\305D\322B\323BBB\324\325\305\fD\326\306\327BB\330BB\331\332BBF\257E\"\207" [mapcar lambda (keyword) vector cond functionp funcall (keyword) stringp format (keyword) ((t keyword)) list 'funcall (keyword) :style null (t) ('toggle) ((t 'radio)) :selected if and (keyword) (t) equal (keyword)] 19 (#$ . 5303)]) |
|
90 |
#@57 Remove the match, make just one space around the point. |
|
91 |
(defalias 'org-mouse-remove-match-and-spaces #[0 "\300\301!\210\302 \207" [replace-match "" just-one-space] 2 (#$ . 6655) nil]) |
|
92 |
#@129 The same as `replace-match', but surrounds the replacement with spaces. |
|
93 |
|
|
94 |
(fn NEWTEXT &optional FIXEDCASE LITERAL STRING SUBEXP) |
|
95 |
(defalias 'org-mouse-replace-match-and-surround #[1281 "\301\302\"\210\212\211\206 \303\224b\210\304 \210\211\206 \303\225b\210\304 )\207" [org-mouse-rest apply replace-match 0 just-one-space] 8 (#$ . 6846)]) |
|
96 |
#@754 A helper function. |
|
97 |
|
|
98 |
Returns a menu fragment consisting of KEYWORDS. When a keyword |
|
99 |
is selected, group GROUP of the current match is replaced by the |
|
100 |
keyword. The method ensures that both ends of the replacement |
|
101 |
are separated from the rest of the text in the buffer by |
|
102 |
individual spaces (unless NOSURROUND is non-nil). |
|
103 |
|
|
104 |
The final entry of the menu is always "None", which removes the |
|
105 |
match. |
|
106 |
|
|
107 |
ITEMFORMAT governs formatting of the elements of KEYWORDS. If it |
|
108 |
is a function, it is invoked with the keyword as the only |
|
109 |
argument. If it is a string, it is interpreted as the format |
|
110 |
string to (format ITEMFORMAT keyword). If it is neither a string |
|
111 |
nor a function, elements of KEYWORDS are used directly. |
|
112 |
|
|
113 |
(fn KEYWORDS &optional GROUP ITEMFORMAT NOSURROUND) |
|
114 |
(defalias 'org-mouse-keyword-replace-menu #[1025 "\206 \300\262\301\203 \302\202 \303!\304\305\306\307\310\311\312\211\313\257E\314!$\315\316\317\320\321\322\314\f!
\235?&C\"\207" [0 org-mouse-match-closure replace-match org-mouse-replace-match-and-surround append org-mouse-keyword-menu lambda (keyword) funcall keyword t nil match-string vector "None" org-mouse-remove-match-and-spaces :style radio :selected] 17 (#$ . 7193)]) |
|
115 |
#@73 Change the visibility of the current org buffer to only show headlines. |
|
116 |
(defalias 'org-mouse-show-headlines #[0 "\303\211\304\303\305!\210\303\306!+\207" [org-cycle-global-status last-command this-command org-cycle nil (4) (4)] 3 (#$ . 8401) nil]) |
|
117 |
#@72 Change visibility of current org buffer to first-level headlines only. |
|
118 |
(defalias 'org-mouse-show-overview #[0 "\301\302\303!)\207" [org-cycle-global-status nil org-cycle (4)] 2 (#$ . 8658) nil]) |
|
119 |
#@70 Set the priority of the current headline to PRIORITY. |
|
120 |
|
|
121 |
(fn PRIORITY) |
|
122 |
(defalias 'org-mouse-set-priority #[257 "\300!\207" [org-priority] 3 (#$ . 8860)]) |
|
123 |
#@134 Regular expression matching the priority indicator. |
|
124 |
Differs from `org-priority-regexp' in that it doesn't contain the |
|
125 |
leading `.*?'. |
|
126 |
(defvar org-mouse-priority-regexp "\\[#\\([A-Z]\\)\\]" (#$ . 9020)) |
|
127 |
#@131 Return the priority of the current headline. |
|
128 |
DEFAULT is returned if no priority is given in the headline. |
|
129 |
|
|
130 |
(fn &optional DEFAULT) |
|
131 |
(defalias 'org-mouse-get-priority #[256 "\212\302!\203
\303\304!\202 \211\205 \305 !)\207" [org-mouse-priority-regexp org-default-priority org-mouse-re-search-line match-string 1 char-to-string] 3 (#$ . 9228)]) |
|
132 |
#@110 Deletes the current timestamp as well as the preceding keyword. |
|
133 |
SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS: |
|
134 |
(defalias 'org-mouse-delete-timestamp #[0 "\300 \204 \301\302!\205 \303\304!\210\305\306x\210\307\310!\205 \303\304!\207" [org-at-date-range-p org-at-timestamp-p lax replace-match "" " :A-Z" nil looking-at " *[A-Z][A-Z]+:"] 2 (#$ . 9580)]) |
|
135 |
#@45 |
|
136 |
|
|
137 |
(fn REGEXP SKIPCHARS &optional MOVECHARS) |
|
138 |
(defalias 'org-mouse-looking-at #[770 "\212`\300!\203\f \301\202! \302x\210\206 \303u\210\300!\205! \303\225V\262)\207" [looking-at t nil 0] 6 (#$ . 9938)]) |
|
139 |
(defalias 'org-mouse-priority-list #[0 "\301\302X\203 \303!B\262T\262\202 \211\237\207" [org-lowest-priority 65 nil char-to-string] 5]) |
|
140 |
#@49 Create the menu with TODO keywords. |
|
141 |
|
|
142 |
(fn STATE) |
|
143 |
(defalias 'org-mouse-todo-menu #[257 "\301\302\303\304\305\306\307\310\n!\311\"\312\313%#\262!\207" [org-todo-keywords-1 append org-mouse-keyword-menu (lambda (kwd) (org-todo kwd)) make-byte-code 257 "\300\232\207" vconcat vector [] 3 "\n\n(fn KWD)"] 12 (#$ . 10298)]) |
|
144 |
#@23 Create the tags menu. |
|
145 |
(defalias 'org-mouse-tag-menu #[0 "\300\301 \302\303\304\305\306 \"\307\"\310\311\312\303\313\314\315\316\nDE\317\315\316DE\320\315\316\fDEF\321BBDE\310\322\314\315\316DEE#\262\323\"\207" [append org-get-tags org-mouse-keyword-menu sort mapcar car org-get-buffer-tags string-lessp lambda (tag) org-mouse-set-tags if member tag quote delete cons ('string-lessp) (tag) ("--" ["Align Tags Here" (org-set-tags nil t) t] ["Align Tags in Buffer" (org-set-tags t t) t] ["Set Tags ..." (org-set-tags) t])] 15 (#$ . 10626)]) |
|
146 |
#@13 |
|
147 |
|
|
148 |
(fn TAGS) |
|
149 |
(defalias 'org-mouse-set-tags #[257 "\212\300 \210\301\302!\203 \303\304!\210\211\205# \305\210\306\307\310\311#\311\261\210\312\305\313\")\207" [beginning-of-line org-mouse-re-search-line ":\\(\\([A-Za-z_]+:\\)+\\)" replace-match "" nil " :" mapconcat identity ":" org-set-tags t] 6 (#$ . 11177)]) |
|
150 |
(defalias 'org-mouse-insert-checkbox #[0 "\300 \205 \301\225b\205 \302 ?\205 \303 \210\304c\207" [org-at-item-p 0 org-at-item-checkbox-p delete-horizontal-space " [ ] "] 1 nil nil]) |
|
151 |
#@13 |
|
152 |
|
|
153 |
(fn TYPE) |
|
154 |
(defalias 'org-mouse-agenda-type #[257 "\211\300\267\202 \301\207\302\207\303\207\304\207\305\207\306\207" [#s(hash-table size 5 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (tags 6 todo 8 tags-tree 10 todo-tree 12 occur-tree 14)) "Tags: " "TODO: " "Tags tree: " "TODO tree: " "Occur tree: " "Agenda command ???"] 3 (#$ . 11683)]) |
|
155 |
#@38 |
|
156 |
|
|
157 |
(fn ALLOPTIONS &optional FUNCTION) |
|
158 |
(defalias 'org-mouse-list-options-menu #[513 "\300 \301\302\303\304\305!\306\"\307$\216\310\311\312!!)\262\313!\210\314\211:\203 @\262\305\315\316\317\320\321\322\323\324D\324DE\325\324\fD\324DE\326\324
D\324DEF\327BB\330BBB\331BB\332\333\324DD\334\324\fDDEE\335\336\337\n\235\205r \340&B\262A\262\202 \211\237\266\203\207" [match-data make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 split-string match-string-no-properties 1 print nil progn replace-match mapconcat 'identity sort if member quote delete cons ('string-lessp) (" ") (nil nil nil 1) when functionp funcall :style toggle :selected t] 20 (#$ . 12052)]) |
|
159 |
#@23 |
|
160 |
|
|
161 |
(fn TEXT MAXLENGTH) |
|
162 |
(defalias 'org-mouse-clip-text #[514 "GV\203 \300\301ZO\302P\207\207" [0 3 "..."] 6 (#$ . 12775)]) |
|
163 |
(defalias 'org-mouse-popup-global-menu #[0 "\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320 \"\321\"\322\"\323\"B\324\307\325\326\327\313\314\315\316\317\320 \"\321\"\330\"\331\"B\332\307\313\314\316\317\"\333\334\335$\336\"BBBBBBBBBBBBBBBB!\207" [org-agenda-custom-commands popup-menu "Main Menu" ["Show Overview" org-mouse-show-overview t] ["Show Headlines" org-mouse-show-headlines t] ["Show All" outline-show-all t] ["Remove Highlights" org-remove-occur-highlights :visible org-occur-highlights] "--" ["Check Deadlines" (if (functionp 'org-check-deadlines-and-todos) (org-check-deadlines-and-todos org-deadline-warning-days) (org-check-deadlines org-deadline-warning-days)) t] ["Check TODOs" org-show-todo-tree t] "Check Tags" append org-mouse-keyword-menu sort mapcar car org-get-buffer-tags string-lessp #[257 "\300\301\"\207" [org-tags-sparse-tree nil] 4 "\n\n(fn TAG)"] ("--" ["Custom Tag ..." org-tags-sparse-tree t]) ["Check Phrase ..." org-occur] ["Display Agenda" org-agenda-list t] ["Display TODO List" org-todo-list t] "Display Tags" #[257 "\300\301\"\207" [org-tags-view nil] 4 "\n\n(fn TAG)"] ("--" ["Custom Tag ..." org-tags-view t]) ["Display Calendar" org-goto-calendar t] #[257 "\300\301\302\303DE!\207" [eval org-agenda nil string-to-char] 6 "\n\n(fn KEY)"] nil #[257 "\301\"\302A@;\203 A@\202& |