I believe there's a bug in org-super-agenda--when-with-marker-buffer that results in the wrong parent headers (among other issues) when there's a restriction on the org buffer associated with the agenda. The reason is that the buffer is not widen'ed before calling goto-char. To resolve this, consider this patch.
diff --git a/org-super-agenda.el b/org-super-agenda.el
index 9e665cd..fad3436 100644
--- a/org-super-agenda.el
+++ b/org-super-agenda.el
@@ -237,7 +237,7 @@ considerable, depending on the number of items."
`(let ((,marker ,form))
(when (markerp ,marker)
(with-current-buffer (marker-buffer ,marker)
- (save-excursion
+ (org-with-wide-buffer
(goto-char ,marker)
,@body))))))
I believe there's a bug in
org-super-agenda--when-with-marker-buffer
that results in the wrong parent headers (among other issues) when there's a restriction on the org buffer associated with the agenda. The reason is that the buffer is notwiden
'ed before callinggoto-char
. To resolve this, consider this patch.