From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Holcomb Subject: PATCH Bugfix: repeating SCHEDULED or DEADLINE interface fix Date: Thu, 11 Feb 2010 16:10:34 -0600 Message-ID: <20100211221034.GB461@cpoint.net> Reply-To: pholcomb@cpoint.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="eheScQNz3K90DVRs" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfhPN-0007ig-CO for emacs-orgmode@gnu.org; Thu, 11 Feb 2010 17:21:13 -0500 Received: from [140.186.70.92] (port=47032 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfhPM-0007iY-Py for emacs-orgmode@gnu.org; Thu, 11 Feb 2010 17:21:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NfhPM-0004Hj-A5 for emacs-orgmode@gnu.org; Thu, 11 Feb 2010 17:21:12 -0500 Received: from mailhost.cpoint.net ([204.10.55.14]:50818) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfhPM-0004HV-5l for emacs-orgmode@gnu.org; Thu, 11 Feb 2010 17:21:12 -0500 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --eheScQNz3K90DVRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline If you only have a repeating SCHEDULED item, allow using the interface to update DEADLINE; also vice-versa. In other words, allow org-schedule or org-deadline to update normal timestamps in the existance of other types of repeating timestamps in the same heading. -- Paul Holcomb *pholcomb \@ cpoint net* GPG key fingerprint 2B62 05AE EE74 845A 705F D716 28C4 FE1C 088F CFAC --eheScQNz3K90DVRs Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="org.el-repeat-schedule-deadline.patch" lisp/org.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 9134e1d..640802a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10710,7 +10710,7 @@ scheduling will use the corresponding date." org-log-redeadline)) (org-remove-timestamp-with-keyword org-deadline-string) (message "Item no longer has a deadline.")) - (if (org-get-repeat) + (if (org-get-repeat org-deadline-string) (error "Cannot change deadline on task with repeater, please do that by hand") (org-add-planning-info 'deadline time 'closed) (when (and old-date org-log-redeadline @@ -10734,7 +10734,7 @@ scheduling will use the corresponding date." org-log-reschedule)) (org-remove-timestamp-with-keyword org-scheduled-string) (message "Item is no longer scheduled.")) - (if (org-get-repeat) + (if (org-get-repeat org-scheduled-string) (error "Cannot reschedule task with repeater, please do that by hand") (org-add-planning-info 'scheduled time 'closed) (when (and old-date org-log-reschedule --eheScQNz3K90DVRs Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --eheScQNz3K90DVRs--