From 60ef46625131391c6a49fccd26861f933a984515 Mon Sep 17 00:00:00 2001 From: Litvinov Sergey Date: Mon, 23 Jan 2012 14:22:53 +0100 Subject: [PATCH 1/2] Add a test "narrowed" agenda file --- testing/examples/org-agenda-test.org | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 testing/examples/org-agenda-test.org diff --git a/testing/examples/org-agenda-test.org b/testing/examples/org-agenda-test.org new file mode 100644 index 0000000..ecd00e5 --- /dev/null +++ b/testing/examples/org-agenda-test.org @@ -0,0 +1,10 @@ +#+Title: a collection of examples for org-agenda tests +* TODO should be visible +ob-agenda-test.org buffer should be narrowed after execution of this block +#+BEGIN_SRC elisp :results silent + (let ((org-agenda-files (list buffer-file-name))) + (narrow-to-region 1 (- (buffer-size) 23)) + (org-agenda nil "t") + (org-agenda-redo)) +#+END_SRC +* TODO should be hidden -- 1.7.3.4