all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Seweryn Kokot <sewkokot@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#1299: lispref - searching.texi: Updating of looking-back arguments and return values in the example
Date: Sun, 02 Nov 2008 20:06:29 +0100	[thread overview]
Message-ID: <87iqr6hrre.fsf@poczta.po.opole.pl> (raw)

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

See the diff attached. Note that I copied the explanation for greedy
argument of `looking-back' function. Because I'm not a native speaker
so probably this paragraph requires some rephrasing. 


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: searching.diff --]
[-- Type: text/x-diff, Size: 1193 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 28 bytes --]


-- 
regards,
Seweryn Kokot

             reply	other threads:[~2008-11-02 19:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-02 19:06 Seweryn Kokot [this message]
2008-11-03  7:41 ` bug#1299: lispref - searching.texi: Updating of looking-back arguments and return values in the example martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqr6hrre.fsf@poczta.po.opole.pl \
    --to=sewkokot@gmail.com \
    --cc=1299@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.