From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23937: 25.0.95; Search functions doc fixes/improvements Date: Tue, 12 Jul 2016 16:10:28 +0300 Message-ID: <83mvlnatob.fsf@gnu.org> References: <87d1ml8ic1.fsf@gmx.net> <83lh18cib0.fsf@gnu.org> <871t2z262g.fsf@gmx.net> <834m7vcusi.fsf@gnu.org> <87bn239h5n.fsf@rub.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468329149 18074 80.91.229.3 (12 Jul 2016 13:12:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 13:12:29 +0000 (UTC) Cc: 23937@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 15:12:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bMxTy-0000Ch-73 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 15:12:14 +0200 Original-Received: from localhost ([::1]:40443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxTx-0006r5-Ge for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 09:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxTr-0006qx-FP for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMxTm-0000nN-Bq for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxTm-0000nJ-89 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bMxTm-0002sg-51 for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 09:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2016 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23937-submit@debbugs.gnu.org id=B23937.146832906511009 (code B ref 23937); Tue, 12 Jul 2016 13:12:02 +0000 Original-Received: (at 23937) by debbugs.gnu.org; 12 Jul 2016 13:11:05 +0000 Original-Received: from localhost ([127.0.0.1]:47741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxSn-0002r8-AF for submit@debbugs.gnu.org; Tue, 12 Jul 2016 09:11:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMxSh-0002qj-1T for 23937@debbugs.gnu.org; Tue, 12 Jul 2016 09:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMxSY-0000bO-7V for 23937@debbugs.gnu.org; Tue, 12 Jul 2016 09:10:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMxSY-0000bC-3q; Tue, 12 Jul 2016 09:10:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2140 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bMxSW-0004hF-AN; Tue, 12 Jul 2016 09:10:44 -0400 In-reply-to: <87bn239h5n.fsf@rub.de> (message from Stephen Berman on Tue, 12 Jul 2016 14:26:12 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120902 Archived-At: > From: Stephen Berman > Cc: 23937@debbugs.gnu.org > Date: Tue, 12 Jul 2016 14:26:12 +0200 > > Set point to the beginning of the occurrence found, and return point. > An optional second argument bounds the search; it is a buffer position. > The match found must start at or after that position. A value of nil > means search to the beginning of the accessible portion of the buffer. > Optional third argument, if t, means if fail just return nil (no error). > If not nil and not t, move to limit of search and return nil. > Optional fourth argument COUNT, if a positive number, means to search > for COUNT successive occurrences. If COUNT is negative, search > forward, instead of backward, for -COUNT occurrences. A value of > nil means the same as 1. > The match found is the COUNTth to last one (or last, if COUNT is 1 or > nil) in the buffer located entirely before the origin of the search. LGTM, thanks. > If you are ok with this, should I add these two lines to all > *search-backward and (suitably adapted) *search-forward functions? (The > two lines are currently only in {re,posix}-search-backward.) It's better for all those doc strings to be consistent, yes.