emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Victor A. Stoichita" <victor@svictor.net>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: viewing appointments while scheduling event
Date: Fri, 04 Jun 2021 11:26:23 +0200	[thread overview]
Message-ID: <87o8cm6kw0.fsf@svictor.net> (raw)

When scheduling an event with C-c C-s (org-schedule) a calendar pops up.
While navigating that calendar to choose a date, is it possible to view
the events already scheduled in the agenda for that date?

I found this answer to a similar question: https://emacs.stackexchange.com/questions/30512/show-tasks-during-orgmode-scheduling

It says that pressing "!" should pop to the diary file. I don’t use
the diary file, all my appointments are in org-mode files.

The answer mentions adding the following line to the diary file:
%%(org-diary :timestamp :sexp)

In my init file I have set:
(setq diary-file "~/calendriers/diary")
(setq calendar-mark-diary-entries-flag t)

And in ~/calendriers/diary I have just the following line:
%%(org-diary :timestamp :sexp)

This does work. When trying to schedule an event the calendar is not
opened any more, I just get a message "End of buffer". I suppose that
it’s not the correct way to write the diary file, but I’m unfamiliar
with the diary syntax and could find no documentation for the particular
feature which %%(org-diary :timestamp :sexp) might provide.

Does anyone have a working setup for this?

Regards,
Victor


             reply	other threads:[~2021-06-04  9:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04  9:26 Victor A. Stoichita [this message]
2021-06-04 16:25 ` viewing appointments while scheduling event Victor A. Stoichita

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87o8cm6kw0.fsf@svictor.net \
    --to=victor@svictor.net \
    --cc=emacs-orgmode@gnu.org \
    /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 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).