Stephen Eglen <s.j.eg...@damtp.cam.ac.uk> 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.

Could this be done more generally?  I think I've run into this for other
export targets as well, although it may be my memory that is faulty
here.  I use RCS for version control for standalone files and often have
files read-only from which I want to export.

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
: using Org-mode version 7.8.03 (release_7.8.03.106.gc835)

Reply via email to