Re: org-diary

2021-11-05 Thread Eric S Fraga
On Friday,  5 Nov 2021 at 12:56, Colin Baxter  wrote:
> Indeed, that was the purpose. I am the op and I apologise if my attempt
> to highlight my post caused confusion. Perhaps I stick to

Many do this as well (including myself ;-)) although I alternate with
other means of offsetting the code just for the variety... :-)

-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096



Re: org-diary

2021-11-05 Thread Colin Baxter 
> Eric S Fraga  writes:

> On Thursday,  4 Nov 2021 at 18:21, Michael Maurer wrote:
>> Oh. I assumed
>> 
>> #+begin_src elisp &%%(org-diary :deadline* :timestamp
>> :scheduled*) #+end_src
>> 
>> is an org-babel code block.

> Yes but I think that was just for the purposes of highlighting the
> sexp in the email/post.

Indeed, that was the purpose. I am the op and I apologise if my attempt
to highlight my post caused confusion. Perhaps I stick to

--8<---cut here---start->8---

M-x message-mark-inserted-region

--8<---cut here---end--->8---


for highlighting.

Best wishes.



Re: org-diary

2021-11-05 Thread Eric S Fraga
On Thursday,  4 Nov 2021 at 18:21, Michael Maurer wrote:
> Oh. I assumed
>
> #+begin_src elisp
> &%%(org-diary :deadline* :timestamp :scheduled*)
> #+end_src
>
> is an org-babel code block. 

Yes but I think that was just for the purposes of highlighting the sexp
in the email/post.

-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096



Re: org-diary

2021-11-04 Thread Michael Maurer
On Thu, 4 Nov 2021 at 17:05, Eric S Fraga  wrote:
>
> On Thursday,  4 Nov 2021 at 16:56, Michael Maurer wrote:
> > I'm curious about this use of a diary-file in combination with
> > org-babel. I'm guessing it outputs only specific items from the
> > diary-file based on some variables? I tried to google this, but
> > couldn't find anything (or maybe I'm speculating wrong).
>
> There may be some fundamental misunderstanding here.  What does
> orb-babel have to do with org mode and the Emacs diary integration?
>
> The Emacs diary & calendar (core Emacs features) allow for elisp sexps
> in the diary file and org-diary is an elisp function that returns
> information in the form that the diary understands.  There is a section
> in the Emacs info manual on the Calendar and the Diary (section 31).
>
> Conversely, the org agenda can make use of Emacs diary expressions as
> well!  But that's another story.
>

Oh. I assumed

#+begin_src elisp
&%%(org-diary :deadline* :timestamp :scheduled*)
#+end_src

is an org-babel code block. But I'll check out that manual section as
well as org-diary.



Re: org-diary

2021-11-04 Thread Eric S Fraga
On Thursday,  4 Nov 2021 at 16:56, Michael Maurer wrote:
> I'm curious about this use of a diary-file in combination with
> org-babel. I'm guessing it outputs only specific items from the
> diary-file based on some variables? I tried to google this, but
> couldn't find anything (or maybe I'm speculating wrong).

There may be some fundamental misunderstanding here.  What does
orb-babel have to do with org mode and the Emacs diary integration?

The Emacs diary & calendar (core Emacs features) allow for elisp sexps
in the diary file and org-diary is an elisp function that returns
information in the form that the diary understands.  There is a section
in the Emacs info manual on the Calendar and the Diary (section 31).

Conversely, the org agenda can make use of Emacs diary expressions as
well!  But that's another story.

-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096



Re: org-diary

2021-11-04 Thread Michael Maurer
On Wed, 3 Nov 2021 at 12:06, Eric S Fraga  wrote:
>
> Glad I could be of assistance! 
> --
> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
> : Latest paper written in org: https://arxiv.org/abs/2106.05096

I'm curious about this use of a diary-file in combination with
org-babel. I'm guessing it outputs only specific items from the
diary-file based on some variables? I tried to google this, but
couldn't find anything (or maybe I'm speculating wrong).



Re: org-diary

2021-11-03 Thread Eric S Fraga
Glad I could be of assistance!  
-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096



Re: org-diary

2021-11-03 Thread Colin Baxter 
> Eric S Fraga  writes:

> On Wednesday,  3 Nov 2021 at 06:43, Colin Baxter  wrote:
>> I have this
>> 
>> #+begin_src elisp &%%(org-diary :deadline* :timestamp
>> :scheduled*) #+end_src

> I cannot help you directly but I do note that my equivalent entry
> in my Emacs diary file is subtly different:

> %%(org-diary :scheduled :timestamp) ~/s/notes/diary.org

> No &, no *s, and a file name at the end.  Having said this, I must
> admit that I cannot find any documentation on the format of this
> line in the info manual.  Maybe it's hiding...

Thanks Eric. You have reminded me about the file name. I don't have a
file name at the end because I want all my 5 agenda files searched.
However, by entering each file in turn I can now identify the particular
agenda file that's causing the warning. I don't see anything immediately
wrong with it, but it contains multiple schedules with + and - days. I
suspect the problems lies somewhere there.

Thanks again - a great post that jogged my memory.

Best wishes, Colin.



Re: org-diary

2021-11-03 Thread Eric S Fraga
On Wednesday,  3 Nov 2021 at 06:43, Colin Baxter  wrote:
> I have this
>
> #+begin_src elisp
> &%%(org-diary :deadline* :timestamp :scheduled*)
> #+end_src

I cannot help you directly but I do note that my equivalent entry in my
Emacs diary file is subtly different:

%%(org-diary :scheduled :timestamp) ~/s/notes/diary.org

No &, no *s, and a file name at the end.  Having said this, I must admit
that I cannot find any documentation on the format of this line in the
info manual.  Maybe it's hiding...

-- 
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096