From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: org-clock-in fails sometimes with prefix arg Date: Wed, 19 Nov 2008 11:25:08 -0500 Message-ID: <87ljvfznrv.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2prg-0006qc-UG for emacs-orgmode@gnu.org; Wed, 19 Nov 2008 11:25:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2prf-0006qF-Nd for emacs-orgmode@gnu.org; Wed, 19 Nov 2008 11:25:16 -0500 Received: from [199.232.76.173] (port=53309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2prf-0006q8-IJ for emacs-orgmode@gnu.org; Wed, 19 Nov 2008 11:25:15 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:51853) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2prf-0004cP-9O for emacs-orgmode@gnu.org; Wed, 19 Nov 2008 11:25:15 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1L2prb-0004gg-U2 for emacs-orgmode@gnu.org; Wed, 19 Nov 2008 16:25:12 +0000 Received: from gollum.intra.norang.ca (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.13.8/8.13.8/Debian-3) with ESMTP id mAJGP8Ee029688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 19 Nov 2008 11:25:09 -0500 Received: from gollum.intra.norang.ca (localhost [127.0.0.1]) by gollum.intra.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id mAJGP8fd010711 for ; Wed, 19 Nov 2008 11:25:08 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Carsten, I've run into this a few times today. I don't have any useful insight into how this occurs yet but I thought I'd mention it anyway. My current org-clock-history looks like this: ,----[ C-h v org-clock-history RET] | org-clock-history is a variable defined in `org-clock.el'. | Its value is | (# # # # # # # # # #) | | | | Documentation: | List of marker pointing to recent clocked tasks. `---- Somehow I am getting markers to read-only buffers in there eg. (#) and this breaks C-u M-x org-clock-in which triggers the following error in org-clock-select-task ,---- | save-restriction: Buffer is read-only: # `---- I'm not sure how I got these markers in the list org-clock-select-task fails when it hits the read-only buffer. This org buffer happens to be a directory (in dired I believe) of my ~/git/org directory. As a workaround for now I'm just manually clearing the variable with (setq org-clock-history nil) to remove the markers and make this work again. Regards, Bernt