* exporting subtree moves point
@ 2011-09-13 9:00 Eric S Fraga
2011-09-14 6:55 ` Carsten Dominik
0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2011-09-13 9:00 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I often export just a sub-tree ("C-c C-e 1 p" say). At the end of the
export, my point has moved to the enclosing headline and mark is at the
end of the contents of that sub-tree. This is a little annoying in that
I am often making small changes to see the effect on the final exported
document, especially when playing around with tikz. Therefore, I find
myself having to move back manually to where I was before the export.
Is there an easy way to get back to where I was beyond setting a
bookmark or register location manually? Or is there a way to have org
put me back to where I was (save-excursion of some sort maybe)?
If I remember to set a mark myself, I can get back to there by C-x
C-SPC. Maybe I should just advise the export command?
Suggestions welcome!
Thanks,
eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.280.gdbf0)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exporting subtree moves point
2011-09-13 9:00 exporting subtree moves point Eric S Fraga
@ 2011-09-14 6:55 ` Carsten Dominik
2011-09-14 8:47 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2011-09-14 6:55 UTC (permalink / raw)
To: Eric S Fraga; +Cc: emacs-orgmode
On 13.9.2011, at 11:00, Eric S Fraga wrote:
> Hello,
>
> I often export just a sub-tree ("C-c C-e 1 p" say). At the end of the
> export, my point has moved to the enclosing headline and mark is at the
> end of the contents of that sub-tree. This is a little annoying in that
> I am often making small changes to see the effect on the final exported
> document, especially when playing around with tikz. Therefore, I find
> myself having to move back manually to where I was before the export.
>
> Is there an easy way to get back to where I was beyond setting a
> bookmark or register location manually? Or is there a way to have org
> put me back to where I was (save-excursion of some sort maybe)?
Hi Eric,
I have just pushed a fix for this issue. The code to do this was already
there, but it did not work for the subtree restriction.
- Carsten
>
> If I remember to set a mark myself, I can get back to there by C-x
> C-SPC. Maybe I should just advise the export command?
>
> Suggestions welcome!
>
> Thanks,
> eric
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
> : using Org-mode version 7.7 (release_7.7.280.gdbf0)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: exporting subtree moves point
2011-09-14 6:55 ` Carsten Dominik
@ 2011-09-14 8:47 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2011-09-14 8:47 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> On 13.9.2011, at 11:00, Eric S Fraga wrote:
>
>> Hello,
>>
>> I often export just a sub-tree ("C-c C-e 1 p" say). At the end of the
>> export, my point has moved to the enclosing headline and mark is at the
>> end of the contents of that sub-tree. This is a little annoying in that
>> I am often making small changes to see the effect on the final exported
>> document, especially when playing around with tikz. Therefore, I find
>> myself having to move back manually to where I was before the export.
>>
>> Is there an easy way to get back to where I was beyond setting a
>> bookmark or register location manually? Or is there a way to have org
>> put me back to where I was (save-excursion of some sort maybe)?
>
>
> Hi Eric,
>
> I have just pushed a fix for this issue. The code to do this was already
> there, but it did not work for the subtree restriction.
>
> - Carsten
Works like a charm! Many thanks.
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.284.g11de)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-14 8:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 9:00 exporting subtree moves point Eric S Fraga
2011-09-14 6:55 ` Carsten Dominik
2011-09-14 8:47 ` Eric S Fraga
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).