From: Martyn Jago <martyn.jago@btinternet.com>
To: emacs-orgmode@gnu.org
Subject: [babel][patch] org-test-with-temp-text-in-file works in Emacs 22
Date: Wed, 04 Jan 2012 13:48:26 +0000 [thread overview]
Message-ID: <m2wr97shn9.fsf@btinternet.com> (raw)
[-- 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
next reply other threads:[~2012-01-04 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 13:48 Martyn Jago [this message]
2012-01-04 16:30 ` [babel][patch] org-test-with-temp-text-in-file works in Emacs 22 Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wr97shn9.fsf@btinternet.com \
--to=martyn.jago@btinternet.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).