* [PATCH] org-compat: defalias string-match-p rather than defun
@ 2010-10-29 8:28 Julien Danjou
2010-11-04 11:31 ` [Accepted] " Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Julien Danjou @ 2010-10-29 8:28 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Julien Danjou
Signed-off-by: Julien Danjou <julien@danjou.info>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Accepted] org-compat: defalias string-match-p rather than defun
2010-10-29 8:28 [PATCH] org-compat: defalias string-match-p rather than defun Julien Danjou
@ 2010-11-04 11:31 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-11-04 11:31 UTC (permalink / raw)
To: emacs-orgmode
Patch 350 (http://patchwork.newartisans.com/patch/350/) is now "Accepted".
Maintainer comment: I added looking-at-p
This relates to the following submission:
http://mid.gmane.org/%3C1288340911-6825-1-git-send-email-julien%40danjou.info%3E
Here is the original message containing the patch:
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-compat: defalias string-match-p rather than defun
> Date: Fri, 29 Oct 2010 13:28:31 -0000
> From: Julien Danjou <julien@danjou.info>
> X-Patchwork-Id: 350
> Message-Id: <1288340911-6825-1-git-send-email-julien@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou <julien@danjou.info>
>
> Signed-off-by: Julien Danjou <julien@danjou.info>
>
> ---
> 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)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-04 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-29 8:28 [PATCH] org-compat: defalias string-match-p rather than defun Julien Danjou
2010-11-04 11:31 ` [Accepted] " Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.