emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Eric S Fraga
Subject: [Orgmode] problem exporting region from within a read-only file
Date: Mon, 13 Sep 2010 19:41:11 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj┼Ź) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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: #<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.

Obviously, this bug (feature?) is *not* a show-stopper!

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

reply via email to

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