emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Martyn Jago <martyn.jago@btinternet.com>
To: emacs-orgmode@gnu.org
Subject: [patch] fix 22.x compatibility test issue
Date: Sun, 11 Sep 2011 21:25:15 +0100	[thread overview]
Message-ID: <m2ehzmddxw.fsf@btinternet.com> (raw)

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


Replace left-char with backward-char for backward compatibility in
=test-org-babel/org-babel-get-inline-src-block-matches=


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Replace left-char with backward-char for backward compatibility --]
[-- Type: text/x-patch, Size: 1110 bytes --]

From 08bfac66d69ed6ce739d58710f06444b6f43fb94 Mon Sep 17 00:00:00 2001
From: Martyn Jago <martyn.jago@btinternet.com>
Date: Sun, 11 Sep 2011 21:17:40 +0100
Subject: [PATCH] Replace left-char with backward-char for backward compatibility
 * testing/lisp/test-ob.el (test-org-babel/org-babel-get-inline-src-block-matches):

---
 testing/lisp/test-ob.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index a78bf1e..3a68328 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -226,9 +226,9 @@
       (should (re-search-forward "echo" nil t)) ;; 2
       (should (org-babel-get-inline-src-block-matches))
       (should (re-search-forward "blocks" nil t)) ;; 3
-      (left-char 8) ;; 3
+      (backward-char 8) ;; 3
       (should (org-babel-get-inline-src-block-matches))
-      (right-char 1) ;;3
+      (forward-char 1) ;;3
       (should-not (org-babel-get-inline-src-block-matches))
       (should (re-search-forward ":results" nil t)) ;; 4
       (should (org-babel-get-inline-src-block-matches))
-- 
1.7.3.4


[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


Best, Martyn

             reply	other threads:[~2011-09-11 20:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-11 20:25 Martyn Jago [this message]
2011-09-11 20:45 ` [patch] fix 22.x compatibility test issue Eric Schulte

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=m2ehzmddxw.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).