From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: problem exporting region from within a read-only file Date: Tue, 04 Jan 2011 17:03:56 +0100 Message-ID: <87tyho4pw3.fsf@gnu.org> References: <87fwxd8p14.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pa9Mx-0008OY-BP for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 11:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pa9Mr-0002XN-14 for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 11:04:19 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:59257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pa9Mq-0002XA-Rk for emacs-orgmode@gnu.org; Tue, 04 Jan 2011 11:04:12 -0500 Received: by wwb17 with SMTP id 17so14973186wwb.30 for ; Tue, 04 Jan 2011 08:04:12 -0800 (PST) In-Reply-To: <87fwxd8p14.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 13 Sep 2010 19:41:11 +0100") 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: e.fraga@ucl.ac.uk Cc: org-mode mailing list Eric S Fraga 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: # > > 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