Another bug, probably unrelated, is that if the outline buffer is
nonexistent and you RET on an agenda line, you get wrong type argument
integer of marker p, nil.
goto-char(nil)
(let* ((marker ...) (buffer ...) (pos ...)) (switch-to-buffer
buffer) (and delete-other-windows (delete-other-windows)) (widen)
(goto-char pos) (when (org-mode-p) (org-show-context ...)
(save-excursion ...)))
org-agenda-switch-to()
call-interactively(org-agenda-switch-to)
Perhaps it could be fixed by loading the file? Or is the agenda
buffer useless when the buffer is not there?