diff options
| author | Carsten Dominik | 2006-06-29 10:37:08 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2006-06-29 10:37:08 +0000 |
| commit | 8df0de1c035dca68bca0077d8673c9b5f6c096a8 (patch) | |
| tree | b100d319ae96d85471d7ba11dcb7096bc7929244 | |
| parent | 0625ded0f3137880d555d5cf48709b84821a296d (diff) | |
| download | emacs-8df0de1c035dca68bca0077d8673c9b5f6c096a8.tar.gz emacs-8df0de1c035dca68bca0077d8673c9b5f6c096a8.zip | |
(org-prepare-agenda-buffers): Use `invisible-OK' argument
for `org-end-of-subtree'.
(org-export-cleanup-toc-line): Renamed from
`org-html-cleanup-toc-line'.
(org-beginning-of-item): Fixed bug in regular expression for white
line.
(org-export-as-html): Enforce space after bullet in plain list
items.
(org-set-autofill-regexps): Require space after plain
list bullet for paragraph-start.
(org-ts-regexp3): New constant.
(org-at-timestamp-p): New optional argument ALSO-INACTIVE.
(org-timestamp-up-day, org-timestamp-down-day)
(org-timestamp-change): Work with inactive timestamps.
(org-ts-regexp1): Don't allow brackets in time stamps.
| -rw-r--r-- | lisp/textmodes/org.el | 100 |
1 files changed, 68 insertions, 32 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index a1ff47de7de..58c02d9a899 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Carsten Dominik <dominik at science dot uva dot nl> | 5 | ;; Author: Carsten Dominik <dominik at science dot uva dot nl> |
| 6 | ;; Keywords: outlines, hypermedia, calendar, wp | 6 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 7 | ;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/ | 7 | ;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/ |
| 8 | ;; Version: 4.40 | 8 | ;; Version: 4.41 |
| 9 | ;; | 9 | ;; |
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | ;; | 11 | ;; |
| @@ -90,6 +90,12 @@ | |||
| 90 | ;; | 90 | ;; |
| 91 | ;; Recent changes | 91 | ;; Recent changes |
| 92 | ;; -------------- | 92 | ;; -------------- |
| 93 | ;; Version 4.41 | ||
| 94 | ;; - Shift-curser keys can modify inactive time stamps (inactive time | ||
| 95 | ;; stamps are the ones in [...] brackets. | ||
| 96 | ;; - Toggle all checkboxes in a region/below a headline. | ||
| 97 | ;; - Bug fixes. | ||
| 98 | ;; | ||
| 93 | ;; Version 4.40 | 99 | ;; Version 4.40 |
| 94 | ;; - Bug fixes. | 100 | ;; - Bug fixes. |
| 95 | ;; | 101 | ;; |
| @@ -199,7 +205,7 @@ | |||
| 199 | 205 | ||
| 200 | ;;; Customization variables | 206 | ;;; Customization variables |
| 201 | 207 | ||
| 202 | (defvar org-version "4.40" | 208 | (defvar org-version "4.41" |
| 203 | "The version number of the file org.el.") | 209 | "The version number of the file org.el.") |
| 204 | (defun org-version () | 210 | (defun org-version () |
| 205 | (interactive) | 211 | (interactive) |
| @@ -1905,6 +1911,11 @@ headline Only export the headline, but skip the tree below it." | |||
| 1905 | :group 'org-export | 1911 | :group 'org-export |
| 1906 | :type 'boolean) | 1912 | :type 'boolean) |
| 1907 | 1913 | ||
| 1914 | (defcustom org-export-remove-timestamps-from-toc t | ||
| 1915 | "Nil means, remove timestamps from the table of contents entries." | ||
| 1916 | :group 'org-export | ||
| 1917 | :type 'boolean) | ||
| 1918 | |||
| 1908 | (defcustom org-export-with-tags t | 1919 | (defcustom org-export-with-tags t |
| 1909 | "Nil means, do not export tags, just remove them from headlines." | 1920 | "Nil means, do not export tags, just remove them from headlines." |
| 1910 | :group 'org-export-general | 1921 | :group 'org-export-general |
| @@ -3075,10 +3086,12 @@ that will be added to PLIST. Returns the string that was modified." | |||
| 3075 | "Regular expression for fast time stamp matching.") | 3086 | "Regular expression for fast time stamp matching.") |
| 3076 | (defconst org-ts-regexp-both "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}[^\r\n>]*?\\)[]>]" | 3087 | (defconst org-ts-regexp-both "[[<]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}[^\r\n>]*?\\)[]>]" |
| 3077 | "Regular expression for fast time stamp matching.") | 3088 | "Regular expression for fast time stamp matching.") |
| 3078 | (defconst org-ts-regexp1 "\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\)\\([^0-9>\r\n]*\\)\\(\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)" | 3089 | (defconst org-ts-regexp1 "\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\)\\([^]0-9>\r\n]*\\)\\(\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)" |
| 3079 | "Regular expression matching time strings for analysis.") | 3090 | "Regular expression matching time strings for analysis.") |
| 3080 | (defconst org-ts-regexp2 (concat "<" org-ts-regexp1 ">") | 3091 | (defconst org-ts-regexp2 (concat "<" org-ts-regexp1 ">") |
| 3081 | "Regular expression matching time stamps, with groups.") | 3092 | "Regular expression matching time stamps, with groups.") |
| 3093 | (defconst org-ts-regexp3 (concat "[[<]" org-ts-regexp1 "[]>]") | ||
| 3094 | "Regular expression matching time stamps (also [..]), with groups.") | ||
| 3082 | (defconst org-tr-regexp (concat org-ts-regexp "--?-?" org-ts-regexp) | 3095 | (defconst org-tr-regexp (concat org-ts-regexp "--?-?" org-ts-regexp) |
| 3083 | "Regular expression matching a time stamp range.") | 3096 | "Regular expression matching a time stamp range.") |
| 3084 | (defconst org-tsr-regexp (concat org-ts-regexp "\\(--?-?" | 3097 | (defconst org-tsr-regexp (concat org-ts-regexp "\\(--?-?" |
| @@ -4157,12 +4170,31 @@ If optional TXT is given, check this string instead of the current kill." | |||
| 4157 | (skip-chars-forward " \t") | 4170 | (skip-chars-forward " \t") |
| 4158 | (looking-at "\\[[ X]\\]")))) | 4171 | (looking-at "\\[[ X]\\]")))) |
| 4159 | 4172 | ||
| 4160 | (defun org-toggle-checkbox () | 4173 | (defun org-toggle-checkbox (&optional arg) |
| 4161 | "Toggle the checkbox in the current line." | 4174 | "Toggle the checkbox in the current line." |
| 4162 | (interactive) | 4175 | (interactive "P") |
| 4163 | (save-excursion | 4176 | (catch 'exit |
| 4164 | (if (org-at-item-checkbox-p) | 4177 | (let (beg end status (firstnew 'unknown)) |
| 4165 | (replace-match (if (equal (match-string 0) "[ ]") "[X]" "[ ]") t t)))) | 4178 | (cond |
| 4179 | ((org-region-active-p) | ||
| 4180 | (setq beg (region-beginning) end (region-end))) | ||
| 4181 | ((org-on-heading-p) | ||
| 4182 | (setq beg (point) end (save-excursion (outline-next-heading) (point)))) | ||
| 4183 | ((org-at-item-checkbox-p) | ||
| 4184 | (save-excursion | ||
| 4185 | (replace-match (if (equal (match-string 0) "[ ]") "[X]" "[ ]") t t)) | ||
| 4186 | (throw 'exit t)) | ||
| 4187 | (t (error "Not at a checkbox or heading, and no active region"))) | ||
| 4188 | (save-excursion | ||
| 4189 | (goto-char beg) | ||
| 4190 | (while (< (point) end) | ||
| 4191 | (when (org-at-item-checkbox-p) | ||
| 4192 | (setq status (equal (match-string 0) "[X]")) | ||
| 4193 | (when (eq firstnew 'unknown) | ||
| 4194 | (setq firstnew (not status))) | ||
| 4195 | (replace-match | ||
| 4196 | (if (if arg (not status) firstnew) "[X]" "[ ]") t t)) | ||
| 4197 | (beginning-of-line 2)))))) | ||
| 4166 | 4198 | ||
| 4167 | (defun org-get-indentation (&optional line) | 4199 | (defun org-get-indentation (&optional line) |
| 4168 | "Get the indentation of the current line, interpreting tabs. | 4200 | "Get the indentation of the current line, interpreting tabs. |
| @@ -4216,7 +4248,7 @@ If the cursor is not in an item, throw an error." | |||
| 4216 | (while t | 4248 | (while t |
| 4217 | (beginning-of-line 0) | 4249 | (beginning-of-line 0) |
| 4218 | (if (< (point) limit) (throw 'exit nil)) | 4250 | (if (< (point) limit) (throw 'exit nil)) |
| 4219 | (unless (looking-at " \t]*$") | 4251 | (unless (looking-at "[ \t]*$") |
| 4220 | (skip-chars-forward " \t") | 4252 | (skip-chars-forward " \t") |
| 4221 | (setq ind1 (current-column)) | 4253 | (setq ind1 (current-column)) |
| 4222 | (if (< ind1 ind) | 4254 | (if (< ind1 ind) |
| @@ -4575,7 +4607,7 @@ When TAG is non-nil, don't move trees, but mark them with the ARCHIVE tag." | |||
| 4575 | (save-excursion | 4607 | (save-excursion |
| 4576 | (goto-char begm) | 4608 | (goto-char begm) |
| 4577 | (while (re-search-forward re1 endm t) | 4609 | (while (re-search-forward re1 endm t) |
| 4578 | beg (match-beginning 0) | 4610 | (setq beg (match-beginning 0) |
| 4579 | end (save-excursion (org-end-of-subtree t) (point))) | 4611 | end (save-excursion (org-end-of-subtree t) (point))) |
| 4580 | (goto-char beg) | 4612 | (goto-char beg) |
| 4581 | (if (re-search-forward re end t) | 4613 | (if (re-search-forward re end t) |
| @@ -4588,10 +4620,9 @@ When TAG is non-nil, don't move trees, but mark them with the ARCHIVE tag." | |||
| 4588 | (org-toggle-tag org-archive-tag 'on) | 4620 | (org-toggle-tag org-archive-tag 'on) |
| 4589 | (org-archive-subtree)) | 4621 | (org-archive-subtree)) |
| 4590 | (setq cntarch (1+ cntarch))) | 4622 | (setq cntarch (1+ cntarch))) |
| 4591 | (goto-char end)))) | 4623 | (goto-char end))))) |
| 4592 | (message "%d trees archived" cntarch))) | 4624 | (message "%d trees archived" cntarch))) |
| 4593 | 4625 | ||
| 4594 | |||
| 4595 | (defun org-cycle-hide-archived-subtrees (state) | 4626 | (defun org-cycle-hide-archived-subtrees (state) |
| 4596 | "Re-hide all archived subtrees after a visibility state change." | 4627 | "Re-hide all archived subtrees after a visibility state change." |
| 4597 | (when (and (not org-cycle-open-archived-trees) | 4628 | (when (and (not org-cycle-open-archived-trees) |
| @@ -4658,6 +4689,7 @@ the children that do not contain any open TODO items." | |||
| 4658 | 4689 | ||
| 4659 | (defun org-prepare-agenda-buffers (files) | 4690 | (defun org-prepare-agenda-buffers (files) |
| 4660 | "Create buffers for all agenda files, protect archived trees and comments." | 4691 | "Create buffers for all agenda files, protect archived trees and comments." |
| 4692 | (interactive) | ||
| 4661 | (let ((pa '(:org-archived t)) | 4693 | (let ((pa '(:org-archived t)) |
| 4662 | (pc '(:org-comment t)) | 4694 | (pc '(:org-comment t)) |
| 4663 | (pall '(:org-archived t :org-comment t)) | 4695 | (pall '(:org-archived t :org-comment t)) |
| @@ -4674,12 +4706,12 @@ the children that do not contain any open TODO items." | |||
| 4674 | (goto-char (point-min)) | 4706 | (goto-char (point-min)) |
| 4675 | (while (re-search-forward rea nil t) | 4707 | (while (re-search-forward rea nil t) |
| 4676 | (if (org-on-heading-p) | 4708 | (if (org-on-heading-p) |
| 4677 | (add-text-properties (point-at-bol) (org-end-of-subtree) pa)))) | 4709 | (add-text-properties (point-at-bol) (org-end-of-subtree t) pa)))) |
| 4678 | (goto-char (point-min)) | 4710 | (goto-char (point-min)) |
| 4679 | (setq re (concat "^\\*+ +" org-comment-string "\\>")) | 4711 | (setq re (concat "^\\*+ +" org-comment-string "\\>")) |
| 4680 | (while (re-search-forward re nil t) | 4712 | (while (re-search-forward re nil t) |
| 4681 | (add-text-properties | 4713 | (add-text-properties |
| 4682 | (match-beginning 0) (org-end-of-subtree) pc))))))) | 4714 | (match-beginning 0) (org-end-of-subtree t) pc))))))) |
| 4683 | 4715 | ||
| 4684 | (defun org-agenda-skip () | 4716 | (defun org-agenda-skip () |
| 4685 | "Throw to `:skip' in places that should be skipped." | 4717 | "Throw to `:skip' in places that should be skipped." |
| @@ -5686,7 +5718,7 @@ With prefix ARG, change by that many units." | |||
| 5686 | "Increase the date in the time stamp by one day. | 5718 | "Increase the date in the time stamp by one day. |
| 5687 | With prefix ARG, change that many days." | 5719 | With prefix ARG, change that many days." |
| 5688 | (interactive "p") | 5720 | (interactive "p") |
| 5689 | (if (and (not (org-at-timestamp-p)) | 5721 | (if (and (not (org-at-timestamp-p t)) |
| 5690 | (org-on-heading-p)) | 5722 | (org-on-heading-p)) |
| 5691 | (org-todo 'up) | 5723 | (org-todo 'up) |
| 5692 | (org-timestamp-change (prefix-numeric-value arg) 'day))) | 5724 | (org-timestamp-change (prefix-numeric-value arg) 'day))) |
| @@ -5695,7 +5727,7 @@ With prefix ARG, change that many days." | |||
| 5695 | "Decrease the date in the time stamp by one day. | 5727 | "Decrease the date in the time stamp by one day. |
| 5696 | With prefix ARG, change that many days." | 5728 | With prefix ARG, change that many days." |
| 5697 | (interactive "p") | 5729 | (interactive "p") |
| 5698 | (if (and (not (org-at-timestamp-p)) | 5730 | (if (and (not (org-at-timestamp-p t)) |
| 5699 | (org-on-heading-p)) | 5731 | (org-on-heading-p)) |
| 5700 | (org-todo 'down) | 5732 | (org-todo 'down) |
| 5701 | (org-timestamp-change (- (prefix-numeric-value arg)) 'day))) | 5733 | (org-timestamp-change (- (prefix-numeric-value arg)) 'day))) |
| @@ -5705,14 +5737,14 @@ With prefix ARG, change that many days." | |||
| 5705 | (<= (match-beginning n) pos) | 5737 | (<= (match-beginning n) pos) |
| 5706 | (>= (match-end n) pos))) | 5738 | (>= (match-end n) pos))) |
| 5707 | 5739 | ||
| 5708 | (defun org-at-timestamp-p () | 5740 | (defun org-at-timestamp-p (&optional also-inactive) |
| 5709 | "Determine if the cursor is in or at a timestamp." | 5741 | "Determine if the cursor is in or at a timestamp." |
| 5710 | (interactive) | 5742 | (interactive) |
| 5711 | (let* ((tsr org-ts-regexp2) | 5743 | (let* ((tsr (if also-inactive org-ts-regexp3 org-ts-regexp2)) |
| 5712 | (pos (point)) | 5744 | (pos (point)) |
| 5713 | (ans (or (looking-at tsr) | 5745 | (ans (or (looking-at tsr) |
| 5714 | (save-excursion | 5746 | (save-excursion |
| 5715 | (skip-chars-backward "^<\n\r\t") | 5747 | (skip-chars-backward "^[<\n\r\t") |
| 5716 | (if (> (point) 1) (backward-char 1)) | 5748 | (if (> (point) 1) (backward-char 1)) |
| 5717 | (and (looking-at tsr) | 5749 | (and (looking-at tsr) |
| 5718 | (> (- (match-end 0) pos) -1)))))) | 5750 | (> (- (match-end 0) pos) -1)))))) |
| @@ -5737,7 +5769,7 @@ in the timestamp determines what will be changed." | |||
| 5737 | org-ts-what | 5769 | org-ts-what |
| 5738 | (pos (point)) | 5770 | (pos (point)) |
| 5739 | ts time time0) | 5771 | ts time time0) |
| 5740 | (if (not (org-at-timestamp-p)) | 5772 | (if (not (org-at-timestamp-p t)) |
| 5741 | (error "Not at a timestamp")) | 5773 | (error "Not at a timestamp")) |
| 5742 | (setq org-ts-what (or what org-ts-what)) | 5774 | (setq org-ts-what (or what org-ts-what)) |
| 5743 | (setq fmt (if (<= (abs (- (cdr org-ts-lengths) | 5775 | (setq fmt (if (<= (abs (- (cdr org-ts-lengths) |
| @@ -5745,6 +5777,8 @@ in the timestamp determines what will be changed." | |||
| 5745 | 1) | 5777 | 1) |
| 5746 | (cdr org-time-stamp-formats) | 5778 | (cdr org-time-stamp-formats) |
| 5747 | (car org-time-stamp-formats))) | 5779 | (car org-time-stamp-formats))) |
| 5780 | (if (= (char-after (match-beginning 0)) ?\[) | ||
| 5781 | (setq fmt (concat "[" (substring fmt 1 -1) "]"))) | ||
| 5748 | (setq ts (match-string 0)) | 5782 | (setq ts (match-string 0)) |
| 5749 | (replace-match "") | 5783 | (replace-match "") |
| 5750 | (setq time0 (org-parse-time-string ts)) | 5784 | (setq time0 (org-parse-time-string ts)) |
| @@ -13819,7 +13853,7 @@ lang=\"%s\" xml:lang=\"%s\"> | |||
| 13819 | level (org-tr-level level) | 13853 | level (org-tr-level level) |
| 13820 | txt (save-match-data | 13854 | txt (save-match-data |
| 13821 | (org-html-expand | 13855 | (org-html-expand |
| 13822 | (org-html-cleanup-toc-line | 13856 | (org-export-cleanup-toc-line |
| 13823 | (match-string 3 line)))) | 13857 | (match-string 3 line)))) |
| 13824 | todo | 13858 | todo |
| 13825 | (or (and org-export-mark-todo-in-toc | 13859 | (or (and org-export-mark-todo-in-toc |
| @@ -14055,9 +14089,9 @@ lang=\"%s\" xml:lang=\"%s\"> | |||
| 14055 | ;; Normal lines | 14089 | ;; Normal lines |
| 14056 | (when (string-match | 14090 | (when (string-match |
| 14057 | (cond | 14091 | (cond |
| 14058 | ((eq llt t) "^\\([ \t]*\\)\\(\\([-+*]\\)\\|\\([0-9]+[.)]\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") | 14092 | ((eq llt t) "^\\([ \t]*\\)\\(\\([-+*] \\)\\|\\([0-9]+[.)]\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") |
| 14059 | ((= llt ?.) "^\\([ \t]*\\)\\(\\([-+*]\\)\\|\\([0-9]+\\.\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") | 14093 | ((= llt ?.) "^\\([ \t]*\\)\\(\\([-+*] \\)\\|\\([0-9]+\\.\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") |
| 14060 | ((= llt ?\)) "^\\( \t]*\\)\\(\\([-+*]\\)\\|\\([0-9]+)\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") | 14094 | ((= llt ?\)) "^\\( \t]*\\)\\(\\([-+*] \\)\\|\\([0-9]+)\\) \\)?\\( *[^ \t\n\r]\\|[ \t]*$\\)") |
| 14061 | (t (error "Invalid value of `org-plain-list-ordered-item-terminator'"))) | 14095 | (t (error "Invalid value of `org-plain-list-ordered-item-terminator'"))) |
| 14062 | line) | 14096 | line) |
| 14063 | (setq ind (org-get-string-indentation line) | 14097 | (setq ind (org-get-string-indentation line) |
| @@ -14345,12 +14379,13 @@ But it has the disadvantage, that Org-mode's HTML conversions cannot be used." | |||
| 14345 | (setq s (replace-match ">" t t s)))) | 14379 | (setq s (replace-match ">" t t s)))) |
| 14346 | s) | 14380 | s) |
| 14347 | 14381 | ||
| 14348 | (defun org-html-cleanup-toc-line (s) | 14382 | (defun org-export-cleanup-toc-line (s) |
| 14349 | "Remove tags and time staps from lines going into the toc." | 14383 | "Remove tags and time staps from lines going into the toc." |
| 14350 | (if (string-match " +:[a-zA-Z0-9_@:]+: *$" s) | 14384 | (if (string-match " +:[a-zA-Z0-9_@:]+: *$" s) |
| 14351 | (setq s (replace-match "" t t s))) | 14385 | (setq s (replace-match "" t t s))) |
| 14352 | (while (string-match org-maybe-keyword-time-regexp s) | 14386 | (when org-export-remove-timestamps-from-toc |
| 14353 | (setq s (replace-match "" t t s))) | 14387 | (while (string-match org-maybe-keyword-time-regexp s) |
| 14388 | (setq s (replace-match "" t t s)))) | ||
| 14354 | s) | 14389 | s) |
| 14355 | 14390 | ||
| 14356 | (defun org-html-expand (string) | 14391 | (defun org-html-expand (string) |
| @@ -15219,6 +15254,7 @@ The images can be removed again with \\[org-ctrl-c-ctrl-c]." | |||
| 15219 | (define-key org-mode-map "\C-c\C-x\C-r" 'org-clock-report) | 15254 | (define-key org-mode-map "\C-c\C-x\C-r" 'org-clock-report) |
| 15220 | (define-key org-mode-map "\C-c\C-x\C-u" 'org-dblock-update) | 15255 | (define-key org-mode-map "\C-c\C-x\C-u" 'org-dblock-update) |
| 15221 | (define-key org-mode-map "\C-c\C-x\C-l" 'org-preview-latex-fragment) | 15256 | (define-key org-mode-map "\C-c\C-x\C-l" 'org-preview-latex-fragment) |
| 15257 | (define-key org-mode-map "\C-c\C-x\C-b" 'org-toggle-checkbox) | ||
| 15222 | 15258 | ||
| 15223 | (when (featurep 'xemacs) | 15259 | (when (featurep 'xemacs) |
| 15224 | (define-key org-mode-map 'button3 'popup-mode-menu)) | 15260 | (define-key org-mode-map 'button3 'popup-mode-menu)) |
| @@ -15435,7 +15471,7 @@ Calls `org-timestamp-up' or `org-priority-up', depending on context. | |||
| 15435 | See the individual commands for more information." | 15471 | See the individual commands for more information." |
| 15436 | (interactive "P") | 15472 | (interactive "P") |
| 15437 | (cond | 15473 | (cond |
| 15438 | ((org-at-timestamp-p) (call-interactively 'org-timestamp-up)) | 15474 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-up)) |
| 15439 | ((org-on-heading-p) (call-interactively 'org-priority-up)) | 15475 | ((org-on-heading-p) (call-interactively 'org-priority-up)) |
| 15440 | ((org-at-item-p) (call-interactively 'org-previous-item)) | 15476 | ((org-at-item-p) (call-interactively 'org-previous-item)) |
| 15441 | (t (call-interactively 'org-beginning-of-item) (beginning-of-line 1)))) | 15477 | (t (call-interactively 'org-beginning-of-item) (beginning-of-line 1)))) |
| @@ -15446,7 +15482,7 @@ Calls `org-timestamp-down' or `org-priority-down', depending on context. | |||
| 15446 | See the individual commands for more information." | 15482 | See the individual commands for more information." |
| 15447 | (interactive "P") | 15483 | (interactive "P") |
| 15448 | (cond | 15484 | (cond |
| 15449 | ((org-at-timestamp-p) (call-interactively 'org-timestamp-down)) | 15485 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-down)) |
| 15450 | ((org-on-heading-p) (call-interactively 'org-priority-down)) | 15486 | ((org-on-heading-p) (call-interactively 'org-priority-down)) |
| 15451 | (t (call-interactively 'org-next-item)))) | 15487 | (t (call-interactively 'org-next-item)))) |
| 15452 | 15488 | ||
| @@ -15454,7 +15490,7 @@ See the individual commands for more information." | |||
| 15454 | "Next TODO keyword or timestamp one day later, depending on context." | 15490 | "Next TODO keyword or timestamp one day later, depending on context." |
| 15455 | (interactive) | 15491 | (interactive) |
| 15456 | (cond | 15492 | (cond |
| 15457 | ((org-at-timestamp-p) (call-interactively 'org-timestamp-up-day)) | 15493 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-up-day)) |
| 15458 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'right)) | 15494 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'right)) |
| 15459 | (t (org-shiftcursor-error)))) | 15495 | (t (org-shiftcursor-error)))) |
| 15460 | 15496 | ||
| @@ -15462,7 +15498,7 @@ See the individual commands for more information." | |||
| 15462 | "Previous TODO keyword or timestamp one day earlier, depending on context." | 15498 | "Previous TODO keyword or timestamp one day earlier, depending on context." |
| 15463 | (interactive) | 15499 | (interactive) |
| 15464 | (cond | 15500 | (cond |
| 15465 | ((org-at-timestamp-p) (call-interactively 'org-timestamp-down-day)) | 15501 | ((org-at-timestamp-p t) (call-interactively 'org-timestamp-down-day)) |
| 15466 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'left)) | 15502 | ((org-on-heading-p) (org-call-with-arg 'org-todo 'left)) |
| 15467 | (t (org-shiftcursor-error)))) | 15503 | (t (org-shiftcursor-error)))) |
| 15468 | 15504 | ||
| @@ -15986,7 +16022,7 @@ return nil." | |||
| 15986 | (set (make-local-variable 'paragraph-separate) "\f\\|\\*\\|[ ]*$\\|[ \t]*[:|]") | 16022 | (set (make-local-variable 'paragraph-separate) "\f\\|\\*\\|[ ]*$\\|[ \t]*[:|]") |
| 15987 | ;; The paragraph starter includes hand-formatted lists. | 16023 | ;; The paragraph starter includes hand-formatted lists. |
| 15988 | (set (make-local-variable 'paragraph-start) | 16024 | (set (make-local-variable 'paragraph-start) |
| 15989 | "\f\\|[ ]*$\\|\\([*\f]+\\)\\|[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\)\\|[ \t]*[:|]") | 16025 | "\f\\|[ ]*$\\|\\([*\f]+\\)\\|[ \t]*\\([-+*][ \t]+\\|[0-9]+[.)][ \t]+\\)\\|[ \t]*[:|]") |
| 15990 | ;; Inhibit auto-fill for headers, tables and fixed-width lines. | 16026 | ;; Inhibit auto-fill for headers, tables and fixed-width lines. |
| 15991 | ;; But only if the user has not turned off tables or fixed-width regions | 16027 | ;; But only if the user has not turned off tables or fixed-width regions |
| 15992 | (set (make-local-variable 'auto-fill-inhibit-regexp) | 16028 | (set (make-local-variable 'auto-fill-inhibit-regexp) |