* re-export using same options
@ 2013-12-22 16:31 Daniel Clemente
2013-12-22 18:43 ` Charles Berry
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Clemente @ 2013-12-22 16:31 UTC (permalink / raw)
To: emacs-orgmode
Hi, after exporting a subtree to HTML, I do some change and want to export again. I find that I have to do a long process to get there:
C-space C-c C-u C-c C-e C-s h H C-u space
This works, but for every little change I do I have to select again which subtree and which format I want.
Can I re-export using the last settings? If there's a function for that that can be invoked with M-x, then only M-x up RET will be needed for successive reexports.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: re-export using same options
2013-12-22 16:31 re-export using same options Daniel Clemente
@ 2013-12-22 18:43 ` Charles Berry
2013-12-23 3:21 ` Daniel Clemente
0 siblings, 1 reply; 5+ messages in thread
From: Charles Berry @ 2013-12-22 18:43 UTC (permalink / raw)
To: emacs-orgmode
Daniel Clemente <n142857 <at> gmail.com> writes:
>
>
> Hi, after exporting a subtree to HTML, I do some change and want to
export again. I find that I have to do a long
> process to get there:
> C-space C-c C-u C-c C-e C-s h H C-u space
>
[snip]
>
> Can I re-export using the last settings?
[snip]
C-u C-c C-e
See the manual
(org) The export dispatcher
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: re-export using same options
2013-12-22 18:43 ` Charles Berry
@ 2013-12-23 3:21 ` Daniel Clemente
2013-12-23 16:36 ` Charles Berry
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Clemente @ 2013-12-23 3:21 UTC (permalink / raw)
To: Charles Berry; +Cc: emacs-orgmode
> >
> > Can I re-export using the last settings?
>
> C-u C-c C-e
Thanks, that makes it faster, but you need to be in the same subtree. Is there something that also remembers which subtree was exported?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: re-export using same options
2013-12-23 3:21 ` Daniel Clemente
@ 2013-12-23 16:36 ` Charles Berry
2013-12-26 6:47 ` Daniel Clemente
0 siblings, 1 reply; 5+ messages in thread
From: Charles Berry @ 2013-12-23 16:36 UTC (permalink / raw)
To: emacs-orgmode
Daniel Clemente <n142857 <at> gmail.com> writes:
>
> > >
> > > Can I re-export using the last settings?
> >
> > C-u C-c C-e
>
> Thanks, that makes it faster, but you need to be in the same subtree.
Not so.
Recent versions of org-mode use this variable to find the subtree:
org-export-dispatch-last-position is a variable defined in `ox.el'.
Its value is #<marker at 219 in *scratch*>
Documentation:
The position where the last export command was created using the dispatcher.
This marker will be used with `C-u C-c C-e' to make sure export repetition
uses the same subtree if the previous command was restricted to a subtree.
and it appears to update during edits so that same the subtree is found
in subsequent exports. This
If the current buffer hasn't changed and subtree export
was activated, the command will affect that same subtree.
seems to say that buffer edits will break C-u C-c C-e, but
that did not happen in the examples I tried.
> Is there something that also remembers which subtree was exported?
>
If you still think there is a problem, you should produce an ECM[1] to
demonstrate it.
[1] http://orgmode.org/worg/org-faq.html#ecm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: re-export using same options
2013-12-23 16:36 ` Charles Berry
@ 2013-12-26 6:47 ` Daniel Clemente
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Clemente @ 2013-12-26 6:47 UTC (permalink / raw)
To: Charles Berry; +Cc: emacs-orgmode
> > > > Can I re-export using the last settings?
> > >
> > > C-u C-c C-e
> >
> > Thanks, that makes it faster, but you need to be in the same subtree.
>
> Not so.
>
With org-mode from some days ago it was failing: only moving to a new subtree would make C-u C-c C-e export the new subtree (using the old format).
But I tried again today with latest org-mode and it doesn't happen; now the old tree is remembered correctly.
Thanks for pointing it out.
> and it appears to update during edits so that same the subtree is found
> in subsequent exports. This
>
> If the current buffer hasn't changed and subtree export
> was activated, the command will affect that same subtree.
>
> seems to say that buffer edits will break C-u C-c C-e, but
> that did not happen in the examples I tried.
This happened to me (the marker pointed to a different subtree) but only if my edits were before the marker, not after. But since most people want to edit things below the heading they export, this shouldn't be a common problem.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-26 6:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-22 16:31 re-export using same options Daniel Clemente
2013-12-22 18:43 ` Charles Berry
2013-12-23 3:21 ` Daniel Clemente
2013-12-23 16:36 ` Charles Berry
2013-12-26 6:47 ` Daniel Clemente
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).