浏览代码

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'
Martyn Jago 13 年之前
父节点
当前提交
49de19ba02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      testing/org-test.el

+ 1 - 1
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))