diff -ud /home/sewi/emacs_cvs/emacs/doc/lispref/searching.texi /home/sewi/emacs_cvs/emacs/doc/lispref/searching_cor.texi --- /home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching.texi 2008-11-02 19:39:21.000000000 +0100 +++ /home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching_cor.texi 2008-11-02 19:54:10.000000000 +0100 @@ -1094,7 +1094,7 @@ @end example @end defun -@defun looking-back regexp &optional limit +@defun 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,10 @@ not to search before @var{limit}. In this case, the match that is found must begin at or after @var{limit}. +If greedy is non-nil, extend the match backwards as far as possible, +stopping when a single additional previous character cannot be part +of a match for regexp. + @example @group ---------- Buffer: foo ---------- @@ -1408,7 +1412,7 @@ (re-search-forward "The \\(cat \\)") (match-beginning 0) (match-beginning 1)) - @result{} (9 9 13) + @result{} (17 9 13) @end group @group Diff finished. Sun Nov 2 19:54:17 2008