From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#31584: 27.0.50; Document again what match re-search-backward finds Date: Thu, 24 May 2018 17:36:46 -0700 Message-ID: <87fu2gfu5d.fsf@ericabrahamsen.net> References: <87in7cg2qw.fsf@web.de> <87wovsg27f.fsf@ericabrahamsen.net> <87wovsg0q3.fsf@gmail.com> <87po1kekmi.fsf@web.de> <87o9h4fw2h.fsf@gmail.com> <87in7ceg7z.fsf@web.de> <87lgc8fueq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527208695 21191 195.159.176.226 (25 May 2018 00:38:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 May 2018 00:38:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 31584@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 25 02:38:11 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 1fM0kE-0005Q8-KC for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 May 2018 02:38:10 +0200 Original-Received: from localhost ([::1]:41247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM0mL-0002qX-LZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 May 2018 20:40:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM0m9-0002qE-5X for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM0m2-0005Re-RM for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:40:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM0m2-0005RW-Na for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fM0m2-00045R-Ds for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:40:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87in7cg2qw.fsf@web.de> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 May 2018 00:40: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152720880015698 (code B ref -1); Fri, 25 May 2018 00:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2018 00:40:00 +0000 Original-Received: from localhost ([127.0.0.1]:47134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM0m0-000458-H0 for submit@debbugs.gnu.org; Thu, 24 May 2018 20:40:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM0lz-00044v-CD for submit@debbugs.gnu.org; Thu, 24 May 2018 20:39:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM0lt-0005PS-7m for submit@debbugs.gnu.org; Thu, 24 May 2018 20:39:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fM0lt-0005PM-49 for submit@debbugs.gnu.org; Thu, 24 May 2018 20:39:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM0ls-0002q0-2Y for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:39:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM0lo-0005N7-4p for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:39:52 -0400 Original-Received: from [195.159.176.226] (port=50159 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM0ln-0005Mp-TM for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 20:39:48 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fM0jb-0004on-8d for bug-gnu-emacs@gnu.org; Fri, 25 May 2018 02:37:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ZKyT4PmGBFoEKyQXpzKUiI94BBA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:146517 Archived-At: Noam Postavsky writes: > Michael Heerdegen writes: > >>> +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. */) > >> Too bad that the anchor is located after the relevant description. > > I don't understand what you mean. > >> 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. > > I find the original sentence kind of cryptic, but I'm okay to be > outvoted on this. I think Drew's statement that "the pattern is always matched in a forward direction, even when it matches text that is before point" makes a lot of sense. That's just a 2ยข, though, that's all I've got for this issue.