* problem exporting region from within a read-only file
@ 2010-09-13 18:41 Eric S Fraga
2011-01-04 16:03 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Eric S Fraga @ 2010-09-13 18:41 UTC (permalink / raw
To: org-mode mailing list
[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 75 bytes --]
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem exporting region from within a read-only file
2010-09-13 18:41 problem exporting region from within a read-only file Eric S Fraga
@ 2011-01-04 16:03 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2011-01-04 16:03 UTC (permalink / raw
To: e.fraga; +Cc: org-mode mailing list
Eric S Fraga <ericsfraga@gmail.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-04 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-13 18:41 problem exporting region from within a read-only file Eric S Fraga
2011-01-04 16:03 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.