emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Follow link scrolls current buffer when table aligns
Date: Sat, 16 Feb 2013 14:13:53 +0100	[thread overview]
Message-ID: <87vc9smmem.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CALn3zogy9iXs8E+X7VnZaxErjEbbYEsqSRM5ojmQPo4Ko8HfuA@mail.gmail.com> (Michael Brand's message of "Thu, 17 Jan 2013 19:40:15 +0100")

Hi Michael,

Michael Brand <michael.ch.brand@gmail.com> writes:

> Minimal test to reproduce:
> 1) put the attached n.org and t.org into one directory
> 2) emacs -q
> 3) C-x 3
> 4) open n.org
> 5) M->, C-p, C-c C-o
> The last step changes the scroll state of n.org but the return value
> of window-start is expected be the same before and after.
>
> How can org-table-align be changed that set-window-start affects only
> the visited target buffer but not the original buffer which called
> find-file-noselect to follow its link?

I finally fixed this with this commit:

  http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=adcc0d

Here is the git commit log:

  When opening an .org file from another .org file, org-mode is
  initialized in the second one while the window is not yet selected.
  So, functions run during org-mode's initialization need to check if
  the org-mode window is the selected one before manipulating the
  "current window".

Thanks for reporting this!

-- 
 Bastien

  reply	other threads:[~2013-02-16 13:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17 18:40 Follow link scrolls current buffer when table aligns Michael Brand
2013-02-16 13:13 ` Bastien [this message]
2013-02-16 14:19   ` Michael Brand

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=87vc9smmem.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /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).