From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martyn Jago Subject: [babel][patch] org-test-with-temp-text-in-file works in Emacs 22 Date: Wed, 04 Jan 2012 13:48:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRCv-0002TY-VZ for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 08:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiRCu-0005kM-Oe for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 08:48:45 -0500 Received: from lo.gmane.org ([80.91.229.12]:48830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRCu-0005kA-6m for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 08:48:44 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RiRCq-0002Y1-7p for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 14:48:40 +0100 Received: from 88-96-171-138.dsl.zen.co.uk ([88.96.171.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 14:48:40 +0100 Received: from martyn.jago by 88-96-171-138.dsl.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 14:48:40 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Modify-macro-org-test-with-temp-text-in-file-to-work.patch Content-Description: modify-macro-org-test-with-temp-text-in-file-for-emacs22 >From 5622523ccc9995ff6a0c804c4de8c414ca5e6181 Mon Sep 17 00:00:00 2001 From: Martyn Jago 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 --=-=-=--