From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: problem exporting region from within a read-only file Date: Mon, 13 Sep 2010 19:41:11 +0100 Message-ID: <87fwxd8p14.wl%ucecesf@ucl.ac.uk> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Mon_Sep_13_19:41:10_2010-1" Return-path: Received: from [140.186.70.92] (port=39270 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvEll-0007Nq-OY for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 15:32:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvElk-0000H6-K6 for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 15:32:49 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61142) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvElk-0000Gp-Ey for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 15:32:48 -0400 Received: by wyb36 with SMTP id 36so7729527wyb.0 for ; Mon, 13 Sep 2010 12:32:47 -0700 (PDT) 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: org-mode mailing list --Multipart_Mon_Sep_13_19:41:10_2010-1 Content-Type: text/plain; charset=US-ASCII Hello, For standalone org files that are not part of any larger project, I often use RCS as my revision control system. RCS will make a file read-only when you /check in/ changes, waiting for the user to /check out/ the file explicitly for further changes. I like the way this works. Org, however, doesn't! ;-) 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. Obviously, this bug (feature?) is *not* a show-stopper! Thanks, eric --Multipart_Mon_Sep_13_19:41:10_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Mon_Sep_13_19:41:10_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Mon_Sep_13_19:41:10_2010-1--