emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: time duration in capture template broken
@ 2016-01-04 23:07 Charles Millar
  2016-01-05 10:36 ` Julien Cubizolles
  2016-01-05 22:31 ` Nicolas Goaziou
  0 siblings, 2 replies; 8+ messages in thread
From: Charles Millar @ 2016-01-04 23:07 UTC (permalink / raw)
  To: emacs-orgmode

Until recently given the following capture template

"* APPOINTMENT %?%^{BeginTimeDuration}T %^{Location} %^{Reason}"

When prompted for the BeginTimeDuration and entered 2/29 09:00+1:00,  etc

would result in

* APPOINTMENT <2016-02-29 Mon 09:00-10:00> Location Reason

it now results in

** APPOINTMENT <2016-02-29 Mon (system time when capture made)> Location 
Reason

If no duration is given, the date and time as entered into the template 
are correctly captured

* APPOINTMENT <2016-02-29 Mon 09:00> Location Reason

Same error if I use 13:00-14:00 or 13:00--14:00 for duration, the start 
and end time still results in the system time when I C-c C-c the capture.

LMDE2
GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified by Debian
Org-mode version 8.3.2 (release_8.3.2-457-g4a6d19 @ 
/usr/local/share/emacs/site-lisp/org-mode/lisp/)

Charlie Millar

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-04 23:07 Bug: time duration in capture template broken Charles Millar
@ 2016-01-05 10:36 ` Julien Cubizolles
  2016-01-05 21:19   ` Nicolas Goaziou
  2016-01-05 22:31 ` Nicolas Goaziou
  1 sibling, 1 reply; 8+ messages in thread
From: Julien Cubizolles @ 2016-01-05 10:36 UTC (permalink / raw)
  To: emacs-orgmode


Maybe it's related, but I just noted that the %^G and %^t fields
%-escapes don't work anymore: they just insert the "%^G" and "%^t"
strings instead of prompting.

Julien;

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-05 10:36 ` Julien Cubizolles
@ 2016-01-05 21:19   ` Nicolas Goaziou
  2016-01-05 21:48     ` Julien Cubizolles
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2016-01-05 21:19 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Hello,

Julien Cubizolles <j.cubizolles@free.fr> writes:

> Maybe it's related, but I just noted that the %^G and %^t fields
> %-escapes don't work anymore: they just insert the "%^G" and "%^t"
> strings instead of prompting.

Could you provide a template where those fail?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-05 21:19   ` Nicolas Goaziou
@ 2016-01-05 21:48     ` Julien Cubizolles
  2016-01-05 22:32       ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Julien Cubizolles @ 2016-01-05 21:48 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> Maybe it's related, but I just noted that the %^G and %^t fields
>> %-escapes don't work anymore: they just insert the "%^G" and "%^t"
>> strings instead of prompting.
>
> Could you provide a template where those fail?

Sure:

--8<---------------cut here---------------start------------->8---
("t" "todo" entry (fileheadline "~/org/orgfiles/refile.org" "Tâches") "* TODO  %? %^G\n DEADLINE: %^t" :clock-resume t :kill-buffer t)--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-04 23:07 Bug: time duration in capture template broken Charles Millar
  2016-01-05 10:36 ` Julien Cubizolles
@ 2016-01-05 22:31 ` Nicolas Goaziou
  2016-01-06  0:03   ` Charles Millar
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2016-01-05 22:31 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode

Hello,

Charles Millar <millarc@verizon.net> writes:

> Until recently given the following capture template
>
> "* APPOINTMENT %?%^{BeginTimeDuration}T %^{Location} %^{Reason}"
>
> When prompted for the BeginTimeDuration and entered 2/29 09:00+1:00,  etc
>
> would result in
>
> * APPOINTMENT <2016-02-29 Mon 09:00-10:00> Location Reason
>
> it now results in
>
> ** APPOINTMENT <2016-02-29 Mon (system time when capture made)>
> Location Reason
>
> If no duration is given, the date and time as entered into the
> template are correctly captured
>
> * APPOINTMENT <2016-02-29 Mon 09:00> Location Reason
>
> Same error if I use 13:00-14:00 or 13:00--14:00 for duration, the
> start and end time still results in the system time when I C-c C-c the
> capture.

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-05 21:48     ` Julien Cubizolles
@ 2016-01-05 22:32       ` Nicolas Goaziou
  2016-01-05 22:38         ` Julien Cubizolles
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2016-01-05 22:32 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Julien Cubizolles <j.cubizolles@free.fr> writes:

> --8<---------------cut here---------------start------------->8---
> ("t" "todo" entry (fileheadline "~/org/orgfiles/refile.org" "Tâches")
> "* TODO  %? %^G\n DEADLINE: %^t" :clock-resume t :kill-buffer
> t)--8<---------------cut here---------------end--------------->8---

I do not see any error. Could you update Org and try again?


Regards,

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-05 22:32       ` Nicolas Goaziou
@ 2016-01-05 22:38         ` Julien Cubizolles
  0 siblings, 0 replies; 8+ messages in thread
From: Julien Cubizolles @ 2016-01-05 22:38 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> --8<---------------cut here---------------start------------->8---
>> ("t" "todo" entry (fileheadline "~/org/orgfiles/refile.org" "Tâches")
>> "* TODO  %? %^G\n DEADLINE: %^t" :clock-resume t :kill-buffer
>> t)--8<---------------cut here---------------end--------------->8---
>
> I do not see any error. Could you update Org and try again?

I can't reproduce the error now, don't know how I messed it up
before. Sorry for the noise.

Julien.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: time duration in capture template broken
  2016-01-05 22:31 ` Nicolas Goaziou
@ 2016-01-06  0:03   ` Charles Millar
  0 siblings, 0 replies; 8+ messages in thread
From: Charles Millar @ 2016-01-06  0:03 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

On 01/05/2016 05:31 PM, Nicolas Goaziou wrote:
> Hello,
>
> Charles Millar <millarc@verizon.net> writes:
>
>> Until recently given the following capture template
>>
>> "* APPOINTMENT %?%^{BeginTimeDuration}T %^{Location} %^{Reason}"
>>
>> When prompted for the BeginTimeDuration and entered 2/29 09:00+1:00,  etc
>>
>> would result in
>>
>> * APPOINTMENT <2016-02-29 Mon 09:00-10:00> Location Reason
>>
>> it now results in
>>
>> ** APPOINTMENT <2016-02-29 Mon (system time when capture made)>
>> Location Reason
>>
>> If no duration is given, the date and time as entered into the
>> template are correctly captured
>>
>> * APPOINTMENT <2016-02-29 Mon 09:00> Location Reason
>>
>> Same error if I use 13:00-14:00 or 13:00--14:00 for duration, the
>> start and end time still results in the system time when I C-c C-c the
>> capture.
> Fixed. Thank you.
Works now. Thank you.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-06  0:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 23:07 Bug: time duration in capture template broken Charles Millar
2016-01-05 10:36 ` Julien Cubizolles
2016-01-05 21:19   ` Nicolas Goaziou
2016-01-05 21:48     ` Julien Cubizolles
2016-01-05 22:32       ` Nicolas Goaziou
2016-01-05 22:38         ` Julien Cubizolles
2016-01-05 22:31 ` Nicolas Goaziou
2016-01-06  0:03   ` Charles Millar

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).