[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH] org-compat: defalias string-match-p rather than defun
From: |
Julien Danjou |
Subject: |
[Orgmode] [PATCH] org-compat: defalias string-match-p rather than defun |
Date: |
Fri, 29 Oct 2010 10:28:31 +0200 |
Signed-off-by: Julien Danjou <address@hidden>
---
lisp/org-compat.el | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index d55a83e..47a6599 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -372,11 +372,11 @@ TIME defaults to the current time."
(time-to-seconds (or time (current-time)))
(float-time time)))
-(defun org-string-match-p (&rest args)
- (if (fboundp 'string-match-p)
- (apply 'string-match-p args)
+(if (fboundp 'string-match-p)
+ (defalias 'org-string-match-p 'string-match-p)
+ (defun org-string-match-p (regexp string &optional start)
(save-match-data
- (apply 'string-match args))))
+ (funcall 'string-match regexp string start))))
(defun org-looking-at-p (&rest args)
(if (fboundp 'looking-at-p)
--
1.7.2.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] [PATCH] org-compat: defalias string-match-p rather than defun,
Julien Danjou <=