emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Michael Bach <phaebz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX export: Keep point position in TeX file
Date: Tue, 24 Jan 2012 08:50:23 +0000	[thread overview]
Message-ID: <87obttscvk.fsf@ucl.ac.uk> (raw)
In-Reply-To: <4f1dd95d.d0770e0a.24a7.41e4@mx.google.com> (Michael Bach's message of "Mon, 23 Jan 2012 23:09:00 +0100")

Michael Bach <phaebz@gmail.com> writes:

> Eric S Fraga <e.fraga@ucl.ac.uk> 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)

      reply	other threads:[~2012-01-24 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12 12:28 LaTeX export: Keep point position in TeX file Michael Bach
2012-01-12 13:14 ` Eric S Fraga
2012-01-23 22:09   ` Michael Bach
2012-01-24  8:50     ` Eric S Fraga [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obttscvk.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=phaebz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).