From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: org-entry-delete vs org-entry-put Date: Sat, 21 Jan 2017 11:15:15 +0100 Message-ID: <87o9z03ej0.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUshh-0003c3-2H for emacs-orgmode@gnu.org; Sat, 21 Jan 2017 05:15:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUshd-0001Ff-Tc for emacs-orgmode@gnu.org; Sat, 21 Jan 2017 05:15:25 -0500 Received: from mout.gmx.net ([212.227.17.20]:56590) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cUshd-0001Da-Ix for emacs-orgmode@gnu.org; Sat, 21 Jan 2017 05:15:21 -0500 Received: from stella.c0t0d0s0.de ([89.15.237.137]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MXIGf-1d0WC81gFp-00WISM for ; Sat, 21 Jan 2017 11:15:17 +0100 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 75AA0C45FC for ; Sat, 21 Jan 2017 11:15:15 +0100 (CET) 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 Hello, I'm hacking a function to deactivate and activate recurring tasks without losing the time stamp associated with the scheduled property. I observed two things so far: 1. Property names like DISABLED-SCHEDULED seem to be problematic. I guess the regexp matching the scheduled property is too greedy. 2. (org-entry-put pom "SCHEDULED" nil) removes the property, but (org-entry-delete pom "SCHEDULED") doesn't. On the other hand, (org-entry-put pom "foo" nil) doesn't remove the property, but (org-entry-delete pom "foo") does. It's no real problem, but that seems a bit inconsistent to me. Is that intended behaviour? Regards hmw