emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel][patch] org-test-with-temp-text-in-file works in Emacs 22
@ 2012-01-04 13:48 Martyn Jago
  2012-01-04 16:30 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Martyn Jago @ 2012-01-04 13:48 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 441 bytes --]


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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: modify-macro-org-test-with-temp-text-in-file-for-emacs22 --]
[-- Type: text/x-patch, Size: 1127 bytes --]

From 5622523ccc9995ff6a0c804c4de8c414ca5e6181 Mon Sep 17 00:00:00 2001
From: Martyn Jago <martyn.jago@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-04 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 13:48 [babel][patch] org-test-with-temp-text-in-file works in Emacs 22 Martyn Jago
2012-01-04 16:30 ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).