From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Emacs 22 support Date: Wed, 2 Jun 2010 07:47:44 -0400 Message-ID: <1275479264-19089-1-git-send-email-bernt@norang.ca> References: <87mxvem905.fsf@gollum.intra.norang.ca> Return-path: Received: from [140.186.70.92] (port=40819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJmQM-0006oE-Rr for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 07:47:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJmQL-0004pC-Cu for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 07:47:54 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:58616) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJmQL-0004p2-BL for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 07:47:53 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1OJmQK-000Grt-Ee for emacs-orgmode@gnu.org; Wed, 02 Jun 2010 11:47:52 +0000 In-Reply-To: <87mxvem905.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Bernt Hansen * contrib/lisp/org-special-blocks.el (org-special-blocks-make-special-cookies): Emacs 22 doesn't have string-match-p --- Updated patch available at git://git.norang.ca/org-mode.git emacs22 contrib/lisp/org-special-blocks.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/contrib/lisp/org-special-blocks.el b/contrib/lisp/org-special-blocks.el index af50b30..a381920 100644 --- a/contrib/lisp/org-special-blocks.el +++ b/contrib/lisp/org-special-blocks.el @@ -51,7 +51,8 @@ seen. This is run after a few special cases are taken care of." (when (or htmlp latexp) (goto-char (point-min)) (while (re-search-forward "^#\\+\\(begin\\|end\\)_\\(.*\\)$" nil t) - (unless (string-match-p org-special-blocks-ignore-regexp (match-string 2)) + (unless (save-match-data + (string-match org-special-blocks-ignore-regexp (match-string 2))) (replace-match (if (equal (downcase (match-string 1)) "begin") (concat "ORG-" (match-string 2) "-START") -- 1.7.1.240.g225c