org-agenda-exit: Check column view
commit722a574d88bc6f2bc9a9abf9a2d80f5be679c2b2
authorKyle Meyer <kyle@kyleam.com>
Fri, 2 Jan 2015 22:38:24 +0000 (2 17:38 -0500)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 3 Jan 2015 11:15:54 +0000 (3 12:15 +0100)
tree6053d85d9485f7eaad6da919507e5cc9bb66ffaf
parent424eb552635ee0480ca7039b08f271bfd7c63dad
org-agenda-exit: Check column view

* lisp/org-agenda.el (org-agenda-exit): Exit column view before trying to
  exit agenda.

Running org-agenda-exit in column view deleted all buffers loaded by the
agenda, but it didn't actually exit the agenda because, if the agenda is
in column view, org-agenda-Quit turns off column view instead of killing
the agenda.  So org-agenda-exit should either just quit column view if
it is active (and not delete the loaded buffers or quit the agenda) or
make sure that the agenda is not in column view before killing it.
Since org-agenda-Quit and org-agenda-quit already do the former, make
org-agenda-exit completely exit the agenda regardless of whether it is
in column view.
lisp/org-agenda.el