From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#31584: 27.0.50; Document again what match re-search-backward finds Date: Fri, 25 May 2018 02:22:56 +0200 Message-ID: <87in7ceg7z.fsf@web.de> References: <87in7cg2qw.fsf@web.de> <87wovsg27f.fsf@ericabrahamsen.net> <87wovsg0q3.fsf@gmail.com> <87po1kekmi.fsf@web.de> <87o9h4fw2h.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527207734 22836 195.159.176.226 (25 May 2018 00:22:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 May 2018 00:22:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eric Abrahamsen , 31584@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 25 02:22:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM0Ui-0005rB-Hh for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2018 02:22:08 +0200 Original-Received: from localhost ([::1]:41195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM0Wp-00088H-BK for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 May 2018 20:24:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM0Wd-00087L-G0 for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM0WY-0003mc-Iy for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:24:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM0WY-0003mP-Es for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fM0WY-0001jW-8u for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 May 2018 00:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31584 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31584-submit@debbugs.gnu.org id=B31584.15272077986587 (code B ref 31584); Fri, 25 May 2018 00:24:02 +0000 Original-Received: (at 31584) by debbugs.gnu.org; 25 May 2018 00:23:18 +0000 Original-Received: from localhost ([127.0.0.1]:47081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM0Vo-0001iA-8r for submit@debbugs.gnu.org; Thu, 24 May 2018 20:23:17 -0400 Original-Received: from mout.web.de ([212.227.17.11]:47067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM0Vl-0001hw-Vs for 31584@debbugs.gnu.org; Thu, 24 May 2018 20:23:14 -0400 Original-Received: from drachen.dragon ([188.110.196.170]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LtWsC-1gKbP41OMu-010uqV; Fri, 25 May 2018 02:22:58 +0200 In-Reply-To: <87o9h4fw2h.fsf@gmail.com> (Noam Postavsky's message of "Thu, 24 May 2018 19:55:18 -0400") X-Provags-ID: V03:K1:el1g9Hc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bV48esg7vZ 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:146513 Archived-At: Noam Postavsky writes: > Actually, the manual has a pretty good explanation, maybe we can just > link to it: > -See `re-search-forward' for details. */) > +Note that searching backwards may give a shorter match than expected, > +because the matching still happens in the forward direction. See Info > +anchor `(elisp) re-search-backward' for details. */) > (Lisp_Object regexp, Lisp_Object bound, Lisp_Object noerror, Lisp_Object count) > { > return search_command (regexp, bound, noerror, count, -1, 1, 0); Too bad that the anchor is located after the relevant description. FWIW; I still prefer the original sentence, I find it describes the behavior best, and short (which is good for a docstring). It is also good to have an alternative and more verbose explanation in the manual. Michael.