Quellcode durchsuchen

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 vor 13 Jahren
Ursprung
Commit
059bb972d1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      testing/org-test.el

+ 1 - 1
testing/org-test.el

@@ -212,7 +212,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))