all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: hrdl <git@hrdl.eu>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] org-agenda: incorrect display of multi-day date ranges [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]
Date: Wed, 29 May 2024 16:59:11 +0000	[thread overview]
Message-ID: <87o78o7dwg.fsf@localhost> (raw)
In-Reply-To: <ZldNYYtvvQp0dILB@t490.localdomain>

hrdl <git@hrdl.eu> writes:

> Parts of org-agenda do not handle time ranges spanning multiple days
> correctly. This is exarcabated when setting
> org-agenda-default-appointment-duration , which adds an incorrect end
> time to the entries corresponding to the start and end date. To
> reproduce:
>
> (prog
>   (find-file "test.org")
>   (insert "* Entry\n<2024-05-30 Thu 14:00>--<2024-05-31 Fri 16:00>")
>   (save-buffer)
>   (setq org-agenda-default-appointment-duration 30) ;; optional
>   (org-agenda-file-to-front)
>   (org-agenda-list)
>   ;; Or, for ease of debugging
>   (with-current-buffer "test.org"
>     (setq date '(5 30 2024)) ;; Or 31
>     (org-agenda-get-blocks))
>   )

Confirmed.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2024-05-29 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29 15:44 [BUG] org-agenda: incorrect display of multi-day date ranges [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)] hrdl
2024-05-29 16:59 ` Ihor Radchenko [this message]
2024-06-09 12:26   ` Ihor Radchenko

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

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

  git send-email \
    --in-reply-to=87o78o7dwg.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=git@hrdl.eu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.