;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!\207" [require org cl-lib] 2)
|
#@37 Active buffer for mouse operations.
|
(defvar org-mouse-main-buffer nil (#$ . 472))
|
#@47 Regular expression that matches a plain list.
|
(defvar org-mouse-plain-list-regexp "\\([ ]*\\)\\([-+*]\\|[0-9]+[.)]\\) " (#$ . 560))
|
#@268 Internal variable indicating whether the current action is direct.
|
|
If t, then the current action has been invoked directly through the buffer
|
it is intended to operate on. If nil, then the action has been invoked
|
indirectly, for example, through the agenda buffer.
|
(defvar org-mouse-direct t (#$ . 700))
|
(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)
|
#@70 Search the current line for a given regular expression.
|
|
(fn REGEXP)
|
(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)])
|
#@52 Go to the end of current headline (ignoring tags).
|
(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])
|
#@138 Function to create the context menu.
|
The value of this variable is the function invoked by
|
`org-mouse-context-menu' as the context menu.
|
(defvar org-mouse-context-menu-function nil (#$ . 2493))
|
(make-variable-buffer-local 'org-mouse-context-menu-function)
|
#@190 Invoke the context menu.
|
|
If the value of `org-mouse-context-menu-function' is a function, then
|
this function is called. Otherwise, the current major mode menu is used.
|
|
(fn EVENT PREFIX)
|
(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"])
|
#@290 Return `:beginning' or `:middle' or `:end', depending on the point position.
|
|
If the point is at the end of the line, return `:end'.
|
If the point is separated from the beginning of the line only by white
|
space and *'s (`org-mouse-bolp'), return `:beginning'. Otherwise,
|
return `:middle'.
|
(defalias 'org-mouse-line-position #[0 "l\203 \300\207\301 \203 \302\207\303\207" [:end org-mouse-bolp :beginning :middle] 1 (#$ . 3569)])
|
#@56 Return non-nil iff the line contains only white space.
|
(defalias 'org-mouse-empty-line #[0 "\212\300 \210\301\302!)\207" [beginning-of-line looking-at "[ ]*$"] 2 (#$ . 4005)])
|
#@103 Go to the next heading.
|
If there is none, ensure that the point is at the beginning of an empty line.
|
(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)])
|
#@221 Insert a new heading, as `org-insert-heading'.
|
|
If the point is at the :beginning (`org-mouse-line-position') of the line,
|
insert the new heading before the current line. Otherwise, insert it
|
after the current heading.
|
(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])
|
#@137 Change the timestamp into SHIFT UNITS in the future.
|
|
For the acceptable UNITS, see `org-timestamp-change'.
|
|
(fn &optional SHIFT UNITS)
|
(defalias 'org-mouse-timestamp-today #[512 "\300\301!\210\205\f \302\"\207" [org-time-stamp nil org-timestamp-change] 5 (#$ . 5019) nil])
|
#@883 A helper function.
|
|
Returns a menu fragment consisting of KEYWORDS. When a keyword
|
is selected by the user, FUNCTION is called with the selected
|
keyword as the only argument.
|
|
If SELECTED is nil, then all items are normal menu items. If
|
SELECTED is a function, then each item is a checkbox, which is
|
enabled for a given keyword iff (funcall SELECTED keyword) return
|
non-nil. If SELECTED is neither nil nor a function, then the
|
items are radio buttons. A radio button is enabled for the
|
keyword `equal' to SELECTED.
|
|
ITEMFORMAT governs formatting of the elements of KEYWORDS. If it
|
is a function, it is invoked with the keyword as the only
|
argument. If it is a string, it is interpreted as the format
|
string to (format ITEMFORMAT keyword). If it is neither a string
|
nor a function, elements of KEYWORDS are used directly.
|
|
(fn KEYWORDS FUNCTION &optional SELECTED ITEMFORMAT)
|
(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)])
|
#@57 Remove the match, make just one space around the point.
|
(defalias 'org-mouse-remove-match-and-spaces #[0 "\300\301!\210\302 \207" [replace-match "" just-one-space] 2 (#$ . 6655) nil])
|
#@129 The same as `replace-match', but surrounds the replacement with spaces.
|
|
(fn NEWTEXT &optional FIXEDCASE LITERAL STRING SUBEXP)
|
(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)])
|
#@754 A helper function.
|
|
Returns a menu fragment consisting of KEYWORDS. When a keyword
|
is selected, group GROUP of the current match is replaced by the
|
keyword. The method ensures that both ends of the replacement
|
are separated from the rest of the text in the buffer by
|
individual spaces (unless NOSURROUND is non-nil).
|
|
The final entry of the menu is always "None", which removes the
|
match.
|
|
ITEMFORMAT governs formatting of the elements of KEYWORDS. If it
|
is a function, it is invoked with the keyword as the only
|
argument. If it is a string, it is interpreted as the format
|
string to (format ITEMFORMAT keyword). If it is neither a string
|
nor a function, elements of KEYWORDS are used directly.
|
|
(fn KEYWORDS &optional GROUP ITEMFORMAT NOSURROUND)
|
(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)])
|
#@73 Change the visibility of the current org buffer to only show headlines.
|
(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])
|
#@72 Change visibility of current org buffer to first-level headlines only.
|
(defalias 'org-mouse-show-overview #[0 "\301\302\303!)\207" [org-cycle-global-status nil org-cycle (4)] 2 (#$ . 8658) nil])
|
#@70 Set the priority of the current headline to PRIORITY.
|
|
(fn PRIORITY)
|
(defalias 'org-mouse-set-priority #[257 "\300!\207" [org-priority] 3 (#$ . 8860)])
|
#@134 Regular expression matching the priority indicator.
|
Differs from `org-priority-regexp' in that it doesn't contain the
|
leading `.*?'.
|
(defvar org-mouse-priority-regexp "\\[#\\([A-Z]\\)\\]" (#$ . 9020))
|
#@131 Return the priority of the current headline.
|
DEFAULT is returned if no priority is given in the headline.
|
|
(fn &optional DEFAULT)
|
(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)])
|
#@110 Deletes the current timestamp as well as the preceding keyword.
|
SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:
|
(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)])
|
#@45
|
|
(fn REGEXP SKIPCHARS &optional MOVECHARS)
|
(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)])
|
(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])
|
#@49 Create the menu with TODO keywords.
|
|
(fn STATE)
|
(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)])
|
#@23 Create the tags menu.
|
(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)])
|
#@13
|
|
(fn TAGS)
|
(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)])
|
(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])
|
#@13
|
|
(fn TYPE)
|
(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)])
|
#@38
|
|
(fn ALLOPTIONS &optional FUNCTION)
|
(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)])
|
#@23
|
|
(fn TEXT MAXLENGTH)
|
(defalias 'org-mouse-clip-text #[514 "GV\203 \300\301ZO\302P\207\207" [0 3 "..."] 6 (#$ . 12775)])
|
(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& |