Hello, I'm on Org-mode 8.2.10 on Xubuntu 16.04 and despite having tried many combinations, I can't manage to view all scheduled tasks that don't have "DONE" and "CANCELLED" as a state. For example, when I do :
(setq org-agenda-custom-commands
'(
("+" "Scheduled"
((todo ""
((org-agenda-overriding-header "\nScheduled")
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notscheduled 'todo '("DONE" "CANCELLED")))
)
))
)
)
)
it shows all scheduled tasks but including those with "DONE" and "CANCELLED" states...
Emacs : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2016-04-17 on lgw01-04, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)
current state:
==============
(setq
org-hide-leading-stars t
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-custom-commands '(("T" todo "TODO") ("N" todo "NEXT")
("S" todo "STARTED") ("W" todo "WAITING")
("F" todo "FROZEN") ("R" todo "REFERENCE")
("D" todo "DELEGATED")
("0" "Unscheduled"
((todo ""
((org-agenda-overriding-header
"\nUnscheduled")
(org-agenda-skip-function
(quote
(org-agenda-skip-entry-if
(quote timestamp) (quote todo)
(quote ("DONE" "CANCELLED")))
)
)
)
)
)
)
("1" "Scheduled today"
((agenda ""
((org-agenda-span 1)
(org-agenda-skip-function
(quote
(org-agenda-skip-entry-if (quote todo)
(quote ("DONE" "CANCELLED")))
)
)
)
)
)
)
("8" "Scheduled this week"
((agenda ""
((org-agenda-start-day "+0")
(org-agenda-span 8)
(org-agenda-skip-function
(quote
(org-agenda-skip-entry-if (quote todo)
(quote ("DONE" "CANCELLED")))
)
)
)
)
)
)
("3" "Scheduled this month"
((agenda ""
((org-agenda-start-day "+0")
(org-agenda-span 31)
(org-agenda-skip-function
(quote
(org-agenda-skip-entry-if (quote todo)
(quote ("DONE" "CANCELLED")))
)
)
)
)
)
)
("+" "Scheduled this month"
((todo ""
((org-agenda-overriding-header "\nScheduled")
(org-agenda-skip-function
(quote
(org-agenda-skip-entry-if
(quote notscheduled) (quote todo)
(quote ("DONE" "CANCELLED")))
)
)
)
)
)
)
)
org-default-notes-file "/home/crocefisso/.../Org-Mode/notes.org"
org-todo-keyword-faces '(("TODO" :foreground "cadetblue1" :background
"dark cyan" :bold t :weight bold)
("NEXT" :foreground "cadetblue1" :background
"navy blue" :bold t :weight bold)
("DONE" :foreground "gray90" :background
"dark olive green" :bold t :weight bold)
("STARTED" :foreground "pink" :background
"dark orchid" :bold t :weight bold)
("WAITING" :foreground "LightGoldenrod1" :background
"tan3" :bold t :weight bold)
("FROZEN" :foreground "cyan" :background "steelblue"
:bold t :weight bold)
("REFERENCE" :foreground "pale green" :background
"green4" :bold t :weight bold)
("CANCELLED" :foreground "gray65" :background
"gray30" :bold t :weight bold)
("DELEGATED" :foreground "moccasin" :background
"navajowhite3" :bold t :weight bold)
)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all
append local]
5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes
(lambda nil (flyspell-mode 1)) global-visual-line-mode)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-directory "~/.../Org-Mode"
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-todo-keywords '((type "TODO" "NEXT" "DONE" "STARTED" "WAITING" "FROZEN"
"REFERENCE" "CANCELLED" "DELEGATED")
)
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-agenda-files '("~/.../Orgzly/ToDo.org"
"~/.../Orgzly/Things to Bring.org")
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-tag-alist '((:startgroup) ("@107" . 109) ("@109" . 57)
("@computing" . 99) ("@lunchtime_or_outing" . 108)
("@online" . 111) ("@phone" . 112)
("@shopping_or_library" . 115) ("@work" . 119) (:endgroup)
(:startgroup) ("buy" . 98) ("enhance_reference" . 101)
("refund" . 114) (:endgroup) (:startgroup) ("1.___career")
("1.1._job_hunting") ("1.2._client") ("1.3._employer")
("2.___FPCFF") ("3.___IML") ("3.1._admin") ("3.2._cleaning")
("3.5._logistics") ("3.6._retrieve_lent_stuff")
("3.7._restock") ("4.___leisure") ("4.4._watch")
("4.5._read") ("5.___improve") ("5.2._gals") ("5.3._health")
("5.4._home_improvement") ("5.9._studies") ("6.___travel")
("7.___venture") (:endgroup))
)