[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/doc/lispref/searching.texi,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/doc/lispref/searching.texi,v |
Date: |
Mon, 03 Nov 2008 19:19:42 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/11/03 19:19:42
Index: searching.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/searching.texi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- searching.texi 21 Oct 2008 19:55:07 -0000 1.8
+++ searching.texi 3 Nov 2008 19:19:41 -0000 1.9
@@ -1094,7 +1094,7 @@
@end example
@end defun
address@hidden looking-back regexp &optional limit
address@hidden looking-back regexp &optional limit greedy
This function returns @code{t} if @var{regexp} matches text before
point, ending at point, and @code{nil} otherwise.
@@ -1105,6 +1105,12 @@
not to search before @var{limit}. In this case, the match that is
found must begin at or after @var{limit}.
+If @var{greedy} is address@hidden, this function extends the match
+backwards as far as possible, stopping when a single additional
+previous character cannot be part of a match for regexp. When the
+match is extended, its starting positiong is allowed to occur before
address@hidden
+
@example
@group
---------- Buffer: foo ----------
@@ -1408,7 +1414,7 @@
(re-search-forward "The \\(cat \\)")
(match-beginning 0)
(match-beginning 1))
- @result{} (9 9 13)
+ @result{} (17 9 13)
@end group
@group
- [Emacs-diffs] Changes to emacs/doc/lispref/searching.texi,v,
Chong Yidong <=