From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24801: 25.1; Reverse regexp search highlighting Date: Wed, 26 Oct 2016 19:36:10 -0400 Message-ID: <87zilqr8d1.fsf@users.sourceforge.net> References: <4efa49bf-c223-4148-a291-12a722db033c@default> <8737jispf7.fsf@users.sourceforge.net> <5537d36d-a365-4a3f-97a3-78c32e86e7ea@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1477525004 21258 195.159.176.226 (26 Oct 2016 23:36:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2016 23:36:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24801@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 01:36:40 2016 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 1bzXjv-0001Sk-64 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Oct 2016 01:36:11 +0200 Original-Received: from localhost ([::1]:38065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzXjw-00028V-Or for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Oct 2016 19:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzXjp-00028N-JD for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 19:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzXjm-0007xV-FN for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 19:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzXjm-0007xH-BV for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 19:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bzXjm-00058I-1K for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2016 19:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Oct 2016 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24801-submit@debbugs.gnu.org id=B24801.147752493919693 (code B ref 24801); Wed, 26 Oct 2016 23:36:01 +0000 Original-Received: (at 24801) by debbugs.gnu.org; 26 Oct 2016 23:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:58061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzXjP-00057Z-Ba for submit@debbugs.gnu.org; Wed, 26 Oct 2016 19:35:39 -0400 Original-Received: from mail-oi0-f49.google.com ([209.85.218.49]:34573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzXjN-00057L-B4 for 24801@debbugs.gnu.org; Wed, 26 Oct 2016 19:35:37 -0400 Original-Received: by mail-oi0-f49.google.com with SMTP id a195so19117977oib.1 for <24801@debbugs.gnu.org>; Wed, 26 Oct 2016 16:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oUEEeZoLKAtQvOHrwSNt0X/qxFAEg8Ykj9lqknbkx5I=; b=eJa6vF73Ngc2MVjaSw1AXUrjW208In7k8Ew6NFeWjM0ibXn9bhHSfWqv1/BYSITGWA SXN2Hesi32Z4Bd6FMpzf9Y4XBXgRRMZRLk/QddOUhg5QI7aoheO9YEcLkPaW3PE/E0Fs 5T3olVoDtKvdOwz7mRQsV0MNk8aYbB/8SfPFLR1cYgOar98B6WCfUfMrLKEvrDjorAbD wquyKXEHxCbccip5VBPIQgs5id0WlCn6S8vdCvIy8ZoBpBcrBY210J60khgRm/2VJzCW Kkbg0gBdHb91Ou9g5z26X6d/ujNXzb8Axc8stmsIs8TcGdOXO1mSIQ5/+r3i95G3aXX/ IQ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=oUEEeZoLKAtQvOHrwSNt0X/qxFAEg8Ykj9lqknbkx5I=; b=EYZ2Qlyzl1cyWvUDFi3TieeG4tbRZUDXJNATmbdcB6KHpQNtmD4Bkh7ehl81Jw/HN0 nOAez6qwoGubMARY1Idawrl7acAWvRMjutw/m6txNMjTq6ghwbz/ad6cuKl22dbGxTOy QiKNIeOFUbJo9n6EQSyxB+xhN5D9oVcUV4oemu6sGS42J6pD/teKyklhPFTUkmHB4kY3 fBeaVGcthi6AiimWap//WNNizv63aiolTg/9zhxw7Har83z0dGBNzyAbf7unMHDOTq1A PW2jlizddV2Fk+qeTgLSwxL+LrCA6Qxoqhtp6MTqPCqB9gdOpBrMyvARu/aya/tsHiFg ei0Q== X-Gm-Message-State: ABUngvclxekuGGJ5knyGHhWn52wx0xJPRqXRCGadyuQcKPU8SrE/LzXOl3OVGcxYoJF/3A== X-Received: by 10.107.175.218 with SMTP id p87mr5271072ioo.80.1477524931296; Wed, 26 Oct 2016 16:35:31 -0700 (PDT) Original-Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id v197sm31122ita.0.2016.10.26.16.35.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Oct 2016 16:35:30 -0700 (PDT) In-Reply-To: <5537d36d-a365-4a3f-97a3-78c32e86e7ea@default> (Drew Adams's message of "Wed, 26 Oct 2016 16:23:26 -0700 (PDT)") 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:125056 Archived-At: Drew Adams writes: >> `(elisp) Regexp Search', under `re-search-backward' says:... > [...] > If > `re-search-backward' were a perfect mirror image, it would find the > match whose end is as close as possible. However, in fact it > finds the match whose beginning is as close as possible. [...] > > I don't think that description is germain to this bug report, except > insofar as what it describes is _not_ the behavior reported. > Isn't it? The match of aa.* "whose beginning is as close as possible" when point is at the of a line of a's, is "aa". So it seems expected that searching backwards would match pairs of a's. > This really looks like a bug to me. But regexp search is so basic > to Emacs, and this has been like this since Emacs 23, so I can only > guess that the change in behavior must have been intentional. But > if so, why? What's the advantage/point of such behavior? Can you describe exactly how the behaviour is different in Emacs 22? > > In Emacs 23.4, `C-h n', then `C-s search', shows that there were a > zillion changes in Isearch behavior. But this one is not mentioned > at all. > > I have to guess (so far) that this is a bug that was introduced when > implementing one or more of those zillion documented changes. But > if so, why has no one reported it before? Actually, this report looks similar to 9681, although I see no claims there that it worked in version 22.