emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ivan Vanyushkin <vanav@vanav.com.ua>
To: emacs-orgmode@gnu.org
Subject: [Bug] Error when clicking in calendar
Date: Wed, 25 May 2011 22:08:00 +0300	[thread overview]
Message-ID: <irjk2h$adp$1@dough.gmane.org> (raw)

Hello.
There is bug in calendar, that causes error and CUA stops working.

1. Open any .org file.
2. Call calendar (insert date): Ctrl-c .
3. Left-click on any date.

Result:
1. Date is inserted
2. Error is shown in "Messages" buffer:
"Error in post-command-hook: (buffer-read-only *Calendar*)"
3. As effect of error, Ctrl-C stops working correctly: it expects one 
more key even if text is selected.
If I disable CUA mode and enable again, it fixes.

Environments with error:
- Emacs 23.3 and build in org-mode 6.33
- Emacs 23.3 and org-mode 7.5.
- Emacs 23.3 and org-mode from git master branch.

I think, error is related to "(add-hook 'post-command-hook 
'org-read-date-display)" in org.el somehow, but my knowledge is not 
enough to fix it.

Please, help me to fix "Error in post-command-hook: (buffer-read-only 
*Calendar*)".
Thank you.

--
Ivan.

                 reply	other threads:[~2011-05-25 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='irjk2h$adp$1@dough.gmane.org' \
    --to=vanav@vanav.com.ua \
    --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).