From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.bugs Subject: bug#25562: 25.1; isearch-forward-word first matches a non-word Date: Tue, 31 Jan 2017 08:57:37 +0100 Message-ID: References: <87r33njun7.fsf@inria.fr> <87mvea3feg.fsf@mail.linkov.net> <87fuk1wfri.fsf@mail.linkov.net> <87r33l7yqj.fsf@inria.fr> <877f5cf7xk.fsf@mail.linkov.net> <83o9ynx604.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113c32ea1fb98705475f49fc X-Trace: blaine.gmane.org 1485849500 27182 195.159.176.226 (31 Jan 2017 07:58:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 07:58:20 +0000 (UTC) Cc: 25562@debbugs.gnu.org, Juri Linkov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 31 08:58:11 2017 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 1cYTKN-0006ka-2w for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 08:58:11 +0100 Original-Received: from localhost ([::1]:36567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYTKS-0000VK-Ju for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 02:58:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYTKI-0000TS-Ge for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 02:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYTKE-0007MN-6q for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 02:58:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYTKE-0007Lq-3U for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 02:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYTKD-00026b-RB for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 02:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Antoine Levitt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jan 2017 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25562-submit@debbugs.gnu.org id=B25562.14858494658066 (code B ref 25562); Tue, 31 Jan 2017 07:58:01 +0000 Original-Received: (at 25562) by debbugs.gnu.org; 31 Jan 2017 07:57:45 +0000 Original-Received: from localhost ([127.0.0.1]:51668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYTJx-000262-4s for submit@debbugs.gnu.org; Tue, 31 Jan 2017 02:57:45 -0500 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:33649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYTJv-00025p-II for 25562@debbugs.gnu.org; Tue, 31 Jan 2017 02:57:43 -0500 Original-Received: by mail-oi0-f46.google.com with SMTP id w204so210110503oiw.0 for <25562@debbugs.gnu.org>; Mon, 30 Jan 2017 23:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2d2zly2xm/RkEOjapntC/SH/y0BaBoBr5fvFds4Y+Bo=; b=faZCefCRAQtx4KA5sowHZhAm/zFx79SMfD5MaQRP1xQq0/3wYYiKjbfGCAlM65B3yW H5JknC4QoF4Pow4GsBi3LkZJDMSxo+3I2GYjFIfUXNcJ+GmIO0hUP2uSSPxHrWUIii9s kR56HeoenZMh0KF13dAdgZ8AsKeOg4ayHgT6KgSJyWYlVJQb9JuykcJuRcrPOGNQxDOi P/ntNiJzIK434xQMK70Z+K/Gq5GRYsIdl7D879nOlJz+qEJ+vBSkhzRy/f9BFotDHPgM hVaBsg5hMfElvyPt6XoUnm+/615MyXKYKwBLz4XIa8AAxR6shDsuyFAa5ReuFomyCVVE ud5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2d2zly2xm/RkEOjapntC/SH/y0BaBoBr5fvFds4Y+Bo=; b=WeHF/FvDXFXB3iW6FNfuBAfgFEePfz0/ceEoXTWOqqC9xvGLB42DDwg1NN/cF/f5rR zmt5TqItRq4cG6CeG9eePuO+Q8eq5I0RlwP2psW32JVeV4e1A2CKnsV3Z4k9Rp2CKVL2 s6Hh9xm/JYsj8qt6lAE0bn4pZ5HYAKWuollAQOlE10owp5NFsp8qmmL8a85k2gGQqN0p JIlun9gfe1ODUWEhvbisH7WPo+AoKLV66c4LniomYNBexjQ2AKy6ixllZ7N0dGS4vrRE oXqydFrtrq0sLURIPZcGdTKmgvJxDME/Vb1ocyWfPBuEC5+UJvei2CgOEbrPl0pit3fU EcBQ== X-Gm-Message-State: AIkVDXIm2j9SjofEly/XK5ew6DmPbk1dAWqPxlE/DMIEwOs6sanrKRcL2iRJG0LnMUsPWOr21ezvxf3mpi0l5A== X-Received: by 10.202.171.146 with SMTP id u140mr12983889oie.191.1485849457832; Mon, 30 Jan 2017 23:57:37 -0800 (PST) Original-Received: by 10.157.12.202 with HTTP; Mon, 30 Jan 2017 23:57:37 -0800 (PST) Original-Received: by 10.157.12.202 with HTTP; Mon, 30 Jan 2017 23:57:37 -0800 (PST) In-Reply-To: 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:128822 Archived-At: --001a113c32ea1fb98705475f49fc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I agree it's an ill defined problem ; but then, so is isearching for foo\|bar. I disabled the beeping and screen flashing, so it doesn't bother me, but I get the point. In the end, it's mostly a matter of personal convenience. The patched behavior suits me better, and seems more consistent with the way regexp are handled. Best, Antoine On 31 Jan 2017 04:29, "Eli Zaretskii" wrote: > From: Juri Linkov > Date: Tue, 31 Jan 2017 01:24:07 +0200 > Cc: 25562@debbugs.gnu.org > > You can try yourself using the minimal patch below that demonstrates your idea. > > But from what I see, it's not too good, using the recipe from your top post: > > emacs -Q > M-< > M-s w > i > > After typing the letter =E2=80=9Ci=E2=80=9D, isearch fails, beeps, flashe= s the screen, > with a clear indication that something went wrong. This is more confusin= g > for a user, because now a user has to stop and think about what is wrong. I think this is a consequence of the simple fact that "word search" and "incremental search" contradict each other: as long as "the word" was not fully specified, searching for it incrementally is not a well-defined operation. --001a113c32ea1fb98705475f49fc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I agree it's an ill defined problem ; but then, = so is isearching for foo\|bar.

I disabled the beeping and screen flashing, so it doesn't bother me, b= ut I get the point.=C2=A0

In the end, it's mostly a matter of personal convenience. The patched= behavior suits me better, and seems more consistent with the way regexp ar= e handled.

Best,
Antoine=C2=A0


On 31 Jan 2017 04:29, "Eli Zaretskii" <<= a href=3D"mailto:eliz@gnu.org">eliz@gnu.org> wrote:
> From: Juri Linkov <juri@linkov.net>
> Date: Tue, 31 Jan 2017 01:24:07 +0200
> Cc: 25562@debbugs.gnu.org=
>
> You can try yourself using the minimal patch below that demonstrates y= our idea.
>
> But from what I see, it's not too good, using the recipe from your= top post:
>
> emacs -Q
> M-<
> M-s w
> i
>
> After typing the letter =E2=80=9Ci=E2=80=9D, isearch fails, beeps, fla= shes the screen,
> with a clear indication that something went wrong.=C2=A0 This is more = confusing
> for a user, because now a user has to stop and think about what is wro= ng.

I think this is a consequence of the simple fact that "word sear= ch"
and "incremental search" contradict each other: as long as "= the word"
was not fully specified, searching for it incrementally is not a
well-defined operation.

--001a113c32ea1fb98705475f49fc--