emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: Jude DaShiell <jdashiel@shellworld.net>, emacs-orgmode@gnu.org
Subject: Re: calendar date adjustments blocked
Date: Sat, 5 Nov 2011 07:26:57 +0100	[thread overview]
Message-ID: <0376B403-8F85-412C-84BD-285C7619E3BC@gmail.com> (raw)
In-Reply-To: <6690.1320458628@alphaville.dokosmarshall.org>


On 5.11.2011, at 03:03, Nick Dokos wrote:

> Jude DaShiell <jdashiel@shellworld.net> wrote:
> 
>> I needed to enter information for two dates in org-mode and went into 
>> calendar using c-c+! and got the current date as expected then hit c-b to 
>> move the date to yesterday and pointer remained on today's date.  So I 
>> ended up hitting <cr> on today's date and editing it in the actual org 
>> file and filling the rest of my entry in after it.  Then I repeated the 
>> operation for today and entered today's information.  I was a bit 
>> surprised that the date was locked like that once calendar mode was 
>> entered but managed a workaround anyway.
>> 
> 
> I guess your problem is that the calendar is indeed popped up, but the cursor
> is still in the daytime prompt in the minibuffer. As Bernt points out, typing
> -2 at that point gets you to the right date.
> 
> The calendar seems to be for inveterate mouser users, not keyboard
> types: even if I C-x o to the calendar window, the cursor ends up not on
> today's date but off to the right somewhere and I get an error message:
> 
> ,----
> | Error in post-command-hook (org-read-date-display): (buffer-read-only *Calendar*)
> `----
> 
> Not sure what's going on there: I expected that after I switched windows
> to the Calendar, my cursor would be on today's date.

The popup calender in Org is a special construct that hijacks key presses
so that all control can be done from the minibuffer, without switching to the
calender buffer itself.  This has side effects if you try to move
into the calendar buffer window anyway.

Bernt showed one way to specify the date.  You can also click on the date
to get it selected immediately.  Or you can use S-left twice to get the date
selected with the shadow cursor in the calendar window.  There are more
key presses that manipulate the calendar window from the minibuffer, see

http://orgmode.org/manual/Creating-timestamps.html#Creating-timestamps

HTH

- Carsten

  reply	other threads:[~2011-11-05  6:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04  6:12 calendar date adjustments blocked Jude DaShiell
2011-11-05  0:11 ` Bernt Hansen
2011-11-05  2:03 ` Nick Dokos
2011-11-05  6:26   ` Carsten Dominik [this message]
2011-11-05 10:30     ` Jude DaShiell
2011-11-05 11:11       ` Carsten Dominik
2011-11-05 15:29     ` Nick Dokos
2011-11-05 17:23       ` Jude DaShiell
2011-11-05 17:56         ` Carsten Dominik

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=0376B403-8F85-412C-84BD-285C7619E3BC@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jdashiel@shellworld.net \
    --cc=nicholas.dokos@hp.com \
    /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).