?
Current Path : /usr/share/emacs/24.3/lisp/org/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/org/org-mouse.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:07:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/org/org-mouse.el ;;; in Emacs version 24.3.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'org) #@47 Regular expression that matches a plain list. (defvar org-mouse-plain-list-regexp "\\([ ]*\\)\\([-+*]\\|[0-9]+[.)]\\) " (#$ . 571)) #@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 (#$ . 711)) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\306\301\314\315&\210\310\316\317\320\306\301\314\321&\207" [custom-declare-group org-mouse nil "Mouse support for org-mode." :tag "Org Mouse" :group org custom-declare-variable org-mouse-punctuation ":" "Punctuation used when inserting text by drag and drop." :type string org-mouse-features '(context-menu yank-link activate-stars activate-bullets activate-checkboxes) "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) #@57 Search the current line for a given regular expression. (defalias 'org-mouse-re-search-line #[(regexp) "\301 \210\302\303 \304#\207" [regexp beginning-of-line re-search-forward point-at-eol t] 4 (#$ . 1944)]) #@52 Go to the end of current headline (ignoring tags). (defalias 'org-mouse-end-headline #[nil "\300\210\301\300x\210\302\303!\205 \304\300x\210\301\300x\207" [nil " " org-looking-back ":[A-Za-z]+:" ":A-Za-z"] 2 (#$ . 2160) 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 (#$ . 2396)) (make-variable-buffer-local 'org-mouse-context-menu-function) #@171 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. (defalias 'org-mouse-show-context-menu #[(event prefix) "\211:\203 \3068\250\203 \3068\202 \307)\307U\203\203 \203' \310\n\311\245!\203\203 \312\313!\211@)!\210\314 \204e \313!\3158\206Q A@:\203N A@@\202Q A@)b\210l\204^ \212\316\317!\210)\320\310\321!\210)\322 !\203o !\207\323\324!\203} \325\324 #\207\326\"\207\327\211!\207" [event mark-active double-click-time position redisplay-dont-pause org-mouse-context-menu-function 2 1 sit-for 1000.0 select-window event-start org-mouse-mark-active 5 run-hooks post-command-hook t 0 functionp fboundp mouse-menu-major-mode-map popup-menu mouse-major-mode-menu mouse-save-then-kill prefix this-command] 5 (#$ . 2659) "@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 #[nil "l\203 \300\207\301 \203 \302\207\303\207" [:end org-mouse-bolp :beginning :middle] 1 (#$ . 3535)]) #@56 Return non-nil iff the line contains only white space. (defalias 'org-mouse-empty-line #[nil "\212\300 \210\301\302!)\207" [beginning-of-line looking-at "[ ]*$"] 2 (#$ . 3973)]) #@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 #[nil "\300 ?\205 \301 \210\302 ?\205 \303\210\304 \207" [outline-next-heading beginning-of-line org-mouse-empty-line nil newline] 1 (#$ . 4159)]) #@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 #[nil "\301 \302\303\"\203 \304 \210\305 \202 \306 \210\305 )\207" [#1=#:--cl-var-- org-mouse-line-position eql :beginning beginning-of-line org-insert-heading org-mouse-next-heading] 3 (#$ . 4452) nil]) #@109 Change the timestamp into SHIFT UNITS in the future. For the acceptable UNITS, see `org-timestamp-change'. (defalias 'org-mouse-timestamp-today #[(&optional shift units) "\302\303!\210\205\f \304 \"\207" [shift units org-time-stamp nil org-timestamp-change] 3 (#$ . 4923) nil]) #@829 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. (defalias 'org-mouse-keyword-menu #[(keywords function &optional selected itemformat) "\304\305\306\307\310\311D\312\313BBD\314D\315\316BBD\317BBB\320\321 \322BBB\323\310\324\nD\325B\311\nD\326B\327BBB\330\331\311\nD\332\312\n\333BB\334BB\335\n\336BBF\257E\"\207" [itemformat function selected keywords 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)] 15 (#$ . 5211)]) #@57 Remove the match, make just one space around the point. (defalias 'org-mouse-remove-match-and-spaces #[nil "\300\301!\210\302 \207" [replace-match "" just-one-space] 2 (#$ . 6585) nil]) #@73 The same as `replace-match', but surrounds the replacement with spaces. (defalias 'org-mouse-replace-match-and-surround #[(newtext &optional fixedcase literal string subexp) "\302\303\"\210\212 \206 \304\224b\210\305 \210 \206 \304\225b\210\305 )\207" [org-mouse-rest subexp apply replace-match 0 just-one-space] 3 (#$ . 6777)]) #@701 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. (defalias 'org-mouse-keyword-replace-menu #[(keywords &optional group itemformat nosurround) "\206 \305\306 \203 \307\202 \310!\311\312\313\314\315\n\316\317\211\320\257E\321!\f$\322\323\324\325\326\327\321!\235?&C\")\207" [group nosurround replace keywords itemformat 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] 12 (#$ . 7116)]) #@73 Change the visibility of the current org buffer to only show headlines. (defalias 'org-mouse-show-headlines #[nil "\303\211\304\303\305!\210\303\306!+\207" [org-cycle-global-status last-command this-command org-cycle nil (4) (4)] 3 (#$ . 8352) nil]) #@72 Change visibility of current org buffer to first-level headlines only. (defalias 'org-mouse-show-overview #[nil "\301\302\303!)\207" [org-cycle-global-status nil org-cycle (4)] 2 (#$ . 8611) nil]) #@55 Set the priority of the current headline to PRIORITY. (defalias 'org-mouse-set-priority #[(priority) "\301!\207" [priority org-priority] 2 (#$ . 8815)]) #@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]\\)\\]" (#$ . 8976)) #@107 Return the priority of the current headline. DEFAULT is returned if no priority is given in the headline. (defalias 'org-mouse-get-priority #[(&optional default) "\212\303!\203 \304\305!\202 \205 \306\n!)\207" [org-mouse-priority-regexp default org-default-priority org-mouse-re-search-line match-string 1 char-to-string] 2 (#$ . 9184)]) #@110 Deletes the current timestamp as well as the preceding keyword. SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS: (defalias 'org-mouse-delete-timestamp #[nil "\300 \204\n \301 \205 \302\303!\210\304\305x\210\306\307!\205 \302\303!\207" [org-at-date-range-p org-at-timestamp-p replace-match "" " :A-Z" nil looking-at " *[A-Z][A-Z]+:"] 2 (#$ . 9534)]) (defalias 'org-mouse-looking-at #[(regexp skipchars &optional movechars) "\212`\304 !\203 \305\202\"