emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Mario Bourgoin <m.bourgoin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: recursive load org-duration Error
Date: Mon, 04 Jan 2021 05:38:52 GMT	[thread overview]
Message-ID: <87k0stb6s6.fsf@kyleam.com> (raw)
In-Reply-To: <CAM0Tqh+u+L+UgZizJrH+a+W7Lo1stPJgTsRABxD3HobOnOCrNA@mail.gmail.com>

Mario Bourgoin writes:

> I recently started to use org mode efforts encoded as durations. I began
> getting the error "recursive load org-duration" after I customized
> "org-duration-units" by using "m" for the minutes units and "mon" for the
> months units, restarted Emacs, and asked for the agenda with "C-c a a".
>
> I found that a workaround to this problem is to put "(require
> 'org-duration)" in my .emacs before the customizations are loaded:
[...]

Thanks for the detailed report.  I can trigger the issue with

  (custom-set-variables
   '(org-duration-units
     '(("min" . 1)
       ("h" . 60)
       ("d" . 1440)
       ("w" . 10080)
       ("m" . 43200)
       ("y" . 525960.0))))

  ;; This...
  (require 'org-duration)
  ;; or anything else the triggers a load of org-duration, e.g.
  ;; (org-duration-to-minutes "3m")

> Would you please let me know when this bug is fixed? I would also
> appreciate finding out how the bug was fixed.

It's fixed on the maint branch.  See
https://code.orgmode.org/bzg/org-mode/commit/273391c978d2e9759a9a389bf5d5eb9b03b8fe98


      reply	other threads:[~2021-01-04  5:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-21 16:06 Mario Bourgoin
2021-01-04  5:38 ` Kyle Meyer [this message]

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=87k0stb6s6.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=m.bourgoin@gmail.com \
    --subject='Re: recursive load org-duration Error' \
    /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

Code repositories for project(s) associated with this 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).