[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Tue, 10 Jul 2007 03:50:54 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 07/07/10 03:50:54
Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.557
retrieving revision 1.558
diff -u -b -r1.557 -r1.558
--- subr.el 8 Jul 2007 19:35:50 -0000 1.557
+++ subr.el 10 Jul 2007 03:50:54 -0000 1.558
@@ -2668,6 +2668,18 @@
(looking-at (concat "\\(?:" regexp "\\)\\'")))))
(not (null pos))))
+(defsubst looking-at-p (regexp)
+ "\
+Same as `looking-at' except this function does not change the match data."
+ (let ((inhibit-changing-match-data t))
+ (looking-at regexp)))
+
+(defsubst string-match-p (regexp string &optional start)
+ "\
+Same as `string-match' except this function does not change the match data."
+ (let ((inhibit-changing-match-data t))
+ (string-match regexp string start)))
+
(defun subregexp-context-p (regexp pos &optional start)
"Return non-nil if POS is in a normal subregexp context in REGEXP.
A subregexp context is one where a sub-regexp can appear.
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Stefan Monnier, 2007/07/08
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Richard M. Stallman <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Stefan Monnier, 2007/07/10
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Juanma Barranquero, 2007/07/14
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Michael Albinus, 2007/07/24
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Miles Bader, 2007/07/26