Mercurial > emacs
changeset 71652:4df24233cf1e
(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.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Fri, 07 Jul 2006 06:31:30 +0000 |
parents | 731edb6e5b4f |
children | 9c582eb56ce7 |
files | lisp/textmodes/org.el |
diffstat | 1 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/org.el Thu Jul 06 23:00:15 2006 +0000 +++ b/lisp/textmodes/org.el Fri Jul 07 06:31:30 2006 +0000 @@ -5,7 +5,7 @@ ;; Author: Carsten Dominik <dominik at science dot uva dot nl> ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://www.astro.uva.nl/~dominik/Tools/org/ -;; Version: 4.42 +;; Version: 4.43 ;; ;; This file is part of GNU Emacs. ;; @@ -90,6 +90,9 @@ ;; ;; Recent changes ;; -------------- +;; Version 4.43 +;; - Big fixes +;; ;; Version 4.42 ;; - Bug fixes ;; - `s' key in the agenda saves all org-mode buffers. @@ -209,7 +212,7 @@ ;;; Customization variables -(defvar org-version "4.42" +(defvar org-version "4.43" "The version number of the file org.el.") (defun org-version () (interactive) @@ -4700,12 +4703,13 @@ (pc '(:org-comment t)) (pall '(:org-archived t :org-comment t)) (rea (concat ":" org-archive-tag ":")) - file re) + bmp file re) (save-excursion (while (setq file (pop files)) (org-check-agenda-file file) (set-buffer (org-get-agenda-file-buffer file)) (widen) + (setq bmp (buffer-modified-p)) (save-excursion (remove-text-properties (point-min) (point-max) pall) (when org-agenda-skip-archived-trees @@ -4717,7 +4721,8 @@ (setq re (concat "^\\*+ +" org-comment-string "\\>")) (while (re-search-forward re nil t) (add-text-properties - (match-beginning 0) (org-end-of-subtree t) pc))))))) + (match-beginning 0) (org-end-of-subtree t) pc))) + (set-buffer-modified-p bmp))))) (defun org-agenda-skip () "Throw to `:skip' in places that should be skipped." @@ -7432,9 +7437,11 @@ (goto-char (point-min)) (while (re-search-forward regexp nil t) (catch :skip - (and org-agenda-todo-ignore-scheduled - (looking-at sched-re) - (throw :skip nil)) + (when (and org-agenda-todo-ignore-scheduled + (looking-at sched-re)) + ;; FIXME: the following test also happens below, but we need it here + (or org-agenda-todo-list-sublevels (org-end-of-subtree 'invisible)) + (throw :skip nil)) (org-agenda-skip) (goto-char (match-beginning 1)) (setq marker (org-agenda-new-marker (1+ (match-beginning 0))) @@ -8696,7 +8703,7 @@ nil nil current 'org-tags-history)))) (while (string-match "[-+&]+" tags) (setq tags (replace-match ":" t t tags)))) - + (unless (setq empty (string-match "\\`[\t ]*\\'" tags)) (unless (string-match ":$" tags) (setq tags (concat tags ":"))) (unless (string-match "^:" tags) (setq tags (concat ":" tags))))