From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] org-columns for read only buffer (was Re: Bug: exporting ical files from read-only buffers [7.8.03 (release_7.8.03.112.g8861)]) Date: Fri, 13 Jan 2012 13:36:44 +0000 Message-ID: <87d3and8r7.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlhJO-00078I-NU for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 08:37:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlhJK-0002lh-7j for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 08:36:54 -0500 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:58862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlhJK-0002lP-3c for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 08:36:50 -0500 In-Reply-To: (Stephen Eglen's message of "Thu, 12 Jan 2012 13:08:12 +0000") 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: Stephen Eglen Cc: emacs-orgmode@gnu.org Stephen Eglen writes: > I've found a small bug with exporting ical files from read-only org > buffers. Create a simple buffer, e.g.: > > * test1 > <2012-01-12 Thu> > > and then hit C-x C-q to make the buffer read-only. Then do C-c C-e i > to export an ical file. You get an error that the buffer is read-only. > > I think this is due to the call to org-refresh-category-properties, > which can't update text proprties. > > My workaround is to do: > (setq inhibit-read-only nil) > > so that text properties can be added to read-only buffers. This could > be done locally within the ical export functions if others thought > sensible, for which I can send a patch if desired. > > Stephen I have just run into another case where text properties and/or overlays clash with a read-only file: column view (M-x org-columns, C-c C-x C-c). In a read-only file, I get the error org-columns-compute-all: Buffer is read-only: # If I make the file writable, org-columns works but, of course, does not actually modify the file. Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1 : using Org-mode version 7.8.03 (release_7.8.03.122.g5b407)