summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Jago <martyn.jago@btinternet.com>2012-01-04 13:37:07 +0000
committerBastien Guerry <bzg@altern.org>2012-01-04 17:30:13 +0100
commit49de19ba0236071185d11b63f120c0955cd305c5 (patch)
treed364ba85b41f790e9c96ef126c1b6bf158080b60
parent71089b7e3b00736f854d6e95a52229853262e12a (diff)
downloadorg-mode-49de19ba0236071185d11b63f120c0955cd305c5.tar.gz
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'
-rw-r--r--testing/org-test.el2
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))