From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: LaTeX export: Keep point position in TeX file Date: Tue, 24 Jan 2012 08:50:23 +0000 Message-ID: <87obttscvk.fsf@ucl.ac.uk> References: <4f0ed0da.82600e0a.21d0.29ec@mx.google.com> <87hb01qczx.fsf@ucl.ac.uk> <4f1dd95d.d0770e0a.24a7.41e4@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpdBu-0006Ko-JR for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 05:01:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpdBo-0001Fb-Qu for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 05:01:26 -0500 Received: from vscani-e.ucl.ac.uk ([144.82.108.33]:51439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpdBo-0001Ez-Ms for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 05:01:20 -0500 In-Reply-To: <4f1dd95d.d0770e0a.24a7.41e4@mx.google.com> (Michael Bach's message of "Mon, 23 Jan 2012 23:09:00 +0100") 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: Michael Bach Cc: emacs-orgmode@gnu.org Michael Bach writes: > Eric S Fraga writes: > >> If so, I suggest you could achieve what you want by using the >> org-export-* hooks to, for instance, save current position before export >> and then jump to that position after export? Maybe >> org-export-first-hook and org-export-latex-final-hook could be used? >> > > Thanks for your thoughts on this and sorry for being late to reply. I No problem! > stumbled upon your reply and have tried it today with this: [...] > The switching to latex file works, but `(goto-char temppoint)' does not > - for a reason I do not understand. The only benefit of this is that I do not understand either. Putting in some (message ...) lines, it is trying to (goto-char ...) to the right place in the buffer but that goto doesn't seem to have any effect. Have you looked at the code in org that actually invokes that hook to see if maybe position is being changed afterwards? -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 : using Org-mode version 7.8.03 (release_7.8.03.206.g10b06)