From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-stuck-projects confuses a "Next" heading with the NEXT keyword Date: Tue, 24 Jan 2017 08:14:17 -0600 Message-ID: <87efzs8s06.fsf@fastmail.fm> References: <87y3y3b66m.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW1rb-00034q-6g for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:14:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cW1rX-0007cj-WF for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:14:23 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37566) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cW1rX-0007cB-Qi for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 09:14:19 -0500 In-Reply-To: <87y3y3b66m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 22 Jan 2017 14:00:33 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Guy Mayraz Hi Nicholas, Nicolas Goaziou writes: > Hello, > > Guy Mayraz 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=3D2/-INACTIVE-DONE" ("NEXT" "WAIT") n= il >> "")) >> >> 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 =E2=80=98org-agenda.el=E2=80=99. Its value is ("+LEVEL=3D2/-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:=20 test: This project should not be stuck --8<---------------cut here---------------end--------------->8--- Thanks, Matt