* How to create non-inheritable properties?
@ 2014-06-08 1:15 Grant Rettke
2014-06-08 21:24 ` Thorsten Jolitz
0 siblings, 1 reply; 5+ messages in thread
From: Grant Rettke @ 2014-06-08 1:15 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi,
My org file has a lot of text in it. It really needs to be in the same
file though, so it is a big file.
When I org-babel-tangle, I would like to speed it up as it takes 8 minutes.
One thought; if I mark the headings that should neither export nor
tangle, at all, with this:
:PROPERTIES:
:exports: none
:tangle: no
:END:
Then would it be possible to make those non-overridable so that when
tangling is occurring that those huge
chunks of text would simply be ignored and possible speed up the tangle?
Kind regards,
Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to create non-inheritable properties?
2014-06-08 1:15 How to create non-inheritable properties? Grant Rettke
@ 2014-06-08 21:24 ` Thorsten Jolitz
2014-06-08 21:45 ` Charles Berry
2014-06-09 0:08 ` Grant Rettke
0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-06-08 21:24 UTC (permalink / raw)
To: emacs-orgmode
Grant Rettke <gcr@wisdomandwonder.com> writes:
> Hi,
>
> My org file has a lot of text in it. It really needs to be in the same
> file though, so it is a big file.
>
> When I org-babel-tangle, I would like to speed it up as it takes 8 minutes.
8 minutes? wow ...
when I convert my former big init.el with 7272 lines to org-mode with
,-----------------------
| M-x outorg-edit-as-org
`-----------------------
like this
,------------------------------------------
| (benchmark-run (outorg-edit-as-org '(4)))
`------------------------------------------
the result is
,-----------------------------------
| (3.551239904 8 0.7361492030000001)
`-----------------------------------
i.e. 4 seconds.
Converting it back to emacs-lisp-mode with
,---------------------------------------------
| (benchmark-run (outorg-copy-edits-and-exit))
`---------------------------------------------
takes
,------------------------------------
| (0.107002176 1 0.09775636400000032)
`------------------------------------
i.e. 0.1 sec.
I don't know *how* big your file is, but instead of waiting 8 min for
tangling you could as well install outshine.el and outorg.el and then
use
,-----------------------------------
| M-: outorg-convert-org-to-outshine
`-----------------------------------
to convert your org-file to an (org-style) structured emacs-lisp
file. Then you don't need any tangling anymore since you are in
emacs-lisp-mode anyway, and whenever you want to edit (comment-)text you
use outorg to temporarily convert the subtree or the whole buffer to
org-mode for editing.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to create non-inheritable properties?
2014-06-08 21:24 ` Thorsten Jolitz
@ 2014-06-08 21:45 ` Charles Berry
2014-06-09 0:12 ` Grant Rettke
2014-06-09 0:08 ` Grant Rettke
1 sibling, 1 reply; 5+ messages in thread
From: Charles Berry @ 2014-06-08 21:45 UTC (permalink / raw)
To: emacs-orgmode
Thorsten Jolitz <tjolitz <at> gmail.com> writes:
>
> Grant Rettke <gcr <at> wisdomandwonder.com> writes:
>
> > Hi,
> >
> > My org file has a lot of text in it. It really needs to be in the same
> > file though, so it is a big file.
> >
> > When I org-babel-tangle, I would like to speed it up as it takes 8 minutes.
>
> 8 minutes? wow ...
>
Just guessing at this, but ...
I suspect Grant's file has noweb chunks and that
`org-babel-use-quick-and-dirty-noweb-expansion' is set to nil.
If the :noweb-ref feature is not used, setting that variable to t will
make a time difference of a couple of orders of magnitude.
HTH,
Chuck
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to create non-inheritable properties?
2014-06-08 21:24 ` Thorsten Jolitz
2014-06-08 21:45 ` Charles Berry
@ 2014-06-09 0:08 ` Grant Rettke
1 sibling, 0 replies; 5+ messages in thread
From: Grant Rettke @ 2014-06-09 0:08 UTC (permalink / raw)
To: Thorsten Jolitz; +Cc: emacs-orgmode@gnu.org
On Sun, Jun 8, 2014 at 4:24 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
> I don't know *how* big your file is, but instead of waiting 8 min for
> tangling you could as well install outshine.el and outorg.el and then
> use
>
> ,-----------------------------------
> | M-: outorg-convert-org-to-outshine
> `-----------------------------------
Interesting, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to create non-inheritable properties?
2014-06-08 21:45 ` Charles Berry
@ 2014-06-09 0:12 ` Grant Rettke
0 siblings, 0 replies; 5+ messages in thread
From: Grant Rettke @ 2014-06-09 0:12 UTC (permalink / raw)
To: Charles Berry; +Cc: emacs-orgmode@gnu.org
On Sun, Jun 8, 2014 at 4:45 PM, Charles Berry <ccberry@ucsd.edu> wrote:
> Just guessing at this, but ...
>
> I suspect Grant's file has noweb chunks and that
> `org-babel-use-quick-and-dirty-noweb-expansion' is set to nil.
Exactly. Have been using it quite extensively.
> If the :noweb-ref feature is not used, setting that variable to t will
> make a time difference of a couple of orders of magnitude.
Good to be reminded.
I've relied quite heavily upon the noweb-ref property inheritance.
Glad to know at least that this is expected.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-09 0:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-08 1:15 How to create non-inheritable properties? Grant Rettke
2014-06-08 21:24 ` Thorsten Jolitz
2014-06-08 21:45 ` Charles Berry
2014-06-09 0:12 ` Grant Rettke
2014-06-09 0:08 ` Grant Rettke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).