From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vanyushkin Subject: [Bug] Error when clicking in calendar Date: Wed, 25 May 2011 22:08:00 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPJRJ-0006Cc-8D for emacs-orgmode@gnu.org; Wed, 25 May 2011 15:08:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPJRI-0001Yj-9s for emacs-orgmode@gnu.org; Wed, 25 May 2011 15:08:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:41210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPJRI-0001YK-56 for emacs-orgmode@gnu.org; Wed, 25 May 2011 15:08:16 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPJRG-0003kc-GP for emacs-orgmode@gnu.org; Wed, 25 May 2011 21:08:14 +0200 Received: from 178.122.123.188 ([178.122.123.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 21:08:14 +0200 Received: from vanav by 178.122.123.188 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2011 21:08:14 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.