summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-03-16 17:59:52 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-03-16 17:59:52 (GMT)
commit7e806c155c5870b30335d9b6f49ab52a998a29ff (patch)
treea3d322d6a7c08b24608dfd819aa2cf0a28b6d899
parent00948a6834d0ca4b48b3884465c67a09a6120818 (diff)
downloadorg-mode-7e806c155c5870b30335d9b6f49ab52a998a29ff.zip
org-mode-7e806c155c5870b30335d9b6f49ab52a998a29ff.tar.gz
org-agenda.el (org-agenda-Quit): Set `org-agenda-buffer' to nil
* org-agenda.el (org-agenda-Quit): Set `org-agenda-buffer' to nil. This prevents bugs when calling e.g., `org-diary' after quitting an agenda window.
-rw-r--r--lisp/org-agenda.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e530475..2a09405 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7111,6 +7111,7 @@ Also restore the window configuration."
(kill-buffer buf)
(org-columns-remove-overlays)
(setq org-agenda-archives-mode nil)))
+ (setq org-agenda-buffer nil)
;; Maybe restore the pre-agenda window configuration.
(and org-agenda-restore-windows-after-quit
(not (eq org-agenda-window-setup 'other-frame))