From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: [WIP PATCH] Controlling Isearch from the minibuffer Date: Wed, 12 May 2021 08:45:22 +0200 Message-ID: <87fsyswiv1.fsf@gmail.com> References: <87zgx5cz33.fsf@gmail.com> <878s4n4wn8.fsf@gmail.com> <87y2clve4m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13621"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: Alan Mackenzie , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 12 08:48:44 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgifk-0003S1-GP for ged-emacs-devel@m.gmane-mx.org; Wed, 12 May 2021 08:48:44 +0200 Original-Received: from localhost ([::1]:39634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgifj-0000zT-JA for ged-emacs-devel@m.gmane-mx.org; Wed, 12 May 2021 02:48:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgica-0007QV-5E for emacs-devel@gnu.org; Wed, 12 May 2021 02:45:28 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:34641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgicY-00070z-EL for emacs-devel@gnu.org; Wed, 12 May 2021 02:45:27 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id l7so25760154edb.1 for ; Tue, 11 May 2021 23:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=VD4cB7pstfywmqiy8MnAxwJp/N50+EL57MI2Ry/D2t4=; b=DDPhbMj+VhBMTBId2niUoEKDxMOCDpRDbFj5qOU3hOV+Edl4DD9fb8agKULHbVAaCM d0jVMCFZRKuH8TcJwq5HxISdkMyr/nglZpIfs+EnJ3iygGIELNo33xavwn3OVH+lUXTw VY1z1xjnUPIa9oGf9xhMsZqfXnbKlYu1R5PkKJZ3LX19UOt62R0eFytZr8mpN0/xMHC/ W8AwC2xASvL7KeYTHcTUPm6ygSGAUsioxLFo0u89KdlGVKKaiqg0ZgPOummwVp8A88LZ cs5nna/TsKUpZ0qt+saui/R77mE7afq7m5NF1W827BCm463rvvmk236uYs+r+9x/1usa QNbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=VD4cB7pstfywmqiy8MnAxwJp/N50+EL57MI2Ry/D2t4=; b=Ja39jjvEt06iDoZ5626GSsvrqrrfYgPEt4pguLtHIBBm0mOLxi7HL1+MAiAiePbVtN Pw7NI7424iXPsJWw0XnbQcc1zpU6LjZ7acXsX2PkJKhPsZzdlDQ1jJHgAer5WheQrMLP BOM2TaQjiymrNfW3q7tQpk0FUq0kZMZPNCOZZGNsdLfw/6vDuE+LhOuNyKAfsv8BYgCx q4eN2sDm1Qk3axoc808UwYXW665FJFbpTC21B4O8qh5RzvT9PM7+z3eE3FLzoFpxY8OV DK6hEq5CZ2tsTJsaRE0qD4fpup8Xf2mjcQ66lMVEfnf5ouWPWOBPoUW7CjqZPUs8VdhL CiPA== X-Gm-Message-State: AOAM533FK0qSKS762ubFbA8h1tM5PRKJzW2UQVVvTw7eV9NXvIH71m74 6MMpKG23ZERPdKG9gqu7bvTp7mr6k4r15Q== X-Google-Smtp-Source: ABdhPJx7ZykQvjqANe0akpuvF6DYLqkJKQ6UZgRzaBRRWSyBKlseizZI1elKfOmloNqtzbUSjTCU1Q== X-Received: by 2002:a50:c09a:: with SMTP id k26mr40499906edf.27.1620801924525; Tue, 11 May 2021 23:45:24 -0700 (PDT) Original-Received: from ars3 ([2a02:908:2211:8540::68a]) by smtp.gmail.com with ESMTPSA id h8sm2917433ejb.104.2021.05.11.23.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 23:45:24 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269192 Archived-At: On Tue, 11 May 2021 at 15:34, Drew Adams wrote: >> The question is whether it makes sense to provide an >> alternative UI for Isearch where editing the search >> string is not a special maneuver. > > Really? Is that what this is all about? Yes. > > Just what is the giant inconvenience you find with > Isearch's `M-e' for editing the search string? To give one reason, M-e currently has no lazy highlight/count, so it's not of much help to write a mildly complex regexp. > [...] > For 40 years Isearch has won the world by NOT using > the minibuffer (except for one-off, on-demand pattern > editing). Zillions of search UIs have adopted the > incremental searching that Isearch pioneered. (The > "i" in "isearch" is for "incremental".) If it were called OK-search, where OK stands for overriding keymap, then I would understand the talk of throwing out babies. However, my proposal in no way diminishes the incremental aspect of I-search. > [...] > > But though this was pitched as just adding an > "alternative" behavior, the code changes seem deep > and wide-ranging, You can think of my patch as (1) adding lazy highlight/count and an M-s prefix to the good old M-e, which is indeed a bit of work, and (2) adding the entirely optional minibuffer-controlled UI which only takes a dozen of extra lines to implement. If you have a technical argument as to why there shouldn't be lazy highlight/count in the good old M-e, it won't be hard to persuade me. > and IIUC, there was even talk of > the "alternative" arrangement being just temporary, > i.e., that Isearch would eventually always follow > your "alternative" implementation and behavior. Where? > > Why so?