emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Holcomb <pholcomb@cpoint.net>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: PATCH Bugfix: repeating SCHEDULED or DEADLINE interface fix
Date: Thu, 11 Feb 2010 16:10:34 -0600	[thread overview]
Message-ID: <20100211221034.GB461@cpoint.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]


 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

[-- Attachment #2: org.el-repeat-schedule-deadline.patch --]
[-- Type: text/plain, Size: 1090 bytes --]

 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

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

             reply	other threads:[~2010-02-11 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 22:10 Paul Holcomb [this message]
2010-02-12 17:31 ` PATCH Bugfix: repeating SCHEDULED or DEADLINE interface fix Carsten Dominik
2010-02-12 18:06   ` Paul Holcomb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100211221034.GB461@cpoint.net \
    --to=pholcomb@cpoint.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).