From 55909726488b75abae92adb9b6f38d278eca71fa Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Mon, 27 Aug 2012 21:24:23 +0200 Subject: [PATCH] org-agenda.el: Fit agenda window when displaying a sticky agenda * org-agenda.el (org-prepare-agenda): Fit agenda window when displaying a sticky agenda. --- lisp/org-agenda.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 88e1b928e..dc619e46e 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3366,6 +3366,7 @@ generating a new one." ;; Popup existing buffer (org-prepare-agenda-window (get-buffer org-agenda-buffer-name)) (message "Sticky Agenda buffer, use `r' to refresh") + (or org-agenda-multi (org-fit-agenda-window)) (throw 'exit nil)) (setq org-todo-keywords-for-agenda nil) (setq org-drawers-for-agenda nil)