org-table.el (org-table-align): Only set the window start when table alignment is...
commitadcc0d414bbb65aeb9ddd00059e0419699c6351d
authorBastien Guerry <bzg@altern.org>
Sat, 16 Feb 2013 13:08:47 +0000 (16 14:08 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 16 Feb 2013 13:08:47 +0000 (16 14:08 +0100)
treee243ae460ce34994c154a42e1dad7bffc65d7b14
parent09ffff9ceee9c1974ce9e2f5aef838df4cca0270
org-table.el (org-table-align): Only set the window start when table alignment is performed in the selected window

* org-table.el (org-table-align): Only set the window start
when table alignment is performed in the selected window.

Thanks to Michael Brand for reporting this.

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".
lisp/org-table.el