From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: dynamically calculated timestamps? Date: Thu, 2 Sep 2010 13:31:38 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2111594940==" Return-path: Received: from [140.186.70.92] (port=58707 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrDdU-0007N7-NG for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 13:31:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrDdT-0007PC-I3 for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 13:31:40 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:49498) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrDdT-0007P4-8S for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 13:31:39 -0400 Received: by eyh5 with SMTP id 5so558694eyh.0 for ; Thu, 02 Sep 2010 10:31:38 -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: emacs-orgmode@gnu.org --===============2111594940== Content-Type: multipart/alternative; boundary=0015174c4130c17191048f4a2f07 --0015174c4130c17191048f4a2f07 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Sep 2, 2010 at 1:15 PM, Matt Price wrote: > > > (there are subheadings and text in between). While i'm planning I like >> > to move the headings around quite a bit, but it would be nice, while >> > I'm doing that, to still know what date the class meeting will take >> > place on. So I would like to do something like this: >> > * Outline: Semester 1 >> > ** Introduction: What is History For? <2010-09-16 Thu> >> > ** History and the Public Sphere <> >> > ** Recursive Publics<> >> > >> >> "last timestamp" here refers to the date in previous item or last date >> class was held? >> >> to the previous timestamp, sorry. > > >> > So essentially, have something like a spreadsheet formula embedded in >> the >> > timestamp. Does anyone have any ideas how I might jerryrig something >> like >> > that? It would certainly be helpful to me. >> >> The reference to spreadsheet like formula suggests that you want the >> date from previous item to be used to calculate the date for current >> item and a change in the former should cause an appropriate change on >> the latter. org-depend.el (in contrib/lisp) can be used to define the >> relationships but I don't know how you could link dates that way. >> >> Thanks for the pointer, but that file remains a little opaque to me! maybe > someone will explain itto me. Thanks much for the help though. > i've just been htinking about it and it seems this ought to be pretty simple: - find the last timestamp - read its value - go back to point - update timestamp of current headin so, in broken syntactically flawed pseudocode: (defun change-stamp (save-excursion (goto-last-timestamp) (save-timestamp-value)) (set-timestamp-to-saved)) something like that. but of course those functions would have to be written. any ideas? thanks, matt > . > matt > --0015174c4130c17191048f4a2f07 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, Sep 2, 2010 at 1:15 PM, Matt Pri= ce <moptop99@gma= il.com> wrote:

> (there are subheadings and text in between). While i'm planning I = like
> to move the headings around quite a bit, but it would be nice, while > I'm doing that, to still know what date the class meeting will tak= e
> place on. So I would like to do something like this:
> * Outline: Semester 1
> ** Introduction: What is History For? <2010-09-16 Thu>
> ** History and the Public Sphere <<last timestamp+7 days >>= ;
> ** Recursive Publics<<last timestamp+7 days >>
>

"last timestamp" here refers to the date in previous item o= r last date
class was held?

to the previous timestamp, sorry.=A0=
=A0
> So essentially, have something like a spreadsheet formula embedded in = the
> timestamp. =A0Does anyone have any ideas how I might jerryrig somethin= g like
> that? It would certainly be helpful to me.

The reference to spreadsheet like formula suggests that you want the<= br> date from previous item to be used to calculate the date for current
item and a change in the former should cause an appropriate change on
the latter. org-depend.el (in contrib/lisp) can be used to define the
relationships but I don't know how you could link dates that way.

Thanks for the pointer, but that file remains a= little opaque to me! maybe someone will explain itto me.=A0 Thanks much fo= r the help though.

i've just been = htinking about it and it seems this ought to be pretty simple:
- find the last timestamp
- read its value
- go back to point
- up= date timestamp of current headin

so, in broken syntactically flawed = pseudocode:
(defun change-stamp
(save-excursion (goto-last-timestamp)=
(save-timestamp-value))
(set-timestamp-to-saved))
something like that= .=A0 but of course those functions would have to be written.=A0 any ideas?<= br>
=A0thanks,
matt
.
matt

--0015174c4130c17191048f4a2f07-- --===============2111594940== 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 --===============2111594940==--