emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* surprising(?) interaction between agenda grid and default-duration
@ 2021-11-19 12:53 Detlef Steuer
  2022-10-18  7:30 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Detlef Steuer @ 2021-11-19 12:53 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hi all!

I you specify a default duration of an event, say,

(setq org-agenda-default-appointment-duration 60)

and specify a time grid, say

(setq org-agenda-time-grid '((today remove-match)
                             (800 1000 1200 1400 1600 1800 2000)
                             "......" "----------------" ))

Then setting the default duration overrides the grid appearance.

I.E.

(setq org-agenda-default-appointment-duration nil)
(setq org-agenda-time-grid '((today remove-match)
                             (800 1000 1200 1400 1600 1800 2000)
                             "......" "----------------" ))

Friday     19 November 2021
               8:00...... ----------------
  EDV:         9:30-10:00 Scheduled:  TODO Stuff
  Job:        10:00-12:30 Scheduled:  PROJECT Book
              12:00...... ----------------
  unsorted:   13:00-15:00 Scheduled:  TODO other stuff
              13:39...... now - - - - - - - - - - - - - - - - - - - - - - - - -
              14:00...... ----------------
              16:00...... ----------------
              18:00...... ----------------
              20:00...... ----------------

as expected, but

(setq org-agenda-default-appointment-duration 60)
(setq org-agenda-time-grid '((today remove-match)
                             (800 1000 1200 1400 1600 1800 2000)
                             "......" "----------------" ))

Friday     19 November 2021
               8:00-9:00  ----------------
  EDV:         9:30-10:00 Scheduled:  TODO Stuff
  Job:        10:00-12:30 Scheduled:  PROJECT Book
              12:00-13:00 ----------------
  unsorted:   13:00-15:00 Scheduled:  TODO other stuff
              13:40-14:40 now - - - - - - - - - - - - - - - - - - - - - - - - -
              14:00-15:00 ----------------
              16:00-17:00 ----------------
              18:00-19:00 ----------------
              20:00-21:00 ----------------

caught me by surprise. Even the 2 hour block length setting is overridden.

If this should be considered a bug, I don't know. But maybe the manual
should mention and describe the relationship between these settings?

As the description of org-agenda-default-appointment-duration does not
mention the grid at all, I would think the logical improvement would be
to let the grid alone and use the default duration as advertised only.

org-version 9.4.4
emacs-version 27.2

All the best
Detlef


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

* Re: surprising(?) interaction between agenda grid and default-duration
  2021-11-19 12:53 surprising(?) interaction between agenda grid and default-duration Detlef Steuer
@ 2022-10-18  7:30 ` Ihor Radchenko
  2024-01-17 14:41   ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-10-18  7:30 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: Emacs Org mode mailing list

Detlef Steuer <steuer@hsu-hh.de> writes:

> I you specify a default duration of an event, say,
>
> (setq org-agenda-default-appointment-duration 60)
>
> and specify a time grid, say
>
> (setq org-agenda-time-grid '((today remove-match)
>                              (800 1000 1200 1400 1600 1800 2000)
>                              "......" "----------------" ))
>
> Then setting the default duration overrides the grid appearance.
> ...
>               13:40-14:40 now - - - - - - - - - - - - - - - - - - - - - - - - -
>               14:00-15:00 ----------------
>               16:00-17:00 ----------------
>               18:00-19:00 ----------------
>               20:00-21:00 ----------------
>
> caught me by surprise. Even the 2 hour block length setting is overridden.
>
> If this should be considered a bug, I don't know. But maybe the manual
> should mention and describe the relationship between these settings?
>
> As the description of org-agenda-default-appointment-duration does not
> mention the grid at all, I would think the logical improvement would be
> to let the grid alone and use the default duration as advertised only.

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>


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

* Re: surprising(?) interaction between agenda grid and default-duration
  2022-10-18  7:30 ` Ihor Radchenko
@ 2024-01-17 14:41   ` Ihor Radchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2024-01-17 14:41 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: Emacs Org mode mailing list

Ihor Radchenko <yantar92@posteo.net> writes:

>> As the description of org-agenda-default-appointment-duration does not
>> mention the grid at all, I would think the logical improvement would be
>> to let the grid alone and use the default duration as advertised only.
>
> Confirmed.

This took a while.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a19a72f7d

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


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

end of thread, other threads:[~2024-01-17 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-19 12:53 surprising(?) interaction between agenda grid and default-duration Detlef Steuer
2022-10-18  7:30 ` Ihor Radchenko
2024-01-17 14:41   ` Ihor Radchenko

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