From 9cce826bfe17e51c4c4e6a881c5ba601086393cd Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sun, 19 Aug 2018 14:01:59 -0500 Subject: [PATCH] Fix: Sorting By using s-join instead of org-agenda-finalize-entries, which does its own sorting. We don't need anything it does, at least not now, and if we ever do, we'll probably want to reimplement it, anyway. HOWEVER, this breaks org-super-agenda, which uses advice to that function to group items. So we need to either figure out another approach (which I have been unable to do so far, trying cl-letf, cl-flet, and advice-add with unwind-protect), or make this depend on org-super-agenda. --- org-agenda-ng.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-agenda-ng.el b/org-agenda-ng.el index d96d6f1..2b906fe 100644 --- a/org-agenda-ng.el +++ b/org-agenda-ng.el @@ -110,7 +110,7 @@ When nil, buffers are widened before being searched." pred :sort sort :action-fn #'org-agenda-ng--add-markers))) - (result-string (org-agenda-finalize-entries entries 'agenda)) + (result-string (s-join "\n" entries)) (target-buffer (get-buffer-create "test-agenda-ng"))) (with-current-buffer target-buffer (read-only-mode -1)