Attached is a patch to fix macro `org-test-with-temp-text-in-file' on
Emacs 22. 

In Emacs 22 the (kill-buffer) argument is NOT optional. This change
reflects this and allows the macro `org-test-with-temp-text-in-file'
to work in Emacs 22 for org compatibility. This fixes the test
`test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export' on Emacs 22.

This fixes the remaining unexpected test failure on Emacs 22.1.1

Best, Martyn

>From 5622523ccc9995ff6a0c804c4de8c414ca5e6181 Mon Sep 17 00:00:00 2001
From: Martyn Jago <martyn.j...@btinternet.com>
Date: Wed, 4 Jan 2012 13:37:07 +0000
Subject: [PATCH] Modify macro `org-test-with-temp-text-in-file' to work on emacs 22.
 * testing/org-test.el:

In Emacs 22 the `kill-buffer' argument is NOT optional. This change
reflects this and allows the macro `org-test-with-temp-text-in-file'
to work in Emacs 22 for org compatibility. This fixes the test
`test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export'
---
 testing/org-test.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testing/org-test.el b/testing/org-test.el
index de8f3a5..a9e3706 100644
--- a/testing/org-test.el
+++ b/testing/org-test.el
@@ -211,7 +211,7 @@ otherwise place the point at the beginning of the inserted text."
        (find-file ,file)
        (org-mode)
        (setq ,results ,@body)
-       (save-buffer) (kill-buffer)
+       (save-buffer) (kill-buffer (current-buffer))
        (delete-file ,file)
        ,results)))
 (def-edebug-spec org-test-with-temp-text-in-file (form body))
-- 
1.7.3.4

Reply via email to