From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: exporting subtree moves point Date: Wed, 14 Sep 2011 09:47:22 +0100 Message-ID: <87pqj3a4th.fsf@ucl.ac.uk> References: <87vcsw4y1w.fsf@pinto.chemeng.ucl.ac.uk> <08243669-B08E-474E-BF37-3DF414A6BB54@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3l7x-0002ia-Ny for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:47:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3l7w-0002cL-JO for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:47:29 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:64871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3l7w-0002br-F3 for emacs-orgmode@gnu.org; Wed, 14 Sep 2011 04:47:28 -0400 In-Reply-To: <08243669-B08E-474E-BF37-3DF414A6BB54@gmail.com> (Carsten Dominik's message of "Wed, 14 Sep 2011 08:55:18 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik 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)