org-agenda: Fix handling of indirect buffer and window
commit89949e69a3860fcb687c0f4ca0ccfd29283a5b74
authorDavid Maus <dmaus@ictsoc.de>
Sat, 25 Feb 2012 10:11:48 +0000 (25 11:11 +0100)
committerDavid Maus <dmaus@ictsoc.de>
Sat, 25 Feb 2012 10:13:33 +0000 (25 11:13 +0100)
treeb2bd33ae30f34f4dff5cfe090733e2c987cac54f
parentf7ea4bef4339116caa15fc67fdf4718ffbab3cd5
org-agenda: Fix handling of indirect buffer and window

* org-agenda.el (org-agenda-tree-to-indirect-buffer): Fix handling of
indirect buffer and window.

Check if the window of last indirect buffer is still live and properly
handle the case of `org-last-indirect-buffer' being nil.

Changes suggested by Dave Abrahams in <m2boow1q9e.fsf@boostpro.com>.
lisp/org-agenda.el