emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-stuck-projects confuses a "Next" heading with the NEXT keywo


From: Matt Lundin
Subject: Re: [O] org-stuck-projects confuses a "Next" heading with the NEXT keyword
Date: Tue, 24 Jan 2017 08:14:17 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Nicholas,

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Guy Mayraz <address@hidden> writes:
>
>> I want every project to have a NEXT or WAIT keyword, and have defined
>> org-stuck-projects as follows:
>>
>> (setq org-stuck-projects '("+LEVEL=2/-INACTIVE-DONE" ("NEXT" "WAIT") nil
>> ""))
>>
>> It mostly works, but it does not identify as stuck a project that has a
>> "Next items" subheading and no NEXT keyword.
>
> Fixed. Thank you.

I find that this commit (7c3e0b0fdfdc0cf1a4724cffe17b6bb160278247)
causes Org mode no longer to identify stuck projects correctly.

Steps to reproduce:

I am using emacs version 25.1.1 and the most recent commit in the Org
mode repo.

/usr/bin/emacs -Q -l ~/minimal.el

minimal.el contains...

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/org-mode/lisp/")
(add-to-list 'load-path "~/org-mode/contrib/lisp/")

(require 'org)

(setq org-agenda-files '("~/config/test.org"))
--8<---------------cut here---------------end--------------->8---

...and test.org contains...

--8<---------------cut here---------------start------------->8---
#+TODO: TODO NEXT | DONE

* Headline
** This project should not be stuck
*** TODO A next action
*** NEXT Another one
--8<---------------cut here---------------end--------------->8---

I am using the default value of org-stuck-projects:

--8<---------------cut here---------------start------------->8---
org-stuck-projects is a variable defined in ‘org-agenda.el’.
Its value is ("+LEVEL=2/-DONE" ("TODO" "NEXT" "NEXTACTION") nil "")
--8<---------------cut here---------------end--------------->8---

M-x org-agenda-list-stuck-projects produces the following:

--8<---------------cut here---------------start------------->8---
List of stuck projects: 
  test:       This project should not be stuck
--8<---------------cut here---------------end--------------->8---

Thanks,
Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]