|
@@ -2816,7 +2816,11 @@ the global options and expect it to be applied to the entire view.")
|
|
|
(switch-to-buffer-other-frame abuf))
|
|
|
((equal org-agenda-window-setup 'reorganize-frame)
|
|
|
(delete-other-windows)
|
|
|
- (org-switch-to-buffer-other-window abuf))))
|
|
|
+ (org-switch-to-buffer-other-window abuf)))
|
|
|
+ ;; additional test in case agenda is invoked from within agenda
|
|
|
+ ;; buffer via elisp link
|
|
|
+ (unless (equal (current-buffer) abuf)
|
|
|
+ (switch-to-buffer abuf)))
|
|
|
(setq buffer-read-only nil)
|
|
|
(let ((inhibit-read-only t)) (erase-buffer))
|
|
|
(org-agenda-mode)
|