emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] problem exporting region from within a read-only file


From: Bastien
Subject: Re: [Orgmode] problem exporting region from within a read-only file
Date: Tue, 04 Jan 2011 17:03:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eric S Fraga <address@hidden> writes:

> If I have a read-only file, I can export the whole file (say to HTML)
> and it works.  If, however, I select a region and try to export that,
> org fails with the error message:
>
> : org-export-get-title-from-subtree: Buffer is read-only: #<buffer test.org>
>
> This appears to be because of this function adding text properties (a
> specific one which I don't understand completely) to the text:
>
> : (org-unmodified
> :  (add-text-properties (point) (1+ (point-at-eol))
> :                   (list :org-license-to-kill t)))
>
> (in org-exp.el).  It would be nice if export would work with read-only
> files but I have no idea where to start in trying to fix this.

I've just pushed a fix for this -- please tell me if it's okay.

Thanks!

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]