emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org, Guy Mayraz <guy.mayraz@unimelb.edu.au>
Subject: Re: org-stuck-projects confuses a "Next" heading with the NEXT keyword
Date: Tue, 24 Jan 2017 08:14:17 -0600	[thread overview]
Message-ID: <87efzs8s06.fsf@fastmail.fm> (raw)
In-Reply-To: <87y3y3b66m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 22 Jan 2017 14:00:33 +0100")

Hi Nicholas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Guy Mayraz <guy.mayraz@unimelb.edu.au> 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	other threads:[~2017-01-24 14:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19  0:58 org-stuck-projects confuses a "Next" heading with the NEXT keyword Guy Mayraz
2017-01-22 13:00 ` Nicolas Goaziou
2017-01-24 14:14   ` Matt Lundin [this message]
2017-01-24 17:16     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efzs8s06.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=guy.mayraz@unimelb.edu.au \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).