emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem inserting meeting in agenda using "pm" time indicators
@ 2021-05-24 15:31 Eric S Fraga
  2021-05-30  6:12 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2021-05-24 15:31 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hello all,

In the past, I have been able to insert new entries in the diary file
using am/pm times, e.g. "2pm-3pm An entry", using "i d" in the agenda
view.

When I try this now, with org up to date from git, I get this backtrace:

,----
| Debugger entered--Lisp error: (error "Invalid duration format: \"3pm\"")
|   error("Invalid duration format: %S" "3pm")
|   org-duration-to-minutes("3pm")
|   org-agenda-format-item(nil "2pm-3pm testing" nil nil nil t)
|   org-agenda-add-entry-to-org-agenda-diary-file(day "2pm-3pm testing" (6 28 2021))
|   org-agenda-diary-entry-in-org-file()
|   org-agenda-diary-entry()
|   funcall-interactively(org-agenda-diary-entry)
|   command-execute(org-agenda-diary-entry)
`----

If I represent the times using 24 hour clock, e.g. 14:00-15:00, it works
fine.

I know that there has been some ongoing discussion on durations etc. on
the list but I've not been tracking this.  Is what I want to do no
longer allowed?  I've looked at the ORG-NEWS file but did not see
anything.

Thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-542-gf72a65


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

* Re: Problem inserting meeting in agenda using "pm" time indicators
  2021-05-24 15:31 Problem inserting meeting in agenda using "pm" time indicators Eric S Fraga
@ 2021-05-30  6:12 ` Ihor Radchenko
  2021-06-17 17:30   ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2021-05-30  6:12 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Emacs Org mode mailing list

Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> When I try this now, with org up to date from git, I get this backtrace:
>
> ,----
> | Debugger entered--Lisp error: (error "Invalid duration format: \"3pm\"")

Confirmed


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

* Re: Problem inserting meeting in agenda using "pm" time indicators
  2021-05-30  6:12 ` Ihor Radchenko
@ 2021-06-17 17:30   ` Nicolas Goaziou
  2021-06-18  8:38     ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2021-06-17 17:30 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Emacs Org mode mailing list, Eric S Fraga

Hello,

Ihor Radchenko <yantar92@gmail.com> writes:

> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>> When I try this now, with org up to date from git, I get this backtrace:
>>
>> ,----
>> | Debugger entered--Lisp error: (error "Invalid duration format: \"3pm\"")
>
> Confirmed

Fixed

(hopefully)

Regards,
-- 
Nicolas Goaziou


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

* Re: Problem inserting meeting in agenda using "pm" time indicators
  2021-06-17 17:30   ` Nicolas Goaziou
@ 2021-06-18  8:38     ` Eric S Fraga
  2021-06-18 12:14       ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2021-06-18  8:38 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Emacs Org mode mailing list

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

On Thursday, 17 Jun 2021 at 19:30, Nicolas Goaziou wrote:
>> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>>> When I try this now, with org up to date from git, I get this backtrace:
>>>
>>> ,----
>>> | Debugger entered--Lisp error: (error "Invalid duration format: \"3pm\"")
>
> Fixed
>
> (hopefully)

Ummm partly?  The parsing seems to have been fixed but now my agenda
view is completely wrong.  Timed entries are not showing in the time
line and the actual times for those entries are not appearing.

Having said this, I have been playing with org-agenda-prefix-format the
past few days so maybe this has something to do with the issues I'm
seeing now.

My prefix settings are:

'(org-agenda-prefix-format
   '((agenda . "%-10c %?-12t %i % s")
     (timeline . "% s")
     (todo . "%-13c")
     (tags . "%-10:c ")
     (search . "%-15:c %i ")))

which was working yesterday (sort of: there is a separate minor
formatting issue which I will ask about at some point but it's not
mission critical) before I upgraded org to the latest version this
morning.

What I see with two events, one timed and one not, is shown in the
attached screenshot.

I have too much work at the moment (deadlines) to explore but will do so
hopefully later today and will update.

thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-555-g5a03ad
: Latest paper written in org: https://arxiv.org/abs/2106.05096

[-- Attachment #2: screendump-20210618092819.png --]
[-- Type: image/png, Size: 18133 bytes --]

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

* Re: Problem inserting meeting in agenda using "pm" time indicators
  2021-06-18  8:38     ` Eric S Fraga
@ 2021-06-18 12:14       ` Nicolas Goaziou
  2021-06-18 12:42         ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2021-06-18 12:14 UTC (permalink / raw)
  To: Org Mode List

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Ummm partly?  The parsing seems to have been fixed but now my agenda
> view is completely wrong.  Timed entries are not showing in the time
> line and the actual times for those entries are not appearing.

Duh. Fixed. Thank you.

Regards,
-- 
Nicolas Goaziou


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

* Re: Problem inserting meeting in agenda using "pm" time indicators
  2021-06-18 12:14       ` Nicolas Goaziou
@ 2021-06-18 12:42         ` Eric S Fraga
  0 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2021-06-18 12:42 UTC (permalink / raw)
  To: Org Mode List

On Friday, 18 Jun 2021 at 14:14, Nicolas Goaziou wrote:
> Duh. Fixed. Thank you.

Confirmed!  Thank you. :-)

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-557-gceb78e
: Latest paper written in org: https://arxiv.org/abs/2106.05096


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

end of thread, other threads:[~2021-06-18 12:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 15:31 Problem inserting meeting in agenda using "pm" time indicators Eric S Fraga
2021-05-30  6:12 ` Ihor Radchenko
2021-06-17 17:30   ` Nicolas Goaziou
2021-06-18  8:38     ` Eric S Fraga
2021-06-18 12:14       ` Nicolas Goaziou
2021-06-18 12:42         ` Eric S Fraga

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