emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-stuck-projects confuses a "Next" heading with the NEXT keyword
@ 2017-01-19  0:58 Guy Mayraz
  2017-01-22 13:00 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Guy Mayraz @ 2017-01-19  0:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

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.

In case this is relevant, I have org-occur-case-fold-search set to 'smart,
and this setting works as expected for org-occur, but not for
org-stuck-projects.

Thanks!!

Guy

[-- Attachment #2: Type: text/html, Size: 701 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-stuck-projects confuses a "Next" heading with the NEXT keyword
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2017-01-22 13:00 UTC (permalink / raw)
  To: Guy Mayraz; +Cc: emacs-orgmode

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.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-stuck-projects confuses a "Next" heading with the NEXT keyword
  2017-01-22 13:00 ` Nicolas Goaziou
@ 2017-01-24 14:14   ` Matt Lundin
  2017-01-24 17:16     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Lundin @ 2017-01-24 14:14 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, Guy Mayraz

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-stuck-projects confuses a "Next" heading with the NEXT keyword
  2017-01-24 14:14   ` Matt Lundin
@ 2017-01-24 17:16     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2017-01-24 17:16 UTC (permalink / raw)
  To: Guy Mayraz; +Cc: emacs-orgmode

Hello,

Matt Lundin <mdl@imapmail.org> writes:

> 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...
>
> (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"))
>
>
> ...and test.org contains...
>
> #+TODO: TODO NEXT | DONE
>
> * Headline
> ** This project should not be stuck
> *** TODO A next action
> *** NEXT Another one

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-24 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-01-24 17:16     ` Nicolas Goaziou

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).