Hi Michael,
Michael Brand 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