From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel van der Boom Subject: Re: [PATCH] Subtasks are blocked in todo-items of ordered projects. Bug? Date: Tue, 21 Jun 2011 15:48:53 +0200 Message-ID: <20110621154853.2d3e5945@hsdev.com> References: <20110620155011.5fe773ea@hsdev.com> <87fwn4f51i.fsf@norang.ca> <20110621105945.5ecfd641@hsdev.com> <8739j3fmkv.fsf@norang.ca> <20110621134040.04455451@hsdev.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=SHA1; boundary="Sig_/oJlASGFhnn/naKXRYiihTLd"; protocol="application/pkcs7-signature" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1K9-0003Tp-RK for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 09:49:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ1K4-0005Uw-1C for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 09:49:01 -0400 Received: from router2.hsdev.com ([213.125.12.138]:37568 helo=mrb.hsdev.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1K3-0005Uo-IC for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 09:48:55 -0400 In-Reply-To: <20110621134040.04455451@hsdev.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcel van der Boom Cc: Bernt Hansen , emacs-orgmode@gnu.org --Sig_/oJlASGFhnn/naKXRYiihTLd Content-Type: multipart/mixed; boundary="MP_/Wc9_qUWxv6V8=B2YiCPScSY" --MP_/Wc9_qUWxv6V8=B2YiCPScSY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On di 21-jun-2011 13:40 Marcel van der Boom wrote: >> You can also force the task state to DONE with a triple prefix (C-u >> C-u C-u C-c C-t d) which will ignore the blocking rules for this >> state change. =20 > I think I'll use this, sounds the simplest for my usecase. On second thought, the patch is quite minimal, I've applied the attached patch in my branch which seems to do what I want.=20 I'd obviously welcome this being applied in the main tree, but I can understand if it won't. What would be nice in general if the message that is produced contained a hint on why the entry was blocked by the system (children incomplete, sibling blocked etc.) Thanks everyone for the help. marcel --=20 Marcel van der Boom -- http://hsdev.com/mvdb.vcf HS-Development BV -- http://www.hsdev.com We use bitcoin! -- http://bitcoin.org --MP_/Wc9_qUWxv6V8=B2YiCPScSY Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=block-ignore-ancestor-siblings.patch diff --git a/lisp/org.el b/lisp/org.el index fee3174..c28d355 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2181,6 +2181,17 @@ to change is while Emacs is running is through the c= ustomize interface." :group 'org-todo :type 'boolean) =20 +(defcustom org-blocker-ignore-ancestor-siblings nil + "Non-nil means that when determining if a TODO entry is blocked, +siblings of entries which are higher up the hierarchy are not +considered. This allows to register state changes for item in +subprojects of ordered projects which enforce ordering. The +subproject itself is not affected. See +`org-block-todo-from-children-or-siblings-or-parent' for the +implementation." + :group 'org-todo + :type 'boolean)=20 + (defcustom org-enforce-todo-checkbox-dependencies nil "Non-nil means unchecked boxes will block switching the parent to DONE. When this is nil, checkboxes have no influence on switching TODO states. @@ -11151,7 +11162,8 @@ changes. Such blocking occurs when: (when (and (org-not-nil (org-entry-get (point) "ORDERED")) (forward-line 1) (re-search-forward org-not-done-heading-regexp pos t)) - (throw 'dont-block nil)))))))) ; block, older sibling not done. + ; block, older sibling not done, unless configured to ignore. + (throw 'dont-block org-blocker-ignore-ancestor-siblings))))))))=20 =20 (defcustom org-track-ordered-property-with-tag nil "Should the ORDERED property also be shown as a tag? --MP_/Wc9_qUWxv6V8=B2YiCPScSY-- --Sig_/oJlASGFhnn/naKXRYiihTLd Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAA oIITWjCCBDIwggMaoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwezELMAkGA1UEBhMC R0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBwwHU2FsZm9y ZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMMGEFBQSBDZXJ0 aWZpY2F0ZSBTZXJ2aWNlczAeFw0wNDAxMDEwMDAwMDBaFw0yODEyMzEyMzU5NTla MHsxCzAJBgNVBAYTAkdCMRswGQYDVQQIDBJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO BgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoMEUNvbW9kbyBDQSBMaW1pdGVkMSEwHwYD VQQDDBhBQUEgQ2VydGlmaWNhdGUgU2VydmljZXMwggEiMA0GCSqGSIb3DQEBAQUA A4IBDwAwggEKAoIBAQC+QJ30buHqdoccTUVEjr5GyIMGncEq/hgfjuQC+vOrXVCK FjELmgbQxXAizUktVGPMtm5oRgtT6stMJMC8ck7q8RWu9FSaEgrDerIzYOLaiVXz Iljz3tzP74OGooyUT59o8piQRoQnx3a/48w1LIteB2RlgsBIsKiR+WGfdiBQqJHH ZrXreGIDVvCKGhPqMaMeoJn9OPb2JzJYbwf1a7j7FCuvt6rM1mNfc4zaBZmoOKjL F3g2UazpnvR4Oo3PD9lC4pgMqy+fDgHe75+ZSfEt36x0TRuYtUfF5SnR+ZAYx2Kc voPHJns+iiXHwN2d5jVoECCdj9je0sOEnA1e6C/JAgMBAAGjgcAwgb0wHQYDVR0O BBYEFKARCiM+lvEH7OKvKe+CpX/QMKS0MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMB Af8EBTADAQH/MHsGA1UdHwR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