aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2006-07-07 06:31:30 +0000
committerCarsten Dominik2006-07-07 06:31:30 +0000
commit40a555f70f144eedf511a29d26b643bcc8dd9a44 (patch)
tree0b6d8fa3a26df434b42793d8f16463b1b29acacf
parentfad82744c11a940dc4a5d4360bc7cebe9d8e30c7 (diff)
downloademacs-40a555f70f144eedf511a29d26b643bcc8dd9a44.tar.gz
emacs-40a555f70f144eedf511a29d26b643bcc8dd9a44.zip
(org-agenda-get-todos): Skip subtree also if entry is
skipped because it has been scheduled. (org-prepare-agenda-buffers): Don't mark buffers as modified when changing `:org-archived' and `:org-comment' properties.
-rw-r--r--lisp/textmodes/org.el23
1 files changed, 15 insertions, 8 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index 79d526cbe76..4cda0d6b3a0 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.42 8;; Version: 4.43
9;; 9;;
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11;; 11;;
@@ -90,6 +90,9 @@
90;; 90;;
91;; Recent changes 91;; Recent changes
92;; -------------- 92;; --------------
93;; Version 4.43
94;; - Big fixes
95;;
93;; Version 4.42 96;; Version 4.42
94;; - Bug fixes 97;; - Bug fixes
95;; - `s' key in the agenda saves all org-mode buffers. 98;; - `s' key in the agenda saves all org-mode buffers.
@@ -209,7 +212,7 @@
209 212
210;;; Customization variables 213;;; Customization variables
211 214
212(defvar org-version "4.42" 215(defvar org-version "4.43"
213 "The version number of the file org.el.") 216 "The version number of the file org.el.")
214(defun org-version () 217(defun org-version ()
215 (interactive) 218 (interactive)
@@ -4700,12 +4703,13 @@ the children that do not contain any open TODO items."
4700 (pc '(:org-comment t)) 4703 (pc '(:org-comment t))
4701 (pall '(:org-archived t :org-comment t)) 4704 (pall '(:org-archived t :org-comment t))
4702 (rea (concat ":" org-archive-tag ":")) 4705 (rea (concat ":" org-archive-tag ":"))
4703 file re) 4706 bmp file re)
4704 (save-excursion 4707 (save-excursion
4705 (while (setq file (pop files)) 4708 (while (setq file (pop files))
4706 (org-check-agenda-file file) 4709 (org-check-agenda-file file)
4707 (set-buffer (org-get-agenda-file-buffer file)) 4710 (set-buffer (org-get-agenda-file-buffer file))
4708 (widen) 4711 (widen)
4712 (setq bmp (buffer-modified-p))
4709 (save-excursion 4713 (save-excursion
4710 (remove-text-properties (point-min) (point-max) pall) 4714 (remove-text-properties (point-min) (point-max) pall)
4711 (when org-agenda-skip-archived-trees 4715 (when org-agenda-skip-archived-trees
@@ -4717,7 +4721,8 @@ the children that do not contain any open TODO items."
4717 (setq re (concat "^\\*+ +" org-comment-string "\\>")) 4721 (setq re (concat "^\\*+ +" org-comment-string "\\>"))
4718 (while (re-search-forward re nil t) 4722 (while (re-search-forward re nil t)
4719 (add-text-properties 4723 (add-text-properties
4720 (match-beginning 0) (org-end-of-subtree t) pc))))))) 4724 (match-beginning 0) (org-end-of-subtree t) pc)))
4725 (set-buffer-modified-p bmp)))))
4721 4726
4722(defun org-agenda-skip () 4727(defun org-agenda-skip ()
4723 "Throw to `:skip' in places that should be skipped." 4728 "Throw to `:skip' in places that should be skipped."
@@ -7432,9 +7437,11 @@ the documentation of `org-diary'."
7432 (goto-char (point-min)) 7437 (goto-char (point-min))
7433 (while (re-search-forward regexp nil t) 7438 (while (re-search-forward regexp nil t)
7434 (catch :skip 7439 (catch :skip
7435 (and org-agenda-todo-ignore-scheduled 7440 (when (and org-agenda-todo-ignore-scheduled
7436 (looking-at sched-re) 7441 (looking-at sched-re))
7437 (throw :skip nil)) 7442 ;; FIXME: the following test also happens below, but we need it here
7443 (or org-agenda-todo-list-sublevels (org-end-of-subtree 'invisible))
7444 (throw :skip nil))
7438 (org-agenda-skip) 7445 (org-agenda-skip)
7439 (goto-char (match-beginning 1)) 7446 (goto-char (match-beginning 1))
7440 (setq marker (org-agenda-new-marker (1+ (match-beginning 0))) 7447 (setq marker (org-agenda-new-marker (1+ (match-beginning 0)))
@@ -8696,7 +8703,7 @@ With prefix ARG, realign all tags in headings in the current buffer."
8696 nil nil current 'org-tags-history)))) 8703 nil nil current 'org-tags-history))))
8697 (while (string-match "[-+&]+" tags) 8704 (while (string-match "[-+&]+" tags)
8698 (setq tags (replace-match ":" t t tags)))) 8705 (setq tags (replace-match ":" t t tags))))
8699 8706
8700 (unless (setq empty (string-match "\\`[\t ]*\\'" tags)) 8707 (unless (setq empty (string-match "\\`[\t ]*\\'" tags))
8701 (unless (string-match ":$" tags) (setq tags (concat tags ":"))) 8708 (unless (string-match ":$" tags) (setq tags (concat tags ":")))
8702 (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) 8709 (unless (string-match "^:" tags) (setq tags (concat ":" tags))))