Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Yuchen Pei


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


signature.asc
Description: PGP signature


Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Daniel Fleischer
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



Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Daniel Fleischer
Eric S Fraga  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



Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Eric S Fraga
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



Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Yuchen Pei


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


signature.asc
Description: PGP signature


Re: [BUG?] org-agenda not showing entries with diary sexp timestamps

2021-09-10 Thread Daniel Fleischer
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