From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Creating consecutive time stamps Date: Tue, 4 Apr 2017 12:49:15 +0200 Message-ID: References: <87inmk4pyr.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113eeb18286630054c550812 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvM1q-0004K7-Jd for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 06:49:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvM1p-0001WI-LE for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 06:49:38 -0400 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:35278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvM1p-0001W7-Gi for emacs-orgmode@gnu.org; Tue, 04 Apr 2017 06:49:37 -0400 Received: by mail-io0-x22b.google.com with SMTP id z13so92844991iof.2 for ; Tue, 04 Apr 2017 03:49:37 -0700 (PDT) In-Reply-To: <87inmk4pyr.fsf@luisa.c0t0d0s0.de> 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: Michael Welle Cc: org-mode list --001a113eeb18286630054c550812 Content-Type: text/plain; charset=UTF-8 Hi MIchael, the automatic reset of the starting date for a second time stamp on works if the command `org-time-stamp' is invoked twice in direct succession. So if you press `C-c .' to insert a time stamp, and then you press it immediately again, the magic will take its course. This is probably the situation that you remember. However, if you use %T in a template, then `last-command' is `org-capture', and the time stamp command does not know that you are making a range. I could, by looking back and finding <...>-- , but that is not implemented. You might be better off Using an empty template and then inserting both time stamps with `C-c .' - which will make it easy to also directly choose the starting date. Carsten On Tue, Apr 4, 2017 at 9:00 AM, Michael Welle wrote: > Hello, > > the subject is a bit fuzzy, so let me depict an example use case: > creating an appointment for a multi-day conference. I use a capture > template with the placeholder %T for that (I use the same template for > single day appts, which occur more often.). Then I adjust the inserted > time stamp, add --, press C-. and add the second time stamp. > > So far, good. The itching point is that the calendar view for the second > time stamp starts today, again, not at the date of the first time stamp. > I can dimly remember -or I think I do ;)- that that was different in the > past, maybe with a different template. Any ideas for a 'grey ointment' > that stops the itching? > > Regards > hmw > > --001a113eeb18286630054c550812 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi MIchael,

the automatic reset of the = starting date for a second time stamp on works
if the command `or= g-time-stamp' is invoked twice in direct succession.=C2=A0 So if you pr= ess `C-c =C2=A0.' =C2=A0to insert a time stamp, and then you press it i= mmediately again, the magic will take its course.=C2=A0 This is probably th= e situation that you remember.

However, if you use= %T in a template, then `last-command' is `org-capture', and the ti= me stamp command does not know that you are making a range.=C2=A0 I could, = by looking back and finding <...>-- , but that is not implemented.=C2= =A0 You might be better off Using an empty template and then inserting both= time stamps with `C-c .' - which will make it easy to also directly ch= oose the starting date.

Carsten

On Tue, Apr 4, 2017 at 9= :00 AM, Michael Welle <mwe012008@gmx.net> wrote:
Hello,

the subject is a bit fuzzy, so let me depict an example use case:
creating an appointment for a multi-day conference. I use a capture
template with the placeholder %T for that (I use the same template for
single day appts, which occur more often.). Then I adjust the inserted
time stamp, add --, press C-. and add the second time stamp.

So far, good. The itching point is that the calendar view for the second time stamp starts today, again, not at the date of the first time stamp. I can dimly remember -or I think I do ;)- that that was different in the past, maybe with a different template. Any ideas for a 'grey ointment&#= 39;
that stops the itching?

Regards
hmw


--001a113eeb18286630054c550812--