emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Problem inserting meeting in agenda using "pm" time indicators
Date: Mon, 24 May 2021 16:31:16 +0100	[thread overview]
Message-ID: <87lf84408r.fsf@ucl.ac.uk> (raw)

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


             reply	other threads:[~2021-05-24 15:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 15:31 Eric S Fraga [this message]
2021-05-30  6:12 ` Problem inserting meeting in agenda using "pm" time indicators 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf84408r.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).