From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Obliterating schedule/deadline repeaters Date: Mon, 16 Jun 2008 18:16:20 +0200 Message-ID: <31B0874B-2FF0-4B98-B801-195230980E9F@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: multipart/mixed; boundary="===============0578351619==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8HNn-00066f-RL for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:16:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8HNl-00061q-UQ for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:16:39 -0400 Received: from [199.232.76.173] (port=51236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8HNl-00061d-GC for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:16:37 -0400 Received: from ik-out-1112.google.com ([66.249.90.176]:59835) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8HNl-0000zS-7c for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:16:37 -0400 Received: by ik-out-1112.google.com with SMTP id c21so4204283ika.2 for ; Mon, 16 Jun 2008 09:16:36 -0700 (PDT) In-Reply-To: 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: Greg Novak Cc: emacs-orgmode@gnu.org --===============0578351619== Content-Type: multipart/alternative; boundary=Apple-Mail-3--897420921 --Apple-Mail-3--897420921 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Greg, due to the way this is coded, it is not easy to fix it in a way that the repeater is kept. Also, I think it is good if the user does such changes by hand, to be sure he/she notices that the repeating process not be correct after such a change. So I am going with your proposal to issue a warning if org-schedule or org-deadline is called in an entry that has a repeater. Personally, I normally would not change the scheduling time stamp at all in this case, but just add an extra timestamp for saturday to this entry. Thanks. - Carsten On Jun 14, 2008, at 2:24 AM, Greg Novak wrote: > On the whole I'm happily using org-mode. One thing that I'm unhappy > with is that when I'm looking at the agenda and decide to reschedule a > task that has a repeater, the repeater is obliterated. That is, if > the task is: > > * TODO Oil change > SCHEDULED <2008-6-1 +3m> > > and I think to myself "I'll do that on Saturday, not on Tuesday" then > hit C-c C-s and put in the new date, the repeater is obliterated. > Ideally, the repeater would just be preserved as-is. Almost as good > is if there's some clue in the minibuffer that the task has a repeater > and I should remember to include it in the new date. As it stands, I > have this in my .emacs file to prevent manual changes to tasks with > repeaters---in that case I just look at the org file and change the > schedule date manually: > > (defadvice org-schedule > (around gsn/org-prevent-rescheduling-repeated-tasks activate) > "If the current task has a repeater, prevent rescheduling it to > avoid obliterating the repeater." > (if (org-get-repeat) > (message "*** Can't reschedule this task without obliterating > repeater ***") > ad-do-it)) > > I'm writing the list to see if there's a way to do this and I was just > dumb when I read the manual. If not, I guess this is a feature > request. I'm using v 6.04c. > > Best, > Greg > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-3--897420921 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Greg,

due = to the way this is coded, it is not easy to fix it in a way that the = repeater is kept.  Also, I think it is good if the user does such = changes by hand, to be sure he/she notices that the repeating process = not be correct after such a change.  So I am going with your = proposal to issue a warning if org-schedule or org-deadline is called in = an entry that has a repeater.

Personally, I = normally would not change the scheduling time stamp at all in this case, = but just add an extra timestamp for saturday to this = entry.


Thanks.

- Carsten

On Jun 14, 2008, at 2:24 AM, = Greg Novak wrote:

On the whole I'm happily using org-mode.  One = thing that I'm unhappy
with is that when I'm looking at the agenda = and decide to reschedule a
task that has a repeater, the repeater is = obliterated.  That is, if
the task is:

* TODO Oil = change
 SCHEDULED <2008-6-1 +3m>

and I think to = myself "I'll do that on Saturday, not on Tuesday" then
hit C-c C-s = and put in the new date, the repeater is obliterated.
Ideally, the = repeater would just be preserved as-is.  Almost as good
is if = there's some clue in the minibuffer that the task has a repeater
and = I should remember to include it in the new date.  As it stands, = I
have this in my .emacs file to prevent manual changes to tasks = with
repeaters---in that case I just look at the org file and change = the
schedule date manually:

(defadvice org-schedule
=  (around gsn/org-prevent-rescheduling-repeated-tasks activate)
=  "If the current task has a repeater, prevent rescheduling it = to
avoid obliterating the repeater."
 (if = (org-get-repeat)
     (message "*** Can't = reschedule this task without obliterating
repeater ***")
=      ad-do-it))

I'm writing the list to = see if there's a way to do this and I was just
dumb when I read the = manual.  If not, I guess this is a feature
request.  I'm = using v = 6.04c.

Best,
Greg


___________________________________= ____________
Emacs-orgmode mailing list
Remember: use `Reply All' = to send replies to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-3--897420921-- --===============0578351619== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0578351619==--