all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG?] org-agenda not showing entries with diary sexp timestamps
@ 2021-09-10  8:00 Yuchen Pei
  2021-09-10  8:57 ` Daniel Fleischer
  2021-09-10 10:57 ` Eric S Fraga
  0 siblings, 2 replies; 7+ messages in thread
From: Yuchen Pei @ 2021-09-10  8:00 UTC (permalink / raw)
  To: emacs-orgmode mailing list

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

Hello,

Can anyone reproduce this?

Say I write the following in my agenda org file:

* Weekly meeting
  <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>

Invoking org-agenda with a (org-agenda-list) does not show the 
item, whereas scheduled diary sexp or plain timestamp works fine:

* Weekly meeting
  SCHEDULED: <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>

or

* Weekly meeting
  <2021-09-10 9:00-10:00 +1w>

emacs version:

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.27, cairo version 1.17.4) of 2021-03-27

-- 
Best,
Yuchen

PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0
           <https://ypei.me/assets/ypei-pubkey.txt>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]

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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10  8:00 [BUG?] org-agenda not showing entries with diary sexp timestamps Yuchen Pei
@ 2021-09-10  8:57 ` Daniel Fleischer
  2021-09-10 10:38   ` Yuchen Pei
  2021-09-10 10:57 ` Eric S Fraga
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Fleischer @ 2021-09-10  8:57 UTC (permalink / raw)
  To: Yuchen Pei; +Cc: emacs-orgmode mailing list

Yuchen Pei [2021-09-10 Fri 18:00] wrote:

> * Weekly meeting
>  <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>
>
> Invoking org-agenda with a (org-agenda-list) does not show the item, whereas scheduled diary sexp or plain timestamp
> works fine:
>
> * Weekly meeting
>  SCHEDULED: <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>
>

I can reproduce; adding the hour makes the event not appear unless it
has a DEADLINE or SCHEDULED. 

-- 

Daniel Fleischer


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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10  8:57 ` Daniel Fleischer
@ 2021-09-10 10:38   ` Yuchen Pei
  0 siblings, 0 replies; 7+ messages in thread
From: Yuchen Pei @ 2021-09-10 10:38 UTC (permalink / raw)
  To: Daniel Fleischer; +Cc: emacs-orgmode mailing list

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


Daniel Fleischer <danflscr@gmail.com> writes:

> Yuchen Pei [2021-09-10 Fri 18:00] wrote:
>
>> * Weekly meeting
>>  <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>
>>
>> Invoking org-agenda with a (org-agenda-list) does not show the 
>> item, whereas scheduled diary sexp or plain timestamp
>> works fine:
>>
>> * Weekly meeting
>>  SCHEDULED: <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>
>>
>
> I can reproduce; adding the hour makes the event not appear 
> unless it
> has a DEADLINE or SCHEDULED. 

Thanks for confirming.  The org-agenda code is not very readable 
for me with some very long functions, but I'll see if I can fix 
it.  By the way is breaking functions into smaller ones desirable 
for the project?

-- 
Best,
Yuchen

PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0
           <https://ypei.me/assets/ypei-pubkey.txt>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]

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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10  8:00 [BUG?] org-agenda not showing entries with diary sexp timestamps Yuchen Pei
  2021-09-10  8:57 ` Daniel Fleischer
@ 2021-09-10 10:57 ` Eric S Fraga
  2021-09-10 11:29   ` Daniel Fleischer
  2021-09-10 11:48   ` Daniel Fleischer
  1 sibling, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2021-09-10 10:57 UTC (permalink / raw)
  To: Yuchen Pei; +Cc: emacs-orgmode mailing list

On Friday, 10 Sep 2021 at 18:00, Yuchen Pei wrote:
> Say I write the following in my agenda org file:
>
> * Weekly meeting
>  <%%(diary-cyclic 7 9 10 2021) 9:00-10:00>

What works for me, for diary sexp entries, is putting the time in the
heading:

* 09:00-10:00 Weekly meeting
  <%%(diary-cyclic 7 9 10 2021)>

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


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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10 10:57 ` Eric S Fraga
@ 2021-09-10 11:29   ` Daniel Fleischer
  2021-09-10 11:48   ` Daniel Fleischer
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Fleischer @ 2021-09-10 11:29 UTC (permalink / raw)
  To: Org Mode List

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

> What works for me, for diary sexp entries, is putting the time in the
> heading:
>
> * 09:00-10:00 Weekly meeting
>   <%%(diary-cyclic 7 9 10 2021)>

Actually, that is how the manual explain their usage.

[[info:org#Timestamps]]


-- 

Daniel Fleischer


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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10 10:57 ` Eric S Fraga
  2021-09-10 11:29   ` Daniel Fleischer
@ 2021-09-10 11:48   ` Daniel Fleischer
  2021-09-10 12:47     ` Yuchen Pei
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Fleischer @ 2021-09-10 11:48 UTC (permalink / raw)
  To: Org Mode List

Eric S Fraga [2021-09-10 Fri 11:57] wrote:

> What works for me, for diary sexp entries, is putting the time in the
> heading:
>
> * 09:00-10:00 Weekly meeting
>   <%%(diary-cyclic 7 9 10 2021)>


This is exactly how the feature is described in the manual:

#+begin_example
Diary-style expression entries
     For more complex date specifications, Org mode supports using the
     special expression diary entries implemented in the Emacs Calendar
     package(2).  For example, with optional time:

          * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
            <%%(diary-float t 4 2)>
#+end_example

-- 

Daniel Fleischer


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

* Re: [BUG?] org-agenda not showing entries with diary sexp timestamps
  2021-09-10 11:48   ` Daniel Fleischer
@ 2021-09-10 12:47     ` Yuchen Pei
  0 siblings, 0 replies; 7+ messages in thread
From: Yuchen Pei @ 2021-09-10 12:47 UTC (permalink / raw)
  To: Daniel Fleischer; +Cc: emacs-orgmode

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


Daniel Fleischer <danflscr@gmail.com> writes:

> Eric S Fraga [2021-09-10 Fri 11:57] wrote:
>
>> What works for me, for diary sexp entries, is putting the time 
>> in the
>> heading:
>>
>> * 09:00-10:00 Weekly meeting
>>   <%%(diary-cyclic 7 9 10 2021)>
>
>
> This is exactly how the feature is described in the manual:
>
> #+begin_example
> Diary-style expression entries
>      For more complex date specifications, Org mode supports 
>      using the
>      special expression diary entries implemented in the Emacs 
>      Calendar
>      package(2).  For example, with optional time:
>
>           * 22:00-23:00 The nerd meeting on every 2nd Thursday 
>           of the month
>             <%%(diary-float t 4 2)>
> #+end_example

Thanks, my bad.  I guess the reason for the time to be included in 
the headline is to be consistent with the diary format.

-- 
Best,
Yuchen

PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0
           <https://ypei.me/assets/ypei-pubkey.txt>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]

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

end of thread, other threads:[~2021-09-10 12:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-10  8:00 [BUG?] org-agenda not showing entries with diary sexp timestamps Yuchen Pei
2021-09-10  8:57 ` Daniel Fleischer
2021-09-10 10:38   ` Yuchen Pei
2021-09-10 10:57 ` Eric S Fraga
2021-09-10 11:29   ` Daniel Fleischer
2021-09-10 11:48   ` Daniel Fleischer
2021-09-10 12:47     ` Yuchen Pei

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.