• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/lisp/textmodes/

Lines Matching +defs:reset +defs:this +defs:command +defs:lengths

148 When the function `org-mode' is called interactively in an empty file, this
151 line enforcing Org-mode will be inserted into the buffer, if this option
161 alternative bindings. Setting this variable to t will replace the following
199 Changing this requires executing `M-x org-mode' in a buffer to become
215 A deadline is this string, followed by a time stamp. Should be a word,
224 A schedule is this string, followed by a time stamp. Should be a word,
242 "Entries starting with this keyword will never be exported.
250 "Entries starting with this keyword will be exported in fixed-width font.
275 been invisible before. When this is set, the hierarchy of headings
277 Turning this off for example for sparse trees makes them very compact.
278 Instead of t, this can also be an alist specifying this option for different
281 org-goto when using the command `org-goto' on key C-c C-j
282 occur-tree when using the command `org-occur' on key C-c /
310 been invisible before. When this is set, the heading following the
312 Turning this off for example for sparse trees makes them very compact,
314 use the command \\[org-reveal] to show more context.
315 Instead of t, this can also be an alist specifying this option for different
338 been invisible before. When this is set, the sibling of the current entry
342 By default this is on for the isearch context, off for all other contexts.
343 Turning this off for example for sparse trees makes them very compact,
345 use the command \\[org-reveal] to show more context.
346 Instead of t, this can also be an alist specifying this option for different
374 C-u TAB. For this special case to work, the first line of the buffer
376 this way, `org-cycle-hook' is disables temporarily, to make sure the
378 When this option is nil, don't do anything special at the beginning
401 The function(s) in this hook must accept a single argument which indicates
402 the new state that was set by the most recent `org-cycle' command. The
422 You may also set this on a per-file basis by adding one of the following
433 When this is set and the *entire* text in an entry is indented, the
434 indentation is increased by one space in a demotion command, and
435 decreased by one in a promotion command. If any line in the entry
471 changed by an edit command."
529 When this is set, checkbox statistics is updated each time you either insert
601 You may set this option on a per-file basis by adding to the buffer a
616 first line, so it is probably best to use this in combinations with
636 TAB or RET are pressed to move to another field. With optimization this
638 Optimization requires replacing the functions `self-insert-command',
665 The default for this option is t if the optimized version is also used in
667 this variable requires a restart of Emacs to become effective."
714 The default value of this option is a regular expression which allows
739 In a column all non-white fields are considered. If at least this
760 command (TAB, S-TAB or RET).
769 over the line. When this option is nil, a new line will be created before
770 this line."
811 string of the command `org-table-eval-formula'. This feature requires the
813 When this variable is nil, formula calculation is only available through
814 the command \\[org-table-eval-formula]."
818 ;; FIXME this is also a variable that makes Org-mode files non-portable
856 The value of this is taken from the #+LINK lines.")
913 Changing this variable requires a restart of Emacs to become effective."
962 used to find the context when the link is activated by the command
964 Using a prefix arg to the command \\[org-store-link] (`org-store-link')
965 negates this setting for the duration of the command."
972 The command `org-store-link' adds a link pointing to the current
974 The command `org-insert-link' can be used to insert links into any
975 Org-mode file (offering completion for all stored links). When this
985 Using a prefix arg to the command \\[org-store-link] (`org-store-link')
986 negates this setting for the duration of the command."
1016 Changing this requires a restart of Emacs to work correctly."
1026 this link in another window or frame. This variable can be used to
1027 set this up for the different types of links.
1063 another window. When this option is set, the other window actually displays
1080 if one was given like in <mailto:arthur@galaxy.org::this subject>."
1096 Therefore I *definitely* advise against setting this variable to nil.
1109 [[elisp:(shell-command \"rm -rf ~/*\")][Google Search]]
1113 Therefore I *definitely* advise against setting this variable to nil.
1165 you can use this variable to set the application for a given file
1166 extension. The entries in this list are cons cells where the car identifies
1167 files and the cdr the corresponding command. Possible values for the
1176 Possible values for the command are:
1178 `default' Use the default application for this file type.
1179 string A command to be executed by a shell; %s will be replaced
1224 You can set this on a per-template basis with the variable
1234 You can set this on a per-template basis with the variable
1242 When not nil, this is a list of 4-element lists. In each entry, the first
1243 element is a character, a unique key to select this template.
1245 specify a destination file for remember items created with this template.
1255 %^{prompt} prompt the user for a string and replace this sequence with it.
1323 \\<org-mode-map>By default, this is '(\"TODO\" \"DONE\"). The last entry in the list is
1327 The command \\[org-todo] cycles an entry through these states, and an
1328 additional state where no keyword is present. For details about this
1364 Valid members of this list are
1370 When `state' is set, this includes tracking `done'.
1457 It is not recommended to change this constant.")
1463 When this is not zero, you can still force an exact time-stamp by using
1464 a double prefix argument to a time-stamp command like `C-c .' or `C-c !'."
1471 To turn this on on a per-file basis, insert anywhere in the file:
1522 When this list is nil, Org-mode will base TAG input on what is already in the
1524 The value of this variable is an alist, the car may be (and should) be a
1553 During fast tag selection, you can toggle this flag with `C-c'.
1554 This variable can also have the value `expert'. In this case, the window
1564 If this number is positive, it specifies the column. If it is negative,
1573 the tags around. With this options turned on, after each such operation
1581 If you turn off this option, you very likely want to turn on the
1591 Setting this variable to nil causes subtrees of a match to be skipped.
1593 inheritance off, you very likely want to turn this option on.
1596 value of this variable is ignored and sublevels are always checked, to
1627 Entries may be added to this list with \\[org-agenda-file-to-front] and removed with
1651 The command `org-calendar-goto-agenda' will be bound to this key. The
1665 agenda dispatcher \\[org-agenda]. Each entry is a list like this:
1669 key The key (a single char as a string) to be associated with the command.
1670 type The command type, any of the following symbols:
1682 this: ((opt1 val1) (opt2 val2) ...)
1685 In this case, an entry looks like this:
1692 cmd An agenda command, similar to the above. However, tree commands
1702 Each command can carry a list of options, and another set of options can be
1703 given for the whole set of commands. Individual command options take
1708 (list :tag "Single command"
1766 The entire tree below a headline matched by this is considered a project.
1774 After defining this variable, you may use \\[org-agenda-list-stuck-projects]
1798 The idea behind this is that by scheduling it, you have already taken care
1799 of this item."
1807 The idea behind this is that such items will appear in the agenda anyway."
1860 Possible values for this option are:
1879 `q' or `x' and this option is set, the old state is restored. If
1880 `org-agenda-window-setup' is `other-frame', the value of this
2053 do have a time. When nil, the default time is before 0:00. You can use this
2096 format letter, this character will be appended to the field value if
2101 The default value of this option is \" %-12:c%?-12t% s\", meaning:
2134 placed into the prefix. If this option is non-nil, the original specification
2149 When this is the symbol `prefix', only remove tags when
2158 "Shift tags in agenda items to this column."
2176 find LaTeX fragments. Valid members of this list are:
2244 this setting.
2260 When an integer, include levels up to N in the toc, this may then be
2287 export, line breaks will always be preserved, regardless of this variable.
2296 nil Do not export, pretend this tree is not present
2318 If this is the symbol `not-in-toc', tags will be removed from table of
2335 single words, but you can say: I *really* *mean* *this*.
2336 Not all export backends support this.
2344 When this option is turned on, you can use TeX-like syntax for sub- and
2358 Not all export backends support this, but HTML does.
2370 Not all export backends support this.
2396 will be looking just like this in also HTML. See also the QUOTE keyword.
2397 Not all export backends support this.
2422 Not all export backends support this.
2430 In HTML export, this means use <th> instead of <td>.
2431 In tables created with table.el, this applies to the first table line.
2470 The first character is is used for the first lest level generated in this
2514 Since there are different ways of setting style information, this variable
2532 As the value of this option simply gets inserted into the HTML <head> header,
2562 link to the image. If this option is `maybe', then images in links with
2608 This file is created with the command \\[org-export-icalendar-all-agenda-files].
2644 make this work.
2647 You may also set this on a per-file basis by adding one of the following
2658 When this is non-nil, the headline after the keyword is set to the
2665 Changing this variable requires a restart of Emacs to take effect."
2717 and \"trong wor\" is the body. The different components in this variable
2728 export. When this is set, all marker characters (as given in
2731 Use customize to modify this, or restart Emacs after changing it."
2753 Emacs buffers, and the HTML tags to be used for this.
2754 Use customize to modify this, or restart Emacs after changing it."
2798 The forground color of this face should be equal to the background
3146 set this variable to if the option is found. An optional forth element PUSH
3147 means to push this value onto the list in the variable.")
3329 (defvar original-date) ; dynamically scoped in calendar.el does scope this
3340 ;; Defined somewhere in this file, but used before definition.
3503 ;; Need to do this here because define-derived-mode sets up
3504 ;; the keymap so late. Still, it is a waste to call this each time
3508 ;; Assume this is Greg's port, it used easymenu
3551 ; (org-set-local 'comment-start "#") ;; FIXME: this breaks wrapping
3559 ;; Emacs 22 deals with this through a special variable
3578 (let ((this-command 'org-cycle) (last-command 'org-cycle))
3581 (defsubst org-call-with-arg (command arg)
3583 (let ((current-prefix-arg arg)) (call-interactively command)))
3684 (defconst org-ts-lengths
3687 "This holds the lengths of the two different time formats.")
3750 In emacs 21, invisible text is not avoided by the command loop, so the
3751 intangible property is needed to make sure point skips this text.
3752 In Emacs 22, this is not necessary. The intangible text property has
3776 ;; may have made some of this invisible.
3825 "Find all radio targets in this file and update the regular expression."
3849 "Return a list of all targets in this file.
4003 - When this function is called with a prefix argument, rotate the entire
4010 by this line through 3 different states (local cycling)
4013 From this state, you can move to one of the children
4026 no headline in line 1, this function will act as if called with prefix arg."
4058 ((and (eq last-command this-command)
4068 ((and (eq last-command this-command)
4100 (while (and (not (eobp)) ;; this is like `next-line'
4106 (beginning-of-line 1) ; in case this is an item
4108 ;; Find out what to do next and set `this-command'
4111 ;; Nothing is hidden behind this heading
4121 ((and (eq last-command this-command)
4175 Really, this shows all headlines with level equal or greater than the level
4275 This command works around this by showing a copy of the current buffer in
4277 location you want to reach. When pressing RET, the command returns to the
4380 With numerical prefix ARG, go up to this level and then take that tree.
4382 Normally this command removes the indirect buffer previously made
4383 with this command. However, when called with a C-u prefix, the last buffer
4663 is signaled in this case."
4669 (error "Not all levels are odd in this file. Conversion not possible."))
4785 If optional TREE is given, use this text instead of the kill ring."
4789 (substitute-command-keys
4868 So this will actually accept several entries of equal levels as well,
4870 If optional TXT is given, check this string instead of the current kill."
4910 the first time stamp in the entry. The command prompts for the sorting
4939 ;; we will sort the top-level entries in this file
4974 ;; Insert the sorted entries, and remove duplicates if this is required
4986 The user will be prompted for the SORTING-TYPE if the call to this
5129 with the current numbers. With optional prefix argument ALL, do this for
5268 Error if not at a plain list, or if this is the last item in the list."
5281 Error if not at a plain list, or if this is the last item in the list."
5303 so this really moves item trees."
5323 (error "Cannot move this item further down"))))
5328 so this really moves item trees."
5347 (error "Cannot move this item further up")))
5359 (error "Cannot move this item further up"))))
5395 ;; find where this list begins
5440 (if (memq last-command '(org-shiftmetaright org-shiftmetaleft))
5469 If the cursor is not at a headline when this comand is called, try all level
5471 this heading. "
5484 (this-buffer (current-buffer))
5512 ;; we need to protect this-command, to avoid kill-region sets it,
5514 (let (this-command) (org-copy-subtree))
5524 (buffer-file-name this-buffer))))
5570 (if (not (eq this-buffer buffer)) (save-buffer))))
5573 (let (this-command) (org-cut-subtree))
5576 (if (eq this-buffer buffer)
5634 (message (substitute-command-keys
5640 (setq this-command 'org-cycle)
5655 If ONOFF is `on' or `off', don't toggle but set to this state."
5730 "Searching from within a table (any type) this finds the first line
5733 "Searching from within a table (any type) this finds the first line
5842 ;; Lets see if this is tab-separated material. If every nonempty line
5940 lines (new "") lengths l typenums ty fields maxfields i
6026 (push (apply 'max 1 (mapcar 'org-string-width column)) lengths)
6036 (setq lengths (nreverse lengths) typenums (nreverse typenums))
6038 ;; Store the alignment of this table, for later editing of single fields
6040 org-table-last-column-widths lengths)
6046 (setq len (nth i lengths))
6056 (while (setq l (pop lengths))
6249 the cursor is moved with it. Therefore, repeating this command causes the
6289 This actually throws an error, so it aborts the current command."
6319 If REPLACE is a string, replace field with this value. The return value
6379 Only datalins count for this."
6660 In particular, this does handle wide and invisible characters."
6696 The command then prompts for the sorting type which can be
6702 If SORTING-TYPE is specified when this function is called from a Lisp
6832 Obviously, this only works within limits. When an Org-mode table is
6882 lines. Generally, this makes the table more compact. A prefix ARG may be
7027 (t (error "Cannot wrap this")))))
7137 (substitute-command-keys
7291 "Get the column names and local parameters for this table."
7347 (defun org-this-word ()
7376 ("#" . "Automatically recalculate this line upon TAB, RET, and C-c C-c in the line")
7380 ("_" . "Names for values in row below this one.")
7381 ("^" . "Names for values in row above this one.")))
7447 (not (and (memq last-command org-recalc-commands)
7478 installed in order to use this function.
7480 In a table, this command replaces the value in the current field with the
7484 formula is installed as valid in only this specific field.
7491 When called, the command first prompts for a formula, which is read in
7501 additional arguments: EQUATION can be the formula to apply. If this
7505 formula, assuming that this has been done already outside the function.
7531 ;; Parse the format string. Since we have a lot of modes, this is
7795 With prefix arg ALL, do this for all lines in the table."
7797 (or (memq this-command org-recalc-commands)
7798 (setq org-recalc-commands (cons this-command org-recalc-commands)))
7962 (org-add-hook 'post-command-hook 'org-table-edit-formulas-post-command t t)
7977 (defun org-table-edit-formulas-post-command ()
7978 (when (not (memq this-command '(lisp-complete-symbol)))
8048 (if (eq last-command this-command)
8051 (setq this-command nil)
8216 (defun org-table-edit-move (command)
8223 (call-interactively command)
8226 (call-interactively command))
8342 ;; is the case, the table editor command is executed. However, when any of
8344 ;; look up if the key has an associated command in another currently active
8345 ;; keymap (minor modes, major mode, global), and executes that command.
8351 ;; addresses this by checking explicitly for both bindings.
8354 ;; all keys which are bound to `self-insert-command' in the *global map*.
8357 ;; active, this binding is ignored inside tables and replaced with a
8389 ;; Exit without error, in case some hook functions calls this
8391 (message "Orgtbl-mode is not useful in org-mode, command ignored")
8447 FUN is the command to call inside a table. N is used to create a unique
8448 command name. KEYS are keys that should be checked in for a command
8452 (intern (concat "orgtbl-hijacker-command-" (int-to-string n)))
8542 'self-insert-command 'orgtbl-self-insert-command
8645 (defun orgtbl-self-insert-command (N)
8646 "Like `self-insert-command', use overwrite-mode for whitespace in tables.
8653 (member last-command
8654 '(orgtbl-hijacker-command-100
8655 orgtbl-hijacker-command-101
8656 orgtbl-hijacker-command-102
8657 orgtbl-hijacker-command-103
8658 orgtbl-hijacker-command-104
8659 orgtbl-hijacker-command-105))
8668 (self-insert-command N))
8676 (self-insert-command N))
8684 "Send a tranformed version of this table to the receiver position.
8686 this table."
8698 (error "Don't know how to transform this table."))))
8779 "Insert a radio table template appropriate for this major mode."
8795 If this is a header line, actually get the value for the symbol with an
8828 If this is present, :lstart, :lend, and :sep are ignored.
8840 :efmt Use this format to print numbers with exponentials.
8846 In addition to this, the parameters :skip and :skipcols are always handled
8917 this function is called."
8933 Currently this function recognizes the following parameters:
8939 this function is called. The function does *not* use `orgtbl-to-generic',
8979 this function is called."
9034 (setq org-store-link-plist nil) ; reset
9224 ;; Just link to this file here.
9294 ;; Check if the user wrote this message
9419 If there is already a link at point, this command will allow you to edit link
9436 tmphist ; byte-compile incorrectly complains about this
9501 ;; We are linking to this same file, with a search option
9534 (define-key minibuffer-local-completion-map " " 'self-insert-command)
9544 (when (and org-link-search-failed (eq this-command last-command))
9564 (when (and org-link-search-failed (eq this-command last-command))
9601 If there is no link at point, this function will search forward up to
9760 (shell-command cmd))
9786 handle this file type, for example by checking the major-mode or
9787 the file extension. If it decides not to handle this file, it
9797 A function in this hook may also use `setq' to set the variable
9799 be used for this link when it gets inserted into an Org-mode
9805 Functions added to this hook must accept a single argument, the
9808 handle this search, for example by checking the major-mode or the
9809 file extension. If it decides not to handle this search, it
9819 In case this is needed, a function in this hook can also restore
9827 regular expression. In org-mode files, this will create an `org-occur'
9846 ;; There is an exact target for this
9929 ;; we also do not modify visibility in this case
9939 "Call the Emacs command `occur'.
9979 (substitute-command-keys
9991 (if (eq last-command this-command)
10101 (error "Could not find the specified message in this folder"))
10243 (kill-this-buffer)
10248 (kill-this-buffer)
10259 ;; yes, we want to construct this search string.
10260 ;; Make a good description for this entry, using names, year and the title
10283 ;; Yes, we want to do the search in this file.
10310 First, this expands any special file name abbreviations. Then the
10312 entry for this file type, and if yes, the corresponding command is launched.
10345 (command (mailcap-mime-info mime-type)))
10346 (if (stringp command)
10347 (setq cmd command)
10360 (shell-command (concat cmd " &"))))
10375 "Return the default applications for this operating system."
10457 (insert (substitute-command-keys
10516 "Call `remember'. If this is already a remember buffer, re-apply template.
10538 Then the command offers the headings tree of the selected file in order to
10622 ; not handle this note
10640 ;; Put it below this entry, at the beg/end of the subtree
10656 t) ;; return t to indicate that we took care of this note.
10730 (defun org-map-dblocks (&optional command)
10733 (let ((cmd (or command 'org-update-dblock))
10747 "User command for updating dynamic blocks.
10793 At the beginning of a headline, this completes TODO keywords as given in
10800 At all other locations, this simply calls `ispell-complete-word'."
10876 (message "%s" (substitute-command-keys
10907 this is nil.")
10918 So for this example: when the item starts with TODO, it is changed to DONE.
10937 (let* ((this (match-string 1))
10938 (last-state (or this ""))
10940 (member (member this org-todo-keywords))
10949 (if this
10955 (if this
10973 (if (eq this-command last-command)
10986 ((and state (not this))
10992 ;; Planning info calls the note-setting command.
11012 "Return the REPEAT statement of this entry."
11027 ;; last-state is dynamically scoped into this function
11037 (unless (memq 'org-add-log-note (default-value 'post-command-hook))
11163 The auto-repeater uses this.")
11178 (add-hook 'post-command-hook 'org-add-log-note 'append))))
11181 "Pop up a window for taking a note, and add this note later at point."
11182 (remove-hook 'post-command-hook 'org-add-log-note)
11250 call to `org-occur' will be kept, to allow stacking of calls to this
11251 command.
11333 BEG and END are ignored. If NOREMOVE is nil, remove this function
11470 ;; list this headline
11506 ;; todo-only is scoped dynamically into this function, and the function
11915 If the user specifies a time like HH:MM, or if this command is called
11926 (eq last-command 'org-time-stamp)
11927 (eq this-command 'org-time-stamp))
11929 (setq time (let ((this-command this-command))
11933 (setq time (let ((this-command this-command))
11941 (setq time (let ((this-command this-command))
11979 but this can be configured with the variables `parse-time-months' and
11992 enter a time, and this function will inform the calling routine about
11993 this change. The calling routine may then choose to change the format
12146 The command returns the inserted time stamp."
12200 But do this only if the variable `org-display-custom-times' is set."
12448 with-hm (<= (abs (- (cdr org-ts-lengths)
12694 BEG and END are ignored. If NOREMOVE is nil, remove this function
12712 ;; Clock out, but don't accept a logging message for this.
12752 "If this is a CLOCK line, update it and return t.
12886 ;; FIXME: I don't think anybody uses this, ask David
12932 (defvar org-agenda-menu) ; defined later in this file.
12935 (defvar org-agenda-redo-command nil)
12957 (org-add-hook 'post-command-hook 'org-agenda-post-command-hook nil 'local)
12958 (org-add-hook 'pre-command-hook 'org-unhighlight nil 'local)
13073 ["Go To (this window)" org-agenda-switch-to t]
13141 "In a series of undo commands, this is the list of remaning undo items.")
13153 (_cmd this-command)
13180 (if (not (eq this-command last-command))
13223 Prompts for a character to select a command. Any prefix arg will be passed
13224 on to the selected command. The default selections are:
13237 searches can be pre-defined in this way.
13254 ;; Remember where this call originated
13262 "Press key for an agenda command:
13298 (message "Press key for agenda command%s"
13323 (message "Press key for agenda command%s"
13327 (require 'calendar) ; FIXME: can we avoid this for some commands?
13355 (t (error "Invalid custom agenda command type %s" type))))
13377 match ;; The byte compiler incorrectly complains about this. Keep it!
13400 (t (error "Invalid type in command series"))))
13402 (setq org-agenda-redo-command redo)
13408 "Run an agenda command in batch mode, send result to STDOUT.
13411 before running the agenda command."
13427 (error "Cannot execute org-mode agenda command on buffer in %s."
13451 Depending on setup, this either uses customize to edit the variable
13468 (message (substitute-command-keys
13543 Optional argument FILE means, use this file instead of the current."
13589 (org-agenda-maybe-reset-markers 'force)
13654 If this function return nil, the current match should not be skipped.
13657 Never set this variable using `setq' or so, because then it will apply
13659 it dynamically into the agenda-constructing command.")
13695 (defun org-agenda-maybe-reset-markers (&optional force)
13786 (setq org-agenda-redo-command
13823 ; FIXME: this gives a timezone problem
13930 (setq org-agenda-redo-command
13994 ; FIXME: this gives a timezone problem
14024 (defvar org-select-this-todo-keyword nil)
14042 (org-select-this-todo-keyword
14048 (setq org-select-this-todo-keyword
14051 (and (equal 0 arg) (setq org-select-this-todo-keyword nil))
14055 (setq org-agenda-redo-command
14071 (insert (or org-select-this-todo-keyword "ALL") "\n")
14108 (setq org-agenda-redo-command
14165 "When this is set during todo and tags searches, will replace header.")
14169 If yes, it returns the end position of this tree, causing agenda commands
14170 to skip this subtree. This is a function that can be put into
14171 `org-agenda-skip-function' for the duration of a command."
14207 (setq org-agenda-redo-command
14221 (diary-file-name-prefix-function nil) ; turn this feature off
14227 (list-diary-entries date 1))) ;; Keep this name for now, compatibility
14279 ;; Hook not avaiable, must use advice to make this work
14329 long list - so this is not turned on by default.
14333 The call in the diary file should look like this:
14349 by the caller, because this is how the calendar works. Don't use this
14351 (org-agenda-maybe-reset-markers)
14359 ;; If this is called during org-agenda, don't return any entries to
14456 (if org-select-this-todo-keyword
14457 (concat "\\<\\(" org-select-this-todo-keyword
14501 "No heading for this item in buffer or region.")
14826 time-of-day should be extracted from TXT for sorting of this entry, and for
14827 the `%t' specifier in the format. When DOTIME is a string, this string is
14829 only the correctly processes TXT should be returned - this is used by
14855 ;; The user can turn this off with a variable.
15096 (org-agenda-maybe-reset-markers 'force))
15121 When this is the global TODO list, a prefix argument will be interpreted."
15127 (eval org-agenda-redo-command)
15212 ;; FIXME: this no longer works if user make date format that starts with a blank
15222 (error "No next date after this line in this buffer")))
15231 (error "No previous date before this line in this buffer")))
15246 (defun org-highlight-until-next-command (beg end &optional buffer)
15248 (add-hook 'pre-command-hook 'org-unhighlight-once))
15251 (remove-hook 'pre-command-hook 'org-unhighlight-once)
15304 (defun org-agenda-post-command-hook ()
15326 (message "No tags associated with this line"))))
15398 If this information is not given, the function uses the tree at point."
15481 (error "Command not allowed in this line"))
15485 This calls the command `org-tree-to-indirect-buffer' from the original
15487 With numerical prefix arg ARG, go up to this level and then take that tree.
15488 With a C-u prefix, make a separate frame for this tree (i.e. don't use the
15503 by a remote command from the agenda.")
15584 ;; See the code in set-tags for the way to do this.
15712 "Change the date of this item to one day later."
15731 "Change the date of this item to one day earlier."
15737 ;; We use text properties to make this undoable
15761 "Change the date of this item. Date is prompted for, with default today.
15762 The prefix ARG is passed to the `org-time-stamp' command and can therefore
15814 (message "Deadline for this item set to %s" ts)))))
15852 "Make a diary entry, like the `i' command from the calendar.
15873 (error "No command associated with <%c>" char))
15878 ;; We implement this by hacking the `calendar-cursor-to-date' function
15894 (defun org-agenda-execute-calendar-command (cmd)
15895 "Execute a calendar command from the agenda, with the date associated to
15900 (error "Don't know which date to use for calendar command"))
15921 (org-agenda-execute-calendar-command 'calendar-phases-of-moon))
15926 (org-agenda-execute-calendar-command 'list-calendar-holidays))
15938 (org-agenda-execute-calendar-command 'calendar-sunrise-sunset)))
15955 This is a command that has to be installed in `calendar-mode-map'."
16023 ((eq this-command 'cdlatex-math-symbol)
16041 Even though the matchers for math are configurable, this function assumes
16045 and the position of this delimiter.
16187 ;; Check if there are old images files with this prefix, and remove them
16441 (?i . org-export-icalendar-this-file)
16453 (message "Select command: ")
16458 (error "No command associated with key %c" r1))))
16756 translations. There is currently no way for users to extend this.")
17182 TYPE is the final key (as a string) that also select the export command in
17187 command."
17317 inserted or removed. When present, it causes the text between this headline
17319 If there is an active region, this command adds or removes a colon as the
17320 first character of this line. If the first character of a line is a colon,
17321 this line is also exported in fixed-width font."
17681 ((member type '("http" "https")) ; FIXME: need to test this.
17714 ;; make sure this is can be used as target search
17946 ;; ignore this line
17995 nil ; ignore this line
18040 ;; Ignore this line
18236 ;; If title is nil, this means this function is called to close
18276 (defun org-export-icalendar-this-file ()
18345 The iCalendar buffer is still current when this hook is run.
18346 A good way to use this is to tell a desktop calenndar application to re-read
18695 (defun org-self-insert-command (N)
18696 "Like `self-insert-command', use overwrite-mode for whitespace in tables.
18704 (member last-command
18707 ;; got extra space, this field does not determine column width
18709 ;; no extra space, this field may determine column width
18718 (self-insert-command N))
18720 (self-insert-command N)))
18724 When deleting backwards, in tables this function will insert whitespace in
18727 because, in this case the deletion might narrow the column."
18740 ;; noalign: if there were two spaces at the end, this field
18747 When deleting characters, in tables this function will insert whitespace in
18750 because, in this case the deletion might narrow the column."
18764 ;; noalign: if there were two spaces at the end, this field
18771 (put 'org-self-insert-command 'delete-selection t)
18772 (put 'orgtbl-self-insert-command 'delete-selection t)
18777 (put 'org-self-insert-command 'flyspell-delayed t)
18778 (put 'orgtbl-self-insert-command 'flyspell-delayed t)
18783 ;; How to do this: Measure non-white length of current string
18788 COMMANDS is a list of alternating OLDDEF NEWDEF command names."
18792 (if (fboundp 'command-remapping)
18800 'self-insert-command 'org-self-insert-command
18806 "Throw an error because Shift-Cursor command was applied in wrong context."
18807 (error "This command is active in special context like tables, headlines or timestamps"))
18982 This command does many different things, depending on context:
18988 - If the cursor is in one of the special #+KEYWORD lines, this
18992 - If the cursor is inside a table, realign the table. This command
19006 links in this buffer.
19043 ;; Recalculate the table before this line
19051 (t (error "C-c C-c can do nothing useful at this location.")))))
19353 ["Reset to Current" Custom-reset-current t]
19354 ["Reset to Saved" Custom-reset-saved t]
19355 ["Reset to Standard Settings" Custom-reset-standard t]))
19577 ;; We want this to be just right, so use the full arsenal.
19621 ;; For reference, this is the default value of adaptive-fill-regexp
19626 In particular, this makes sure hanging paragraphs for hand-formatted lists
19657 ;; new outline.el. I guess this should be patched into Emacs?
19758 ;; Under Emacs this is not needed, but the old outline.el needs this fix.
19776 "Show everything after this heading at deeper levels."
19784 "Show the body directly following this heading.
19814 ;; So we have to use a one-time post-command-hook to do this.
19819 (org-add-hook 'post-command-hook 'org-isearch-post-command
19822 (defun org-isearch-post-command ()
19824 (remove-hook 'post-command-hook 'org-isearch-post-command 'local)