emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] Emacs 22 support


From: Carsten Dominik
Subject: Re: [Orgmode] [PATCH] Emacs 22 support
Date: Thu, 3 Jun 2010 10:32:22 +0200

Hi Bernt,

can you pease rewrite the patch one more time, using the new org- string-match-p function?

Thanks.

- Carsten

On Jun 2, 2010, at 1:47 PM, Bernt Hansen wrote:

* 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


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten






reply via email to

[Prev in Thread] Current Thread [Next in Thread]