From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Detect parent with SCHEDULED or DEADLINE Date: Wed, 13 Apr 2016 23:17:33 -0500 Message-ID: <87vb3kx1r6.fsf@alphapapa.net> References: <87bn5dupt4.fsf@artlab.createcnix.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqYix-0000et-9p for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 00:17:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqYiu-000622-3C for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 00:17:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:37778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqYit-00061y-SU for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 00:17:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aqYir-0005dn-Eb for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 06:17:41 +0200 Received: from 172-0-42-27.lightspeed.ltrkar.sbcglobal.net ([172.0.42.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2016 06:17:41 +0200 Received: from adam by 172-0-42-27.lightspeed.ltrkar.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Apr 2016 06:17:41 +0200 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi again Christophe, This patch seems to fix it in the current master. Please note, I am not qualified to patch Org directly, so this should be reviewed by those who know what they're doing. But it may at least fix it for you or be a starting point for fixing it. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-org.el-Fix-getting-special-properties.patch Content-Description: Patch for org.el >From 3074c8ad92a7f822374544afa9f9ada61197e4da Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Wed, 13 Apr 2016 22:37:43 -0500 Subject: [PATCH] org.el: Fix getting special properties (org-entry-get-with-inheritance): If property is an special property, get it with org-entry-properties instead of org-property--local-values, which only searches drawers. This may have been broken in commit 188bae9 "Fix property inheritance with extended values". --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index da16da5..39ed6b0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15960,7 +15960,9 @@ However, if LITERAL-NIL is set, return the string value \"nil\" instead." (let (value) (catch 'exit (while t - (let ((v (org-property--local-values property literal-nil))) + (let ((v (if (member-ignore-case property (cons "CATEGORY" org-special-properties)) + (list (cdar (org-entry-properties nil property))) + (org-property--local-values property literal-nil)))) (when v (setq value (concat (mapconcat #'identity (delq nil v) " ") -- 2.7.4 --=-=-=--